Commit f4b3274
tests: the moe_mixed import guard must locate the module, not the repo
The 0.8.10 release train failed in 'verify installed wheel': the new guard
test opened gridbook/moe_mixed.py at a path relative to the test file, which
exists in a checkout but not in the release job's layout (tests copied to a
temp cwd, gridbook imported from the installed wheel). Resolve the source via
importlib.util.find_spec("gridbook.moe_mixed").origin instead — identical
in-repo, correct against any installed layout. Verified both ways: 73 passed
in-repo; the guard passes from a foreign cwd with only the package on the
path. Nothing was published from the failed train (publish + GitHub release
were skipped), so the v0.8.10 tag is re-cut on this commit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TZbSLixmqwxwbSV6v1MApK1 parent ab9aa66 commit f4b3274
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| 443 | + | |
443 | 444 | | |
444 | 445 | | |
445 | 446 | | |
446 | 447 | | |
447 | | - | |
448 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
449 | 454 | | |
450 | 455 | | |
451 | 456 | | |
| |||
0 commit comments