Skip to content

Gate PyPI publication on immutable candidate validation - #28

Closed
acecchini wants to merge 4 commits into
codex/release-candidatefrom
codex/publication-gate
Closed

Gate PyPI publication on immutable candidate validation#28
acecchini wants to merge 4 commits into
codex/release-candidatefrom
codex/publication-gate

Conversation

@acecchini

@acecchini acecchini commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

The previous workflow published an arbitrary selected ref after building it, without a test gate. This change resolves one commit, requires matching workflow/tag/package identity and main ancestry for publication, checks prerelease status, and runs the complete reusable validation against that immutable commit. Publication consumes the same validated distributions and does not rebuild them.

Dispatch defaults to validation only. The final pypi environment job alone receives OIDC permission. A separate evidence artifact records source SHA, package version, artifact hashes and run URL. CONTRIBUTING records the exact procedure and administrative protections still requiring owner action.

Validation: 19 tests against disposable real Git histories cover valid releases and bypass rejection; hooks and actionlint pass. All PR checks passed. The actual validation-only run https://github.com/acecchini/bearshape/actions/runs/34221337124 completed 38 jobs successfully and skipped publication. Its normally installed wheel passed 1,097 tests at each Python endpoint and subsequently all 95 CuPy tests at both GPU endpoints. The ExecPlan records exact artifact hashes.

Stacked on #27. Native union rollback, CuPy static policy, administrative controls and user merge approval remain explicit release decisions. No publication, transfer or settings mutation occurred.

Integration record: this reviewed head is preserved in main through PR #31, merge commit df81f00. The owner approved merging this work. This dependent PR is closed as integrated; its commits were not squashed or discarded.

@acecchini
acecchini marked this pull request as ready for review September 8, 2026 11:41
@acecchini acecchini closed this Sep 8, 2026
@acecchini
acecchini deleted the codex/publication-gate branch September 8, 2026 13:21
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