Skip to content

Cache Rust dependencies in CI - #628

Merged
RazerM merged 1 commit into
mainfrom
feature/ci-rust-build-cache
Sep 6, 2026
Merged

RazerM merged 1 commit into
mainfrom
feature/ci-rust-build-cache

Conversation

@RazerM

@RazerM RazerM commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Every job compiles pyo3 from scratch, which is most of the 39 job-minutes
CI spends building Logbook. uv's build cache does not help: tool.uv
cache-keys invalidate on ctime, and checkout gives every file a new one,
so the wheel is rebuilt in every session of every job.

Cargo fingerprints registry dependencies by version and features, not by
file times, so a restored target directory survives checkout. rust-cache
keys on the job, the runner and the Rust toolchain, but not on the Python
version, so add that. Entries are about 20 MB.
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.04%. Comparing base (677c721) to head (2b9169a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #628   +/-   ##
=======================================
  Coverage   85.04%   85.04%           
=======================================
  Files          45       45           
  Lines        5691     5691           
  Branches      459      459           
=======================================
  Hits         4840     4840           
  Misses        721      721           
  Partials      130      130           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RazerM
RazerM merged commit 0f9d484 into main Sep 6, 2026
140 of 186 checks passed
@RazerM
RazerM deleted the feature/ci-rust-build-cache branch September 6, 2026 18:48
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.

1 participant