Repository navigation
Conversation
… level with image.yml Brett Heap's answer of 2026-11-17, "Fix under #656 ruling" (openxFactory#656, comment 6957231933): the release workflow is brought level with image.yml, which requires the deployment limit to be exactly the one that was configured. testpypi and pypi each carry one deployment policy, the tag v*, as read through the API on 2026-11-17. The build job now reads both environments' lists, and each publish job reads its own again at use time, and each requires exactly that: one policy, named v*, of type tag. More, fewer or different policies, a branch spelled v*, an answer in a shape the step does not know and a failed read refuse. The three checks run one script. The endpoint answers to actions: read, which all three jobs already hold, so no permission changes. What is built or published, the gates on the commit, the reviewer rule, the approval step and the environments themselves are unchanged. The header says that the environment's own configuration is the control and that the reads let a reviewed copy of the file notice a limit that was changed. tests: the build job and each publish job against the configured limit and 19 refusals each, the scripts held equal, and the steps' places held. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 4 days and 20 hours by commenting |
Reviewer's GuideConfigurationRead the deployment-policy list in the build and publish jobs and require exactly the configured tag policy, with workflow comments and timeout budgets updated to match.
TestsAdd workflow tests for the shared policy-check script, its placement and permissions, successful configured policies, and refusal cases.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
This branch has not been deployed
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.



What and why
Brings
release.yml's environment check level withimage.yml's. Authority: Brett Heap's answer of 2026-11-17, "Fix under #656 ruling", recorded as an addendum on openxFactory#656: fortestpypiandpypi, the check requires the deployment limit to be exactly the configured one, in the build job and again in each publish job, with tests.image.yml(#104) reads the environment's list of deployment branch policies and requires exactly the one that was configured.release.ymlalready required each environment to carry a required reviewer and a custom deployment limit, but did not read which refs the limit names. It now does.What the environments carry
Read through the API on 2026-11-17 (public metadata, read only; nothing was changed):
total_counttestpypiv*tagpypiv*tagThat is what the workflow's header already said was configured on 2026-10-05, so the check pins what is there.
What changes
both environments' deployment limits are exactly the tag v*, after the existing environment step. It reads each environment'sdeployment-branch-policiesand requires exactly one policy, namedv*, of typetag. More, fewer or different policies, a branch spelledv*, an answer in a shape the step does not know, and a failed read each refuse. Both environments are always read and reported.testpypiandpypijobs: the same script, for the job's own environment, as a step before the approval step. The approval step is unchanged, and so is its place right before the preflight and the upload.image.ymlcopies that step byte for byte in its own tests, and still matches.actions: read(GitHub's permissions table for "List deployment branch policies", the same tableimage.yml's change used), which the build job and both publish jobs already hold.main, the tag), the reviewer rule, the approval step, the environments, and every other job.release.ymlwas not dispatched. There is no release document underdocs/that describes these environments, so the workflow's own header comments are the record;docs/image-release.mdalready describespypias limiting to the tagv*, which stays true.Tests
tests/test_release_workflow.py: 211 cases (129 before). The 82 new ones run the steps' own scripts with a stand-ingh, as the file's other cases do:v*spelt as a branch, another tag pattern, capitals, a full ref in place of the name,mainalone, an extra tag, an extra branch, a wildcard besidev*, no policy, a list longer than the one read, a count that is not a number, no list, a nameless entry, a typeless entry,null, a non-JSON answer, and a failed read;actions: read;Deliberate breaks that turned these red, then restored: all three accepting any name; all three accepting a branch spelt
v*; all three accepting an extra policy; thepypijob's script drifting from the others; the build job no longer readingpypi; thetestpypijob losing its step. Also run locally:tests/test_image_workflow.py,tests/test_doc_surfaces.py,tests/test_leg_shape.py,tests/test_hermeticity.py(193 cases), andactionlinton all three workflows (0 errors). Whole-suite collection is 6150.Not verified
The check runs against live environments only in a real release, and
release.ymlwas not dispatched. The accepted case rests on the live reading above, and on the response shape (total_count, andbranch_policies[]withnameandtype) that the same endpoint returned for these two environments today.Maintenance branch
Whether
release/0.1.xtakes this change is decided if and when a 0.1.2 is ruled (item 3 of the addendum). No release is cut for this.🤖 Generated with Claude Code