Repository navigation
ci: simplify venv cache key and consolidate poetry env - #679
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
=======================================
Coverage 89.90% 89.90%
=======================================
Files 29 29
Lines 3527 3527
Branches 606 606
=======================================
Hits 3171 3171
Misses 211 211
Partials 145 145 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced May 17, 2026
Merged
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up cleanup of the venv cache landed in #675.
What
Three trims, all behavior-preserving (or, in the first case, eliminating a no-op):
${{ env.ImageOS }}-${{ env.ImageVersion }}-from both cache keys. I'd added these as a "safety" knob meant to invalidate the cache on runner image flips, but they don't actually work as written —envcontext only resolves workflow-declared env vars, not runner process env vars likeImageOS/ImageVersion. The post-merge run onmainmakes this visible: the emitted key wasvenv-v1-Linux---py3.12-use_cython-…— the---is two empty interpolations. They've been doing nothing.hashFiles()calls into a single call coveringpoetry.lock,pyproject.toml,build_ext.py,src/dbus_fast/**/*.py, andsrc/dbus_fast/**/*.pxd. The split into two calls had no functional difference (the resulting cache key is the concatenation either way) and just made the line noisier.POETRY_VIRTUALENVS_IN_PROJECT: "true"to workflow-levelenv:instead of declaring it on bothtestandbenchmarkjobs. Single source of truth; matches how the rest of the workflow handles cross-cutting config.Why
#675's cache key was over-engineered, and the post-merge logs (
venv-v1-Linux---py3.12-…) make the bug in the safety addition obvious. Trimming the dead bits keeps the working parts and is easier to read.Notes
pycairoBadZipFilefailures ontest (3.10–3.13, use_cython)were a transient PyPI/wheel issue, not caused by ci: cache poetry venv keyed on lockfile and cython sources #675's caching. Logs showpoetry cache is not found(setup-python cache missed) and our venv cache also missed on that run — pycairo's wheel was downloaded fresh and the download landed corrupt. Out of scope for this PR; a rerun should clear it.run:step that reads$ImageVersionfrom the shell and exposes it as a step output — the bare${{ env.ImageVersion }}reference is silently empty. Worth a separate PR if we decide we want it.