diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 197e31b..621cd4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 1840b7b..98375c8 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ The provider dependency has to sit on the plugin, next to ``. 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//transport--`. 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.-` 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: @@ -78,20 +78,20 @@ java -cp 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. diff --git a/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java b/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java index 9170a28..d34d0d1 100644 --- a/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java +++ b/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java @@ -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)); } diff --git a/pom.xml b/pom.xml index 6c4c8f1..34d6a42 100644 --- a/pom.xml +++ b/pom.xml @@ -23,11 +23,11 @@ 5.13.4 3.2.5 2.11.0 - 0.2.0 - 7dcaec969378a181a62749673b9c0b658be17bf16a8880f5effbd8e03a6c4a17 - ccb9f795086d5584ff605cff8aefc534a82cde3154a3231f7f9396cde27bf7d4 - cf54fbf596b8a708fbc64e031f98737f076b8c32c371a4506c8141c49bca84be - 87b2d6847ed0efa44c73ec16526b85134bf6f2e3759d99f925682eaf1b27d937 + 0.3.0 + dc5e7fff627041d304ab88aabb21bbdb167a56a21d71c38b2850fc52d6cccd3c + 5f491c35d150e6594b4a81070060600af6721a1b558e0cdd2c47712027bb7ed2 + 7ff36a36c78347de37154f6eb461f425b9c7f87b5387d0288162092c6f54090c + 9a14ceee175a821977aedc69bfcbd9610ff369368a66274bdb64dbb5176bdc8d diff --git a/scripts/conformance.sh b/scripts/conformance.sh index e12a92c..4afe8bf 100755 --- a/scripts/conformance.sh +++ b/scripts/conformance.sh @@ -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"