Skip to content

ci: one release guard for all three packages - #146

Merged
gavinying merged 1 commit into
v2from
release-guard
Nov 14, 2026
Merged

gavinying merged 1 commit into
v2from
release-guard

Conversation

@gavinying

Copy link
Copy Markdown
Collaborator

Summary

.github/scripts/release.py (standard library only) replaces the three release checks: modpoll's and modsim's preview-release.py, their check_release_version.py copies 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 in pyproject.toml (and in modsim/__init__.py); --root checks another checkout, as modsim's acceptance does for historical tags.
  • guard: version, commit on origin/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 require integration 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 on main) 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.
  • Run against GitHub for the last release commit 4b19ee1: accepts modpoll-wot-v0.7.0a1, modpoll-v2.0.0a12, modsim-v2.0.0a14. For 37c2c63 (a workflow-only commit) it rejects modsim-v2.0.0a14 and lists the missing checks.
  • modpoll 248 passed / 51 skipped, modsim 143 passed / 5 skipped (the removed script tests account for the difference); make check.

🤖 Generated with Claude Code

.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
gavinying merged commit ad8d70e into v2 Nov 14, 2026
17 checks passed
@gavinying
gavinying deleted the release-guard branch November 14, 2026 04:47
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant