Repository navigation
Commit 0f92160
authored
Rebuild the EEST venv when its cached interpreter is gone (#4510)
Execution Specs shards fail before running any test, with
`.venv/bin/execute: cannot execute: required file not found` (exit 127).
The cached EEST venv links to the setup-python interpreter that built
it, and the cache key has only the install script and patch hashes in
it. The current entry was built on a runner with Python 3.12.14. Runner
image 20261002 ships 3.12.15, so on those runners the restored venv's
interpreter path is missing. `install.sh` only checks that `execute` has
its executable bit set, so it reports the install as current and never
repairs it. Shards on 3.12.14 runners pass and shards on 3.12.15 runners
fail, and as the image rolls out more shards fail.
The cache key now includes `steps.python.outputs.python-version`, so a
runner only restores a venv built with the same interpreter.
`install.sh` also requires the venv's `python` to start before it skips
the install, which covers a stale venv however it got there. When that
check fails, `uv sync` replaces the broken venv. I tested this locally
by pointing the venv's interpreter link at a missing path: the script
reinstalled, `execute` ran again, and a second run returned immediately.
Flaked in:
https://github.com/sei-protocol/sei-chain/actions/runs/37764957815/job/1132719393251 parent 8ab697f commit 0f92160
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
| |||
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
201 | | - | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
0 commit comments