From 89455e9a8af563c5c3c460599ab2cab66e40170b Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 1 Nov 2026 20:50:25 -0800 Subject: [PATCH 1/2] Pin transport v0.2.0 Repoints the runtime download, the CI build and the README from commit 44a9c7a, whose release tag pr10-44a9c7a does not exist, to the v0.2.0 release. The pin now carries all four asset hashes (Linux and Darwin, x86_64 and aarch64), so macOS and Linux aarch64 download instead of exiting 1. CI builds transport and transport-conformance with --tag v0.2.0. --- .github/workflows/ci.yml | 12 ++++++------ README.md | 12 ++++++------ .../ci/selective/junit/transport.properties | 3 +++ .../java/ci/selective/junit/runtime/BinaryTest.java | 8 ++++---- pom.xml | 7 +++++-- 5 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2aef436..a0e07cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,19 +29,19 @@ jobs: - uses: actions/cache@v4 id: transport with: - path: ~/transport-44a9c7abde5a35d869c5f71780d56e26c0c6f8bd - key: transport-44a9c7abde5a35d869c5f71780d56e26c0c6f8bd-${{ runner.os }}-${{ runner.arch }} + path: ~/transport-v0.2.0 + key: transport-v0.2.0-${{ runner.os }}-${{ runner.arch }} - if: steps.transport.outputs.cache-hit != 'true' uses: dtolnay/rust-toolchain@stable - if: steps.transport.outputs.cache-hit != 'true' name: build transport run: | CARGO_TARGET_DIR="$RUNNER_TEMP/transport-target" cargo install --locked \ - --git https://github.com/selectiveci/transport --rev 44a9c7abde5a35d869c5f71780d56e26c0c6f8bd \ - --bin transport --bin transport-conformance --root ~/transport-44a9c7abde5a35d869c5f71780d56e26c0c6f8bd + --git https://github.com/selectiveci/transport --tag v0.2.0 \ + --bin transport --bin transport-conformance --root ~/transport-v0.2.0 - name: transport - run: echo "SELECTIVE_TRANSPORT=$HOME/transport-44a9c7abde5a35d869c5f71780d56e26c0c6f8bd/bin/transport" >> "$GITHUB_ENV" + run: echo "SELECTIVE_TRANSPORT=$HOME/transport-v0.2.0/bin/transport" >> "$GITHUB_ENV" - name: verify run: mvn -B verify -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} - name: conformance - run: scripts/conformance.sh "$HOME/transport-44a9c7abde5a35d869c5f71780d56e26c0c6f8bd/bin/transport-conformance" "$SELECTIVE_TRANSPORT" -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} + run: scripts/conformance.sh "$HOME/transport-v0.2.0/bin/transport-conformance" "$SELECTIVE_TRANSPORT" -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} diff --git a/README.md b/README.md index 8b8a6be..cb6e402 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 `0.0.0-44a9c7a`: a static Linux x86_64 build of `selectiveci/transport` at `44a9c7abde5a35d869c5f71780d56e26c0c6f8bd`. No release carries it yet, so point `SELECTIVE_TRANSPORT_RELEASES` at a mirror that serves `v0.0.0-44a9c7a/transport-Linux-x86_64.tar.gz`, or build the transport at that commit and set `SELECTIVE_TRANSPORT`. The pin has no build for macOS or Linux aarch64; there the client exits 1 and asks for `SELECTIVE_TRANSPORT`. 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.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. `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 pinned commit: +Build `transport` and `transport-conformance` at the pinned tag: ``` -cargo install --locked --git https://github.com/selectiveci/transport --rev 44a9c7abde5a35d869c5f71780d56e26c0c6f8bd \ - --bin transport --bin transport-conformance --root ~/transport-44a9c7a +cargo install --locked --git https://github.com/selectiveci/transport --tag v0.2.0 \ + --bin transport --bin transport-conformance --root ~/transport-v0.2.0 ``` -Use a fresh `CARGO_TARGET_DIR` for each commit, since a reused one can install stale binaries. Then, with `SELECTIVE_TRANSPORT` pointing at `~/transport-44a9c7a/bin/transport`: +Use a fresh `CARGO_TARGET_DIR` for each tag, since a reused one can install stale binaries. Then, with `SELECTIVE_TRANSPORT` pointing at `~/transport-v0.2.0/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-44a9c7a/bin/transport-conformance "$SELECTIVE_TRANSPORT" +scripts/conformance.sh ~/transport-v0.2.0/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/main/resources/ci/selective/junit/transport.properties b/core/src/main/resources/ci/selective/junit/transport.properties index c64d481..6c3b23b 100644 --- a/core/src/main/resources/ci/selective/junit/transport.properties +++ b/core/src/main/resources/ci/selective/junit/transport.properties @@ -1,2 +1,5 @@ version=${transport.version} +sha256.Darwin-aarch64=${transport.sha256.Darwin-aarch64} +sha256.Darwin-x86_64=${transport.sha256.Darwin-x86_64} +sha256.Linux-aarch64=${transport.sha256.Linux-aarch64} sha256.Linux-x86_64=${transport.sha256.Linux-x86_64} 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 d872837..9170a28 100644 --- a/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java +++ b/core/src/test/java/ci/selective/junit/runtime/BinaryTest.java @@ -64,11 +64,11 @@ void namesTheReleaseTargets() { } @Test - void thePinShipsTheStaticLinuxBuild() { + void thePinShipsEveryReleaseTarget() { Binary.Pin pin = Binary.Pin.load(); - assertEquals("0.0.0-44a9c7a", pin.version()); - assertEquals(Set.of("Linux-x86_64"), pin.sha256().keySet()); - assertTrue(pin.sha256().get("Linux-x86_64").matches("[0-9a-f]{64}"), pin.sha256().toString()); + assertEquals("0.2.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)); } @Test diff --git a/pom.xml b/pom.xml index cd98e2f..6c4c8f1 100644 --- a/pom.xml +++ b/pom.xml @@ -23,8 +23,11 @@ 5.13.4 3.2.5 2.11.0 - 0.0.0-44a9c7a - 6b69e58eb0bdabde31232fd6b1c21fe660932f0adededbbbbf35dcbf13870996 + 0.2.0 + 7dcaec969378a181a62749673b9c0b658be17bf16a8880f5effbd8e03a6c4a17 + ccb9f795086d5584ff605cff8aefc534a82cde3154a3231f7f9396cde27bf7d4 + cf54fbf596b8a708fbc64e031f98737f076b8c32c371a4506c8141c49bca84be + 87b2d6847ed0efa44c73ec16526b85134bf6f2e3759d99f925682eaf1b27d937 From ae3010efd3fd11b674458920b456743f9bcb4465 Mon Sep 17 00:00:00 2001 From: Nate Vick Date: Sun, 1 Nov 2026 21:01:07 -0800 Subject: [PATCH 2/2] Build CI's transport from the v0.2.0 commit cargo install --tag follows a mutable ref: if v0.2.0 were moved, cold-cache runners would build different source under the same cache key. Build from the tag's commit 553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542 (git ls-remote refs/tags/v0.2.0) with --rev, and put the full SHA in the cache keys and install dirs. TRANSPORT_RELEASE keeps the release name visible. Runtime download pins are unchanged: tag v0.2.0 plus the pinned sha256. --- .github/workflows/ci.yml | 15 +++++++++------ README.md | 10 +++++----- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0e07cc..197e31b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,9 @@ name: ci on: push: pull_request: +env: + TRANSPORT_RELEASE: v0.2.0 + TRANSPORT_REV: 553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542 jobs: test: runs-on: ubuntu-24.04 @@ -29,19 +32,19 @@ jobs: - uses: actions/cache@v4 id: transport with: - path: ~/transport-v0.2.0 - key: transport-v0.2.0-${{ runner.os }}-${{ runner.arch }} + path: ~/transport-${{ env.TRANSPORT_REV }} + key: transport-${{ env.TRANSPORT_REV }}-${{ runner.os }}-${{ runner.arch }} - if: steps.transport.outputs.cache-hit != 'true' uses: dtolnay/rust-toolchain@stable - if: steps.transport.outputs.cache-hit != 'true' name: build transport run: | CARGO_TARGET_DIR="$RUNNER_TEMP/transport-target" cargo install --locked \ - --git https://github.com/selectiveci/transport --tag v0.2.0 \ - --bin transport --bin transport-conformance --root ~/transport-v0.2.0 + --git https://github.com/selectiveci/transport --rev "$TRANSPORT_REV" \ + --bin transport --bin transport-conformance --root ~/transport-"$TRANSPORT_REV" - name: transport - run: echo "SELECTIVE_TRANSPORT=$HOME/transport-v0.2.0/bin/transport" >> "$GITHUB_ENV" + run: echo "SELECTIVE_TRANSPORT=$HOME/transport-$TRANSPORT_REV/bin/transport" >> "$GITHUB_ENV" - name: verify run: mvn -B verify -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} - name: conformance - run: scripts/conformance.sh "$HOME/transport-v0.2.0/bin/transport-conformance" "$SELECTIVE_TRANSPORT" -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} + run: scripts/conformance.sh "$HOME/transport-$TRANSPORT_REV/bin/transport-conformance" "$SELECTIVE_TRANSPORT" -Djunit.version=${{ matrix.junit }} ${{ matrix.extra }} diff --git a/README.md b/README.md index cb6e402..1840b7b 100644 --- a/README.md +++ b/README.md @@ -78,20 +78,20 @@ java -cp ci.selective.junit.Main --dry-run --package com.exam ## Tests -Build `transport` and `transport-conformance` at the pinned tag: +Build `transport` and `transport-conformance` at the v0.2.0 commit: ``` -cargo install --locked --git https://github.com/selectiveci/transport --tag v0.2.0 \ - --bin transport --bin transport-conformance --root ~/transport-v0.2.0 +cargo install --locked --git https://github.com/selectiveci/transport --rev 553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542 \ + --bin transport --bin transport-conformance --root ~/transport-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542 ``` -Use a fresh `CARGO_TARGET_DIR` for each tag, since a reused one can install stale binaries. Then, with `SELECTIVE_TRANSPORT` pointing at `~/transport-v0.2.0/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-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542/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-v0.2.0/bin/transport-conformance "$SELECTIVE_TRANSPORT" +scripts/conformance.sh ~/transport-553bb45b8bfa3ac9c9f7ed1ad71a8ac19d384542/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.