Skip to content

docs(audit): CI workflow hazards and quick wins - #4419

Merged
oferchen merged 1 commit into
masterfrom
docs/ci-workflow-audit
May 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/ci-workflow-audit

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Audit every .github/workflows/*.yml (22 workflows) for deprecated actions, missing caches, long-running serial steps, missing fail-fast, and missing explicit permissions: blocks.
  • Quick wins section lists small changes with measurable CI savings (cargo-deny consolidation, cargo install cargo-fuzz -> taiki-e/install-action, drop redundant pre-nextest cargo build, SHA-pin parallel-determinism/dependency-review/labeler).
  • Pure docs change; no workflow files are modified by this PR.

Test plan

  • cargo fmt --all clean

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 18, 2026
@oferchen
oferchen force-pushed the docs/ci-workflow-audit branch from 2e63602 to 5db6264 Compare May 18, 2026 00:56
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
oferchen force-pushed the docs/ci-workflow-audit branch from 5db6264 to d6d7d23 Compare May 18, 2026 01:13
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
oferchen merged commit 98df8f9 into master May 18, 2026
9 checks passed
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
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
oferchen deleted the docs/ci-workflow-audit branch May 19, 2026 15:10
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant