Repository navigation
Commit a842da0
committed
ci: gate create-release.yml's publishers on a dev-release version
A scheduled Vendor Update can trigger create-release.yml with no human
starting the run. version_check already computed PCAPKIT_PRERELEASE
(is_prerelease), but nothing read it to stop a publish, so a version
carrying a PEP 440 dev-release suffix (X.Y.Z.devN, the owner's
work-in-progress marker during active development) could be tagged and
published by that automatic trigger alone.
- version_check's "Get Version" step adds PCAPKIT_DEV_RELEASE, reading
is_devrelease rather than is_prerelease: the latter is also true for
a deliberately-tagged alpha/beta/rc this project has shipped for real
(e.g. 1.5.0b14), and gating on it would silently block one.
- github, tag, pypi and conda each add
needs.version_check.outputs.PCAPKIT_DEV_RELEASE != 'true' as a
top-level && conjunct, unconditionally, and unit-tests (the ~20-minute
release test gate) now adds the same conjunct -- a dev version can
never publish, so running that gate for one is wasted time (#1052).
- util/release_status.py: a dev release with every publisher skipped
for it now reports a quiet "Nothing to release" notice instead of
falling into the #888 stranded-partial-release error; wired via a new
PCAPKIT_DEV_RELEASE entry in release_status's env.
- Reworded four "no human in the path" overstatements (create-release.yml
x2, releasing.rst, a test docstring) to acknowledge github-release's
reviewer approval -- still worth the gate, since a reviewer can miss a
stray .devN, and a re-run that skips github asks for no fresh approval.
- releasing.rst: util/bump_version.py has no option to drop the dev
suffix -- on a dev version it only advances the devN counter -- so
corrected the claim that it bumps to the final version string, and
noted that running it on a dev version just produces another one.
- tests/project/test_release_gates.py: new rows in gate_rows(),
GITHUB_ROWS and UNIT_TESTS_ROWS covering PCAPKIT_DEV_RELEASE, a
character-for-character wiring check between version_check's outputs
and every consumer, a check that no job's gate reads PCAPKIT_PRERELEASE
by mistake, and a fixed test comment whose reasoning had the risk of
an unset gate output backwards for a publisher job.
- tests/project/test_release_status_scripts_1967.py: new cases covering
the dev-release notice and the regression check that the same skip
pattern with PCAPKIT_DEV_RELEASE=false still raises #888.
Build: coverage run -m pytest tests/project/ -k "release or workflow or
conda_dist" (641 passed, 1 pre-existing unrelated skip); isort, pylint
(10.00/10 on util/release_status.py) and actionlint 1.7.12 all clean.1 parent e1efee7 commit a842da0
6 files changed
Lines changed: 327 additions & 10 deletions
File tree
- .github/workflows
- docs/source/contributing
- tests/project
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
126 | 148 | | |
127 | 149 | | |
128 | 150 | | |
| |||
226 | 248 | | |
227 | 249 | | |
228 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
229 | 262 | | |
230 | 263 | | |
231 | 264 | | |
| |||
236 | 269 | | |
237 | 270 | | |
238 | 271 | | |
| 272 | + | |
239 | 273 | | |
240 | 274 | | |
241 | 275 | | |
| |||
310 | 344 | | |
311 | 345 | | |
312 | 346 | | |
| 347 | + | |
313 | 348 | | |
314 | 349 | | |
315 | 350 | | |
| |||
324 | 359 | | |
325 | 360 | | |
326 | 361 | | |
327 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
328 | 368 | | |
329 | 369 | | |
330 | 370 | | |
331 | 371 | | |
332 | 372 | | |
| 373 | + | |
333 | 374 | | |
334 | 375 | | |
335 | 376 | | |
| |||
360 | 401 | | |
361 | 402 | | |
362 | 403 | | |
| 404 | + | |
363 | 405 | | |
364 | 406 | | |
365 | 407 | | |
| |||
494 | 536 | | |
495 | 537 | | |
496 | 538 | | |
| 539 | + | |
497 | 540 | | |
498 | 541 | | |
499 | 542 | | |
| |||
580 | 623 | | |
581 | 624 | | |
582 | 625 | | |
| 626 | + | |
583 | 627 | | |
584 | 628 | | |
585 | 629 | | |
| |||
738 | 782 | | |
739 | 783 | | |
740 | 784 | | |
| 785 | + | |
741 | 786 | | |
742 | 787 | | |
743 | 788 | | |
| |||
994 | 1039 | | |
995 | 1040 | | |
996 | 1041 | | |
| 1042 | + | |
997 | 1043 | | |
998 | 1044 | | |
999 | 1045 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
75 | 102 | | |
76 | 103 | | |
77 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
0 commit comments