Commit a48de0f
committed
Assert the path contract against both answers the Hub parser can give
The typed-prefix bug Codex found needed huggingface_hub 1.25.1 to show itself. A job
installs one version, so the existing cells only ever exercised whichever answer the
runner resolved, and on 0.36.2 the gated branch is dead code: the broken commit went
green locally and would have gone red on CI.
These cells decide whether a string reaches the network at all, which is too
important to leave dependent on what pip picked. Forcing both answers costs nothing
and removes that dependence.
Falsified the useful way: reverting the fix now fails
test_a_path_stays_a_path_on_either_huggingface_hub[True-three-segment-path] on the
installed 0.36.2, where the original three-segment-path cell still passes. So the
regression is catchable without waiting for a runner that happens to resolve 1.x.
Behavioral gate 618 passed, 2 skipped, under the installed answer and under the
capability forced True.1 parent 36a4414 commit a48de0f
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
146 | 168 | | |
147 | 169 | | |
148 | 170 | | |
| |||
0 commit comments