Repository navigation
docs(audit): CI workflow hazards and quick wins - #4419
Merged
Merged
Conversation
oferchen
force-pushed
the
docs/ci-workflow-audit
branch
from
May 18, 2026 00:56
2e63602 to
5db6264
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
- benchmark-release.yml: convert the single serial `cargo bench --workspace` step into a 7-cell matrix (checksums, core, engine, fast_io, matching, protocol, transfer). Each cell uploads a per-crate criterion artifact; a new publish job merges them and handles release-notes append + upload. Cuts wall time on tag pushes from 60-90 min serial to 15-30 min parallel. - parallel_determinism.yml: pin the four floating action references (actions/checkout, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact) to SHAs matching the rest of the repo. The audit's parallel_determinism finding #2 (missing top-level `permissions: contents: read`) was already addressed in master, so this PR only covers the SHA pinning portion.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
force-pushed
the
docs/ci-workflow-audit
branch
from
May 18, 2026 01:13
5db6264 to
d6d7d23
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
#4443) - benchmark-release.yml: convert the single serial `cargo bench --workspace` step into a 7-cell matrix (checksums, core, engine, fast_io, matching, protocol, transfer). Each cell uploads a per-crate criterion artifact; a new publish job merges them and handles release-notes append + upload. Cuts wall time on tag pushes from 60-90 min serial to 15-30 min parallel. - parallel_determinism.yml: pin the four floating action references (actions/checkout, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact) to SHAs matching the rest of the repo. The audit's parallel_determinism finding #2 (missing top-level `permissions: contents: read`) was already addressed in master, so this PR only covers the SHA pinning portion.
oferchen
added a commit
that referenced
this pull request
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
#4443) - benchmark-release.yml: convert the single serial `cargo bench --workspace` step into a 7-cell matrix (checksums, core, engine, fast_io, matching, protocol, transfer). Each cell uploads a per-crate criterion artifact; a new publish job merges them and handles release-notes append + upload. Cuts wall time on tag pushes from 60-90 min serial to 15-30 min parallel. - parallel_determinism.yml: pin the four floating action references (actions/checkout, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact) to SHAs matching the rest of the repo. The audit's parallel_determinism finding #2 (missing top-level `permissions: contents: read`) was already addressed in master, so this PR only covers the SHA pinning portion.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
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
#4443) - benchmark-release.yml: convert the single serial `cargo bench --workspace` step into a 7-cell matrix (checksums, core, engine, fast_io, matching, protocol, transfer). Each cell uploads a per-crate criterion artifact; a new publish job merges them and handles release-notes append + upload. Cuts wall time on tag pushes from 60-90 min serial to 15-30 min parallel. - parallel_determinism.yml: pin the four floating action references (actions/checkout, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact) to SHAs matching the rest of the repo. The audit's parallel_determinism finding #2 (missing top-level `permissions: contents: read`) was already addressed in master, so this PR only covers the SHA pinning portion.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
oferchen
added a commit
that referenced
this pull request
May 18, 2026
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).
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#4443) - benchmark-release.yml: convert the single serial `cargo bench --workspace` step into a 7-cell matrix (checksums, core, engine, fast_io, matching, protocol, transfer). Each cell uploads a per-crate criterion artifact; a new publish job merges them and handles release-notes append + upload. Cuts wall time on tag pushes from 60-90 min serial to 15-30 min parallel. - parallel_determinism.yml: pin the four floating action references (actions/checkout, dtolnay/rust-toolchain, Swatinem/rust-cache, actions/upload-artifact) to SHAs matching the rest of the repo. The audit's parallel_determinism finding #2 (missing top-level `permissions: contents: read`) was already addressed in master, so this PR only covers the SHA pinning portion.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
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
.github/workflows/*.yml(22 workflows) for deprecated actions, missing caches, long-running serial steps, missingfail-fast, and missing explicitpermissions:blocks.cargo install cargo-fuzz-> taiki-e/install-action, drop redundant pre-nextestcargo build, SHA-pin parallel-determinism/dependency-review/labeler).Test plan
cargo fmt --allclean