Skip to content

fix(cache): scope virtualenv cache key to the python3 interpreter - #149

Merged
retlehs merged 1 commit into
roots:mainfrom
codepuncher:gh/146/venv-cache-key
Nov 3, 2026
Merged

retlehs merged 1 commit into
roots:mainfrom
codepuncher:gh/146/venv-cache-key

Conversation

@codepuncher

Copy link
Copy Markdown
Contributor

Fixes #146.

The virtualenv cache key now includes python3's path, full version, ABI and OS release, plus the virtualenv's location, so a Python patch release or runner image change is a clean cache miss instead of a broken restore.

Keys use a new trellis-virtualenv- base so older releases can't restore them, and a virtualenv that trellis init reused from a different interpreter isn't saved.

@retlehs retlehs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@retlehs
retlehs merged commit 01855d6 into roots:main Nov 3, 2026
7 checks passed
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.

Virtualenv cache key omits the Python version, so a runner Python patch roll breaks deploys

2 participants