Commit 3604852
committed
ci: fall back to /tmp for the uv install lock when TMPDIR is unwritable
Addresses Claude Code Review on #1630:
- flock hard-fails (and skips running uv pip install entirely) if its
lock file's directory doesn't exist or isn't writable. TMPDIR can be
stale on HPC login nodes (e.g. left over from a prior job's
since-deleted scratch dir), so an unconditional flock target risked
breaking installs that worked fine before this lock existed. Guard
with the same -w check already used for the UV_CACHE_DIR redirect,
falling back to /tmp.
- Clarified the comment: uv's cache is shared per-user by default
(~/.cache/uv), not just in the CI node-local-redirect case, so the
serialization also protects concurrent local builds, not only
self-hosted CI matrix legs.1 parent 74db3a0 commit 3604852
1 file changed
Lines changed: 17 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| |||
0 commit comments