Skip to content

ci: key venv cache on resolved python patch version - #1745

Merged
bdraco merged 1 commit into
masterfrom
ci/key-venv-cache-on-python-patch
May 20, 2026
Merged

ci: key venv cache on resolved python patch version#1745
bdraco merged 1 commit into
masterfrom
ci/key-venv-cache-on-python-patch

Conversation

@bdraco

@bdraco bdraco commented May 20, 2026

Copy link
Copy Markdown
Member

Summary

Extracts the CI cache fix from #1743 so it can land on its own; the venv cache key now uses the Python version that setup-python resolves, so a patch upgrade on the runner invalidates the cache instead of silently reusing stale built artifacts.

Details

The cache key previously used matrix.python-version, which is just the minor version like 3.13, so a patch upgrade on the runner kept the old cache around; switching to steps.setup-python.outputs.python-version pins the cache to the exact patch version that was actually installed.

Test plan

  • CI passes on this branch.

@codecov

codecov Bot commented May 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (068c3f6) to head (a2e0633).
⚠️ Report is 46 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1745   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          33       33           
  Lines        3455     3455           
  Branches      478      478           
=======================================
  Hits         3447     3447           
  Misses          5        5           
  Partials        3        3           

☔ 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.

@codspeed-hq

codspeed-hq Bot commented May 20, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 14 untouched benchmarks


Comparing ci/key-venv-cache-on-python-patch (a2e0633) with master (068c3f6)

Open in CodSpeed

@bdraco
bdraco marked this pull request as ready for review May 20, 2026 02:57
@bdraco
bdraco merged commit 0e201f7 into master May 20, 2026
32 of 33 checks passed
@bdraco
bdraco deleted the ci/key-venv-cache-on-python-patch branch May 20, 2026 02:57
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