Skip to content

ci: matrix benchmark-release + harden parallel_determinism (per #4419) - #4443

Merged
oferchen merged 1 commit into
masterfrom
ci/audit-followups-round-2
May 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
ci/audit-followups-round-2

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • benchmark-release.yml: matrix cargo bench over per-crate cells (checksums, core, engine, fast_io, matching, protocol, transfer) so the 7 benches run in parallel rather than serial. A new publish job downloads the per-crate criterion artifacts, merges them, generates the step summary, and handles the release-notes append + upload that previously lived in the single job. 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.yml finding #2 (missing top-level permissions: contents: read) is already present on master (lines 23-24), so this PR only covers the SHA-pinning portion of that finding.

Test plan

  • cargo fmt --all clean (no Rust files touched)
  • YAML parses via PyYAML for both benchmark-release.yml and parallel_determinism.yml

- 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 ci/audit-followups-round-2 branch from 723a68d to 34fa6d3 Compare May 18, 2026 01:12
@oferchen
oferchen merged commit b451d14 into master May 18, 2026
9 of 10 checks passed
@github-actions github-actions Bot added the ci label May 18, 2026
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
#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 ci/audit-followups-round-2 branch May 19, 2026 15:12
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant