Skip to content

ci: trim Python PR matrix and add sccache - #453

Merged
pratyush618 merged 2 commits into
masterfrom
ci/trim-python-pr-matrix
Jul 18, 2026
Merged

ci: trim Python PR matrix and add sccache#453
pratyush618 merged 2 commits into
masterfrom
ci/trim-python-pr-matrix

Conversation

@pratyush618

Copy link
Copy Markdown
Collaborator

Summary

  • The Python job was CI's long pole: 9 matrix cells, each doing a full --release maturin build (all heavy features) plus a ~10-minute serial pytest, with near-zero Cargo-cache reuse (the lint job writes dev-profile artifacts; these builds are release-profile).
  • PRs now run a trimmed 3-cell matrix — ubuntu × {3.10, 3.14} plus one windows-2025 × 3.14 smoke covering the vendored-OpenSSL path. The full 9-cell version/OS matrix still runs on every push to master and on workflow_dispatch, so coverage is delayed to merge, not lost.
  • Adds sccache (mozilla-actions/sccache-action, GHA cache backend) to the matrix job so the release builds share compiled rustc artifacts across cells and runs.

Changes

  • .github/workflows/ci-python.yml only: conditional strategy.matrix on github.event_name, SCCACHE_GHA_ENABLED/RUSTC_WRAPPER job env, sccache setup step before the maturin build.

Test plan

  • This PR's own run shows the 3-cell matrix
  • Post-merge master push shows the full 9-cell matrix
  • Second PR run after cache warm-up shows reduced maturin build time (sccache hits)
  • YAML validates; actionlint runs in CI

PRs run 3 cells (oldest+newest Linux Python + Windows smoke) instead
of 9; the full matrix still runs on master pushes. sccache shares
rustc artifacts the dev-profile lint cache never could.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 3 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d408fc2b-b729-487c-8b9e-1725889e7620

📥 Commits

Reviewing files that changed from the base of the PR and between 943f4a3 and 6e05e29.

📒 Files selected for processing (1)
  • .github/workflows/ci-python.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/trim-python-pr-matrix

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the ci label Jul 18, 2026
@pratyush618
pratyush618 merged commit 91d9843 into master Jul 18, 2026
16 checks passed
@pratyush618
pratyush618 deleted the ci/trim-python-pr-matrix branch July 18, 2026 17:42
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