Skip to content

ci(push): run the release workflow's steps as Python calls (GEN-005, #2826) - #2827

Merged
zackees merged 2 commits into
masterfrom
infra/2826-push-release-python
Oct 28, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2826-push-release-python

Conversation

@zackees

@zackees zackees commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Refs #2826

What

.github/workflows/push.yaml carries five multi-line run: blocks, so ci-lint precheck reports a GEN-005 approved exception for the path. Each becomes one call into ci/push_release.py:

job step subcommand
deploy-documentation Get Commit Information 🆔 commit-hash
deploy-documentation Set Up Redirects 🔄 set-redirects
create-release Check Release Tag ☑️ check-tag
create-release Rename Files 🏷️ rename-artifacts
create-release Generate Checksums 🪪 checksums

Both jobs also gain the actions/checkout and pinned astral-sh/setup-uv steps they need to see the module at all; neither checks the repository out today.

RED

57788d025 — ci/test_push_release.py only. On that commit the module does not exist, the workflow is still five shell blocks and ci.toml still carries the GEN-005 exception:

uv run python -m unittest ci/test_push_release.py
Ran 19 tests
FAILED (failures=27, errors=1)

GREEN

f7d03f7ff — ci/push_release.py, the rewritten workflow, and the deleted ci.toml exception:

uv run python -m unittest ci/test_push_release.py
Ran 19 tests
OK

ci-lint precheck (pin a1917ce7) on the branch tip: 5 violation(s), 366 approved exception(s), 10 needs_review; grep GEN-005 | grep push.yaml is now empty, and the violation/needs_review counts are unchanged from origin/master. ./lint and ci.test_ci_toml (45 tests) pass.

Not verified: both jobs are release-only (upstream owner, ref_type == 'tag'), so the first real proof is the next tagged release; the fixture tests — the tag matrix, the twelve renames, the redirect text, the checksum lines — are the local evidence, as in the sibling ports (#2794, #2804, #2812).

The workflow still carries five shell blocks and ci/push_release.py does not exist, so every subcommand test fails.
ci/push_release.py holds the five steps as subcommands, both jobs gain the checkout and pinned setup-uv they need to see it, and the GEN-005 exception for the path is gone.
@zackees
zackees force-pushed the infra/2826-push-release-python branch from c30a6bf to f7d03f7 Compare October 28, 2026 16:10
@zackees
zackees marked this pull request as ready for review October 28, 2026 16:21
@zackees
zackees added this pull request to the merge queue Oct 28, 2026
Merged via the queue into master with commit 0fada4c Oct 28, 2026
33 checks passed
@zackees
zackees deleted the infra/2826-push-release-python branch October 28, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant