Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
push:
pull_request:
env:
TRANSPORT_RELEASE: v0.2.0
TRANSPORT_REV: 553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542
TRANSPORT_RELEASE: v0.3.0
TRANSPORT_REV: a447773203dc5e778e5f0ef0bccd255e70c29938
jobs:
test:
runs-on: ubuntu-24.04
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ The provider dependency has to sit on the plugin, next to `<configuration>`. A d

The first time it runs, the client downloads the transport release it was built against. It checks the archive's SHA-256 against the checksum built into the jar, then caches the binary as `~/.selective/transport/<version>/transport-<OS>-<arch>`. Linux binaries are static, so one binary serves glibc and musl systems such as Alpine. The download goes through the JVM's proxy settings (`https.proxyHost`, `https.proxyPort`). `SELECTIVE_TRANSPORT` names a binary and skips the download. `SELECTIVE_TRANSPORT_RELEASES` replaces `https://github.com/selectiveci/transport/releases/download` with a mirror that has the same layout. The pinned release is `transport.version` in the root pom, with one `transport.sha256.<OS>-<arch>` per target.

The pin is release `v0.2.0` of `selectiveci/transport`, which ships Linux (static) and macOS builds for x86_64 and aarch64. There is no Windows build; there the client exits 1 as an unsupported platform. The URL and API key travel in `SELECTIVE_TRANSPORT_URL`, which the client sets for the child. They are not process arguments.
The pin is release `v0.3.0` of `selectiveci/transport`, which ships Linux (static) and macOS builds for x86_64 and aarch64. There is no Windows build; there the client exits 1 as an unsupported platform. The URL and API key travel in `SELECTIVE_TRANSPORT_URL`, which the client sets for the child. They are not process arguments.

`transport --build-env` supplies the run identity. These must be set and non-empty, or the client exits 1 and names the missing variables:

Expand Down Expand Up @@ -78,20 +78,20 @@ java -cp <classes-and-deps> ci.selective.junit.Main --dry-run --package com.exam

## Tests

Build `transport` and `transport-conformance` at the v0.2.0 commit:
Build `transport` and `transport-conformance` at the v0.3.0 commit:

```
cargo install --locked --git https://github.com/selectiveci/transport --rev 553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542 \
--bin transport --bin transport-conformance --root ~/transport-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542
cargo install --locked --git https://github.com/selectiveci/transport --rev a447773203dc5e778e5f0ef0bccd255e70c29938 \
--bin transport --bin transport-conformance --root ~/transport-a447773203dc5e778e5f0ef0bccd255e70c29938
```

Use a fresh `CARGO_TARGET_DIR` for each commit, since a reused one can install stale binaries. Then, with `SELECTIVE_TRANSPORT` pointing at `~/transport-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542/bin/transport`:
Use a fresh `CARGO_TARGET_DIR` for each commit, since a reused one can install stale binaries. Then, with `SELECTIVE_TRANSPORT` pointing at `~/transport-a447773203dc5e778e5f0ef0bccd255e70c29938/bin/transport`:

```
mvn -B verify
mvn -B verify -Djunit.version=5.12.2 -Dselective.noClassTemplate
mvn -B verify -Djunit.version=5.11.4 -Dselective.noClassTemplate
scripts/conformance.sh ~/transport-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542/bin/transport-conformance "$SELECTIVE_TRANSPORT"
scripts/conformance.sh ~/transport-a447773203dc5e778e5f0ef0bccd255e70c29938/bin/transport-conformance "$SELECTIVE_TRANSPORT"
```

`scripts/conformance.sh` runs the transport's own conformance suite against the client twice: once as a plain runner, and once with the JaCoCo agent so the recording scenarios run.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void namesTheReleaseTargets() {
@Test
void thePinShipsEveryReleaseTarget() {
Binary.Pin pin = Binary.Pin.load();
assertEquals("0.2.0", pin.version());
assertEquals("0.3.0", pin.version());
assertEquals(Set.of("Darwin-aarch64", "Darwin-x86_64", "Linux-aarch64", "Linux-x86_64"), pin.sha256().keySet());
pin.sha256().values().forEach(hash -> assertTrue(hash.matches("[0-9a-f]{64}"), hash));
}
Expand Down
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
<junit.version>5.13.4</junit.version>
<surefire.version>3.2.5</surefire.version>
<gson.version>2.11.0</gson.version>
<transport.version>0.2.0</transport.version>
<transport.sha256.Darwin-aarch64>7dcaec969378a181a62749673b9c0b658be17bf16a8880f5effbd8e03a6c4a17</transport.sha256.Darwin-aarch64>
<transport.sha256.Darwin-x86_64>ccb9f795086d5584ff605cff8aefc534a82cde3154a3231f7f9396cde27bf7d4</transport.sha256.Darwin-x86_64>
<transport.sha256.Linux-aarch64>cf54fbf596b8a708fbc64e031f98737f076b8c32c371a4506c8141c49bca84be</transport.sha256.Linux-aarch64>
<transport.sha256.Linux-x86_64>87b2d6847ed0efa44c73ec16526b85134bf6f2e3759d99f925682eaf1b27d937</transport.sha256.Linux-x86_64>
<transport.version>0.3.0</transport.version>
<transport.sha256.Darwin-aarch64>dc5e7fff627041d304ab88aabb21bbdb167a56a21d71c38b2850fc52d6cccd3c</transport.sha256.Darwin-aarch64>
<transport.sha256.Darwin-x86_64>5f491c35d150e6594b4a81070060600af6721a1b558e0cdd2c47712027bb7ed2</transport.sha256.Darwin-x86_64>
<transport.sha256.Linux-aarch64>7ff36a36c78347de37154f6eb461f425b9c7f87b5387d0288162092c6f54090c</transport.sha256.Linux-aarch64>
<transport.sha256.Linux-x86_64>9a14ceee175a821977aedc69bfcbd9610ff369368a66274bdb64dbb5176bdc8d</transport.sha256.Linux-x86_64>
</properties>
<dependencyManagement>
<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions scripts/conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ java="${JAVA_HOME:+$JAVA_HOME/bin/}java"
client="ci.selective.junit.Main --package ci.selective.junit.conformance"
cd "$root"
echo "conformance: select (no JaCoCo agent)"
"$conformance" run --client "$java -cp $classpath $client" --fixture-ids scripts/conformance-ids.json --transport "$transport"
"$conformance" run --require-features manifest_http --client "$java -cp $classpath $client" --fixture-ids scripts/conformance-ids.json --transport "$transport"
echo "conformance: record (JaCoCo agent attached)"
"$conformance" run --client "$java -javaagent:$agent=output=none -cp $classpath $client" --fixture-ids scripts/conformance-ids.json --transport "$transport"
"$conformance" run --require-features manifest_http --client "$java -javaagent:$agent=output=none -cp $classpath $client" --fixture-ids scripts/conformance-ids.json --transport "$transport"
Loading