Commit d0eec68
committed
ci: assert built wheel name matches cache key after source build
Add a sanity check that runs after `python setup.py bdist_wheel` and
compares the built wheel basename against the cache URL we'd
reconstruct on the next run. If they diverge — e.g. someone changes
the torch_wheel_name template, or PyTorch's setup.py renames its
wheels — fail loudly with a pointer to the function that needs
fixing, rather than silently miss the cache forever.
Catches the same class of regression that produced the original
"+gitrelease" bug fixed in the parent commit (PR #19350), on the
very next CI run that hits the source-build path.
Authored with Claude Code.1 parent 319b9e6 commit d0eec68
1 file changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
134 | 158 | | |
135 | 159 | | |
136 | 160 | | |
| |||
0 commit comments