Skip to content

ci(interop): build-once, validate-many refactor (per #4419) - #4447

Merged
oferchen merged 1 commit into
masterfrom
ci/interop-build-once-validate-many
May 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
ci/interop-build-once-validate-many

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Refactor interop-validation.yml so the oc-rsync binary (and the upstream rsync install) is built once in a shared build job and consumed by the 7 validator jobs (plus the manual regenerate-goldens job) via an artifact.
  • Each downstream job uses needs: build + actions/download-artifact to fetch the shared binaries and restores target/release/oc-rsync and target/interop/upstream-install/ before running only its validator step. Validators themselves are unchanged.
  • Estimated savings: cold-cache build at ~5 min and validators at 1-3 min each take the matrix wall time from 7 x (5+2) = 49 min toward 5 + max(validator) = ~7 min, roughly 30 min saved per push.

Test plan

  • YAML parses cleanly (python3 -c 'import yaml; yaml.safe_load(open(".github/workflows/interop-validation.yml"))').
  • cargo fmt --all clean.
  • CI verifies validators still pass with the shared artifact (build job uploads interop-binaries; each validator downloads and restores it).
  • regenerate-goldens (workflow_dispatch) still produces goldens against the shared artifact.

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
oferchen force-pushed the ci/interop-build-once-validate-many branch from ec04bea to e798fa6 Compare May 18, 2026 01:12
@oferchen
oferchen merged commit 19aac42 into master May 18, 2026
9 of 10 checks passed
@oferchen
oferchen deleted the ci/interop-build-once-validate-many branch May 18, 2026 01:13
@github-actions github-actions Bot added the ci label May 18, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant