Repository navigation
Commit e61d3d3
authored
Publish the CUDA trains PyTorch still offers, skip the ones it drops (pytorch#22652)
## Problem
The nightly CUDA wheel build stopped publishing anything after PyTorch
removed its CUDA 12.6 nightlies. ExecuTorch still listed `cu126` as a
version to publish, and the release check treated a listed-but-absent
train as a hard error, so it failed the whole job at the matrix-filter
step. That blocked `cu130` and `cu132` from publishing too, even though
their builds were fine.
The result: no CUDA nightly wheel at all for several days, while the CPU
wheel kept publishing normally.
## Fix
Make the check degrade per train instead of all-or-nothing. A version
listed in the policy is published only when the shared matrix generator
still offers it. When PyTorch stops shipping a train, its rows simply do
not appear, the release skips it with a note, and the other trains
publish as usual. If PyTorch ships that train again later, it returns on
its own with no code change here.
The release still fails loudly in the two cases that are real problems:
- an empty matrix, which would otherwise read as a green check for a
build that never happened
- a train that is offered but comes through missing some Python
versions, which would ship that train incomplete
Example, with PyTorch no longer offering cu126:
```
before: filter exits 1, publishes nothing
after: filter exits 0, publishes cu130 and cu132, skips cu126 with a note
```
## Test plan
Extended the filter unit tests. A fully absent train is now asserted to
be skipped while the others publish, plus a case for the exact cu126
drop. The incomplete-train and empty-matrix cases are asserted to still
exit nonzero. Full suite: 21 passed, 2 subtests. Also ran the filter
against today's real matrix (cu130 and cu132 only) and confirmed it
exits 0 and publishes both.1 parent ad2de69 commit e61d3d3
2 files changed
Lines changed: 61 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
196 | 197 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 198 | + | |
| 199 | + | |
205 | 200 | | |
| 201 | + | |
206 | 202 | | |
207 | 203 | | |
208 | 204 | | |
209 | 205 | | |
210 | 206 | | |
211 | 207 | | |
212 | 208 | | |
213 | | - | |
214 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
215 | 237 | | |
216 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
217 | 242 | | |
218 | 243 | | |
219 | 244 | | |
220 | | - | |
| 245 | + | |
221 | 246 | | |
222 | 247 | | |
223 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
198 | 204 | | |
199 | 205 | | |
200 | 206 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
207 | 214 | | |
208 | 215 | | |
209 | | - | |
210 | | - | |
211 | | - | |
| 216 | + | |
| 217 | + | |
212 | 218 | | |
213 | 219 | | |
214 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
215 | 224 | | |
216 | 225 | | |
217 | 226 | | |
218 | | - | |
| 227 | + | |
219 | 228 | | |
220 | 229 | | |
221 | 230 | | |
222 | 231 | | |
223 | | - | |
224 | | - | |
225 | | - | |
| 232 | + | |
| 233 | + | |
226 | 234 | | |
227 | 235 | | |
228 | 236 | | |
| |||
0 commit comments