Repository navigation
ci(interop): build-once, validate-many refactor (per #4419) - #4447
Merged
Merged
Conversation
Refactor interop-validation.yml so the oc-rsync binary and the upstream rsync install are produced once in a shared build job, then consumed by the seven validator jobs (and the manual regenerate-goldens job) via an artifact instead of being rebuilt in every job. Each downstream job now: - declares needs: build - downloads the shared interop-binaries artifact - restores target/release/oc-rsync and target/interop/upstream-install/ - runs only its validator command and summary Estimated savings: with cold-cache build at ~5 min and validators at 1-3 min each, the matrix wall time drops from 7 x (5+2) = 49 min toward 5 + max(validator) = ~7 min - roughly 30 min saved per push that runs the workflow. Validators themselves are not changed; only orchestration. Action SHAs match the pins already in use elsewhere in the repo (upload-artifact v7.0.1, download-artifact v8.0.1).
oferchen
force-pushed
the
ci/interop-build-once-validate-many
branch
from
May 18, 2026 01:12
ec04bea to
e798fa6
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Refactor interop-validation.yml so the oc-rsync binary and the upstream rsync install are produced once in a shared build job, then consumed by the seven validator jobs (and the manual regenerate-goldens job) via an artifact instead of being rebuilt in every job. Each downstream job now: - declares needs: build - downloads the shared interop-binaries artifact - restores target/release/oc-rsync and target/interop/upstream-install/ - runs only its validator command and summary Estimated savings: with cold-cache build at ~5 min and validators at 1-3 min each, the matrix wall time drops from 7 x (5+2) = 49 min toward 5 + max(validator) = ~7 min - roughly 30 min saved per push that runs the workflow. Validators themselves are not changed; only orchestration. Action SHAs match the pins already in use elsewhere in the repo (upload-artifact v7.0.1, download-artifact v8.0.1).
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Refactor interop-validation.yml so the oc-rsync binary and the upstream rsync install are produced once in a shared build job, then consumed by the seven validator jobs (and the manual regenerate-goldens job) via an artifact instead of being rebuilt in every job. Each downstream job now: - declares needs: build - downloads the shared interop-binaries artifact - restores target/release/oc-rsync and target/interop/upstream-install/ - runs only its validator command and summary Estimated savings: with cold-cache build at ~5 min and validators at 1-3 min each, the matrix wall time drops from 7 x (5+2) = 49 min toward 5 + max(validator) = ~7 min - roughly 30 min saved per push that runs the workflow. Validators themselves are not changed; only orchestration. Action SHAs match the pins already in use elsewhere in the repo (upload-artifact v7.0.1, download-artifact v8.0.1).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Refactor interop-validation.yml so the oc-rsync binary and the upstream rsync install are produced once in a shared build job, then consumed by the seven validator jobs (and the manual regenerate-goldens job) via an artifact instead of being rebuilt in every job. Each downstream job now: - declares needs: build - downloads the shared interop-binaries artifact - restores target/release/oc-rsync and target/interop/upstream-install/ - runs only its validator command and summary Estimated savings: with cold-cache build at ~5 min and validators at 1-3 min each, the matrix wall time drops from 7 x (5+2) = 49 min toward 5 + max(validator) = ~7 min - roughly 30 min saved per push that runs the workflow. Validators themselves are not changed; only orchestration. Action SHAs match the pins already in use elsewhere in the repo (upload-artifact v7.0.1, download-artifact v8.0.1).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
interop-validation.ymlso theoc-rsyncbinary (and the upstream rsync install) is built once in a sharedbuildjob and consumed by the 7 validator jobs (plus the manualregenerate-goldensjob) via an artifact.needs: build+actions/download-artifactto fetch the shared binaries and restorestarget/release/oc-rsyncandtarget/interop/upstream-install/before running only its validator step. Validators themselves are unchanged.Test plan
python3 -c 'import yaml; yaml.safe_load(open(".github/workflows/interop-validation.yml"))').cargo fmt --allclean.interop-binaries; each validator downloads and restores it).regenerate-goldens(workflow_dispatch) still produces goldens against the shared artifact.