Skip to content

ci: speed up Rust builds and tests - #200

Merged
vikrantpuppala merged 1 commit into
mainfrom
ci/faster-rust-ci
Jul 30, 2026
Merged

vikrantpuppala merged 1 commit into
mainfrom
ci/faster-rust-ci

Conversation

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

Summary

  • route root, PyO3, napi, coverage, and Rust E2E compilation through sccache's GitHub Actions backend
  • cache the actual pyo3/target and napi/target workspaces instead of the unused root target, with per-Python PyO3 keys
  • prevent uv from implicitly building the PyO3 project before maturin builds it
  • remove obsolete binding-directory precondition jobs and cancel superseded PR security/license runs
  • disable production retry delays only in HTTP error-mapping tests; dedicated retry tests remain unchanged

Evidence

Recent PR logs showed:

  • the root Rust cache was healthy: an exact 284 MB hit
  • PyO3 and napi reported 40 MB hits but cached root target and root Cargo.lock, while both jobs build in standalone workspace targets
  • PyO3's uv run maturin develop spent about 4m53s in an implicit project sync/build; the requested maturin build itself took 4.75s
  • Unit + doc tests spent 4m58s in cargo test
  • the session status-mapping binary spent 143.54s sleeping through production retry backoffs
  • OIDC 500 mapping tests spent about 73s on the same backoff ladder

After the test-only retry changes, the session mapping binary runs in about 1.15s and the complete root test suite runs locally in 47.27s on this main-based branch.

Validation

  • cargo +stable fmt --all -- --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test --quiet
  • cargo test --locked in pyo3/
  • cargo fmt --all -- --check in napi/
  • cargo clippy --all-targets --locked -- -D warnings in napi/
  • cargo test --locked --features dyn-symbols in napi/
  • actionlint on all edited workflows, allowing the repository's existing custom runner label
  • YAML parse and SHA-pin checks

Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@vikrantpuppala
vikrantpuppala enabled auto-merge July 29, 2026 18:14

@msrathore-db msrathore-db left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code generating machine 🥇

@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2026
@vikrantpuppala
vikrantpuppala added this pull request to the merge queue Jul 30, 2026
Merged via the queue into main with commit f40e3fd Jul 30, 2026
25 checks passed

This branch was previously deployed

1 inactive deployment
azure-prod — 4fe7a0e1 Deployed Jul 29, 2026 by vikrantpuppala via review #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants