Skip to content

Reduce CI cache storage - #627

Merged
RazerM merged 3 commits into
mainfrom
feature/ci-cache
Sep 6, 2026
Merged

RazerM merged 3 commits into
mainfrom
feature/ci-cache

Conversation

@RazerM

@RazerM RazerM commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Cache only source-built third-party wheels, with fallback restores across dependency changes. Share Linux/MSRV caches and separate Python ABIs and architectures.

Validated YAML/formatting and matrix keys. Cold and warm CI runs passed all 46 jobs; warm dependency installation time fell 42% from baseline.

@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.04%. Comparing base (ffaf77a) to head (ce7d02e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #627   +/-   ##
=======================================
  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.

Every other job already passes persist-credentials: false. The MSRV job was
the one still leaving the token in .git/config for the rest of the job,
including while it builds and runs third-party code.
The macOS matrix does not define arch, so setup-python was always handed an
empty architecture. Windows is the only job that varies it.
setup-uv keys on uv's host triple, the runner image and the Python patch
version, so the 46 jobs shared 23 keys: Windows x86 with x64, 3.14 with
3.14t, every MSRV job with lint. One job per group saved and the rest
restored a cache built for another interpreter, then skipped saving, so
Windows x86 and the free-threaded jobs rebuilt gevent from source on
every run.

cache-suffix supplies what the key lacked, and setup-python now runs
first so lint and MSRV stop keying on the runner's default Python. Prune
before saving so 46 entries fit where 23 were already evicting within
hours of the 10 GB limit.
@RazerM
RazerM merged commit 677c721 into main Sep 6, 2026
94 checks passed
@RazerM
RazerM deleted the feature/ci-cache branch September 6, 2026 15:27
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