test-prep dependency install still broken on master and strict branches
Summary
The fix in .github/actions/test-prep/action.yaml landed only on the 1.36 branch. master, strict and 1.36-strict still carry the broken version.
| branch | state |
|---|---|
1.36 |
fixed (via #5603) |
master |
broken |
strict |
broken |
1.36-strict |
broken — gets it when #5604 merges |
Symptom
All six test jobs fail ~20s in at Prepare test prerequisites:
ERROR: Cannot uninstall cryptography 41.0.7, RECORD file not found.
Hint: The package was installed by debian.Cause
sudo resets PATH, so sudo pip3 runs the runner's system Python 3.12 (the resolved wheels are cp312) rather than the 3.10 that actions/setup-python provisions. There, cryptography is installed as a Debian package, which carries no RECORD file, so pip cannot uninstall it when pylxd pulls in cryptography>=46.0.0 and the install aborts.
This is an environment regression from the runner image, not a code change.
Fix
One line before the requirements install:
sudo pip3 install --ignore-installed cryptographyVerified green on #5603 (7/7) and #5604 (6/7 — the remaining failure is unrelated, see canonical/microk8s-core-addons cis-hardening issue).
Ordering note
On master this failure is currently masked — the snap build fails first (#5607), so tests never reach test-prep. Once that is fixed this will surface immediately. Worth landing both together.
Acceptance criteria
-
masterandstrictcarry the fix -
Prepare test prerequisitespasses on a PR against each
Source: canonical/microk8s