Commit 9317bae
ci(release): rebuild Pulumi venv on prod runner; exclude it from artifact (#979)
The Pulumi venv built in merge.yml lives at pulumi/venv and was being
shipped wholesale inside pulumi.tbz. Its bin/python is an absolute
symlink into /opt/hostedtoolcache/Python/<patch>/x64/bin/python, which
only resolves on the runner that built it. When release.yml extracts
the artifact on a different runner whose Python tool cache was
refreshed to a different 3.13.x patch, the symlink dangles and Pulumi
fails with:
fork/exec /home/runner/work/.../pulumi/venv/bin/python:
no such file or directory
This bit r-0437's prod publish (run 27723066505); prior releases
worked only when the stage and prod runners happened to have the
same cached patch version.
- merge.yml: exclude pulumi/venv from the tarball. Shrinks pulumi.tbz
from ~55 MB to ~10 KB and stops shipping a non-portable venv.
- release.yml: rebuild the venv from requirements.txt on the prod
runner after extraction. The rm -rf venv keeps already-published
drafts (whose artifact still contains the stage-runner venv)
working without re-cutting the release.
Recovery for r-0437 after this merges: convert the release back to
draft and re-publish to re-fire release.yml against the fixed
workflow.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent db2a06b commit 9317bae
2 files changed
Lines changed: 25 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
201 | 206 | | |
202 | 207 | | |
203 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
83 | 101 | | |
84 | 102 | | |
85 | 103 | | |
| |||
0 commit comments