Repository navigation
ci: one release guard for all three packages - #146
Merged
Merged
Conversation
.github/scripts/release.py replaces modpoll's and modsim's preview-release.py, their version checks and modpoll-wot's inline check. Every release now proves the tag matches the package metadata, the commit is on v2 and each required check succeeded on it, found by name; modpoll-wot now requires its CI too, and all three require the integration suite. Its tests run in a new release tooling workflow and also prove that every required check is a job and that job names are unique across the workflows. The unused release_image_tags.py copies and the old scripts' tests are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gavinying
added a commit
that referenced
this pull request
Nov 14, 2026
The image and acceptance jobs check out the released tag and ran .github/scripts/release.py from it. A republish builds the current version's tag, which can predate the script: the push of #146 failed because modpoll-v2.0.0a12 has no release.py, so the 2.0.0a12-r1 preview image was not published. Both jobs now take the checks from a sparse checkout of the workflow's own commit and read the tag's tree with --root. The process lifecycle test timed out twice in CI without a trace. The child now runs with faulthandler and, if it does not exit in time, gets SIGABRT so the failure shows every thread's stack. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/scripts/release.py(standard library only) replaces the three release checks: modpoll's and modsim'spreview-release.py, theircheck_release_version.pycopies and modpoll-wot's inline shell check. Each takes the full tag (<package>-v<version>) and runs from any directory.version: the tag names the version inpyproject.toml(and inmodsim/__init__.py);--rootchecks another checkout, as modsim's acceptance does for historical tags.guard: version, commit onorigin/v2, and every required check succeeded on the commit. Checks are found by name and the newest run of each name decides. Required checks per package are listed in one table; modpoll-wot now requires its own CI and all three requireintegration conformance(previously modpoll-wot's release checked no CI).pypi: PyPI has no files for the version (absent) or exactly the built ones (identical); anything else fails. modsim and modpoll-wot now use this the way modpoll did.download: waits for the published wheel and verifies its SHA-256.The publish jobs declare
checks: read.release_image_tags.py(only used by the 1.x workflow onmain) and the old scripts' tests are removed.New workflow release tooling runs the script's tests, which also prove that every required check name is a job in some workflow and that job names are unique across all workflows — the property the guard relies on.
Verification
pytest .github/scripts: 11 passed; ruff; actionlint.4b19ee1: acceptsmodpoll-wot-v0.7.0a1,modpoll-v2.0.0a12,modsim-v2.0.0a14. For37c2c63(a workflow-only commit) it rejectsmodsim-v2.0.0a14and lists the missing checks.make check.🤖 Generated with Claude Code