Commit ddcadc5
committed
test(release-hygiene): permit and require skip-existing on pypi publish
The previous assertion "assert 'skip-existing' not in payload" was a strict
'never silently skip a publish' guardrail. It pre-dated the case where the
root colsearch package and the native crates (latence-shard-engine,
latence-solver) are versioned independently — colsearch 0.1.7 is a
metadata-only release for the natives (repo URL update only), so attempting
to upload native wheels at the unchanged 0.1.6 version returns 400 from
PyPI and (because publish-root needs publish-native) the colsearch root
publish gets skipped too. With skip-existing: true the asymmetric versioning
case is idempotent.
Flip the assertion: skip-existing: true MUST be present, with a comment in
the workflow explaining the policy. Also documents the second use case —
gh run rerun --failed after a partial publish needs skip-existing or every
already-uploaded wheel breaks the rerun.
All 14 oss-release-hygiene tests pass locally.1 parent 0b7a89b commit ddcadc5
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
90 | 100 | | |
91 | 101 | | |
92 | 102 | | |
| |||
0 commit comments