Commit c0b5cd1
committed
linux_job_v3: refresh the HF cache unattended, and honour the label off a PR
The label is read from github.event.pull_request.labels, which only exists on a
pull_request event, so the ciflow tag run sitting next to a labelled pull request
ignores it, writes at the read-only /mnt/hf_cache mount, and dies on any model
the seeded cache does not carry:
OSError: [Errno 30] Read-only file system: '/mnt/hf_cache/hub/models--...'
Same for a push to main after that pull request merges. Resolve the labels when
the event does not carry them, in one request: a ciflow tag names its pull
request, as pytorch's filter_test_configs.py also relies on, otherwise ask which
pull requests contain the commit.
A schedule or workflow_dispatch run now refreshes unconditionally, matching
pytorch's _linux-test.yml. That is what keeps the shared cache seeded; without it
the only way to add a model is to label a pull request, which is also the only
way to notice one was needed.
The read-only mount stays the default otherwise, so nothing changes for a run
that does not ask for a refresh.
Authored with Claude Code.1 parent d1ad90a commit c0b5cd1
1 file changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
226 | 231 | | |
227 | 232 | | |
228 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
229 | 267 | | |
230 | 268 | | |
231 | 269 | | |
| |||
0 commit comments