Repository navigation
The 006 contracts say that both wheel checks hold a payload file to the commit's whole mode, that release.yml's checks refuse with a named ::error:: line, and what the macOS rerun's two --install runs do (closes opensoft/openRepoTools#278) - #11
Merged
Merged
Conversation
…he commit's whole mode, that release.yml's wheel and index checks refuse with a named ::error:: line instead of a traceback, and that the macOS rerun places the sixteen files under bash 3.2 in a bin directory of its own (#278) This is the spec side of 64cd308, for openRepoTools-spec at the split. It changes specs/ text only: no code and no test. contracts/wheel.md, check 2: a payload file has the commit's whole mode, 100755 or 100644 as git records it, a regular file at 0755 or 0644 and no other bit, where the contract read only the owner-execute bit. It gives the reasons from hatchling 1.27.0's and pip 26.2.1's own source, and says that tests/test_package.py's check 2 still reads only the permission bits, so it refuses a subset of what the two workflows refuse. contracts/workflows.md: step 13 reads every member first and names one it cannot read; in both upload jobs the empty-index check reads once and refuses a status other than 200 or 404, a read with no answer or one cut off, and an answer that is not the index's JSON, and the served check reads again after a 404, a 5xx and a read with no answer and refuses any other status and an answer that is not the index's JSON at once; step 6 of the install job runs the macOS rerun in a bin directory of its own, where it must print 16 `installed at` lines; and the held-by list names the tests that hold each. spec.md: scenario 10 of user story 5, FR-032 and SC-008 say the same of the rerun. Left as they are: FR-006, FR-026, FR-030, data-model.md and research.md R13 already say the commit's mode, which is the whole mode; and "naming every problem" in wheel.md and in step 6, because tests.yml's own wheel check still ends in a traceback on a corrupt member, which #278 leaves to rehearsal D. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit dddb8796df8f3a48d90fe7a7cc3b0479c3b81265)
…me into its bin directory and finds the sixteen files already installed and unchanged, and that step 13 names a member stored as LZMA with corrupt data (#278) This is the spec side of ea93108, for openRepoTools-spec at the split. It changes specs/ text only: no code and no test. The rerun: dddb879 describes it placing the sixteen files in a bin directory of its own, with 16 `installed at` lines. It now also runs --install a second time into that directory and requires 16 `already installed at ... (unchanged)` lines, so that the installer's already-installed arm runs under bash 3.2 as well (RV-B's SHOULD 2: with the rerun's own directory, no macOS step ran that arm under any bash). spec.md: scenario 10 of user story 5, FR-032 and SC-008. contracts/workflows.md: step 6 of the install job, and the held-by list, which also says how the test holds the count (with one command reported different, the second run counts 15 and the rerun exits 1). Step 13's list of members it cannot read gains a corrupt LZMA stream, named as lzma.LZMAError, and the held-by list's three unreadable wheels become four (RV-B's SHOULD 1). contracts/workflows.md. Nothing else on the spec side changes. wheel.md lists no read errors, so it is as dddb879 has it. Part of #278. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 048050472c09c2c25dcf66367cfc64ecc706840f)
…a 404, a server error and any failure that carries no HTTP status, any OSError and any http.client.HTTPException, as release.yml's step does (#278) This is the spec side of the NIT 2 wording in ea93108, for openRepoTools-spec at the split. It changes specs/ text only: no code and no test. contracts/workflows.md, the testpypi job's served check. The sentence listed a 404, a server error (5xx) and "a read with no answer, one that times out or whose connection breaks, even mid-answer" as the reads made again. The step reads again after every failure that carries no HTTP status, whatever its cause: any OSError (a name that does not resolve, a connection refused, reset or broken, a timeout, a TLS error) and any http.client.HTTPException (a status line that is not HTTP, too many headers, a body cut short). ea93108 fixed the step's comment to say so (RV-B's NIT 2); the contract now says the same, so it no longer lists a narrower set than the code reads again. The refusals are unchanged: any other status, and an answer that is not the index's JSON. The pypi job's bullet sends the reader to testpypi's retries and refusals, so it needs no change. The held-by list's line for the served check names a 404, a server error, a read with no answer and an answer cut off. Those are the cases the offline test runs, and it does hold them, so the line stays as it is: it says what the test holds, and the test does not run every kind of OSError and HTTPException. Nothing else on the spec side changes. Part of #278. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 3e886c95763016ab54a1a82ceb75e2f3c577377c)
…ne command's mode reported as not 755, says (mode restored to 755) of it, finds that command already installed but not (unchanged), counts 15 and exits 1 (#278) This is the spec side of NIT B in cc20d58, for openRepoTools-spec at the split. It changes specs/ text only: no code and no test. contracts/workflows.md, the held-by list for tests/test_release_workflow.py, the bullet for the offline install and the macOS rerun. It said that the rerun's second --install finds the sixteen files each `already installed` and `(unchanged)`, and that with one of them reported different it updates that one, counts 15 and exits 1. It did not name the third case that cc20d58 added to RERUN_SECOND_RUN (RVF-B's NIT B, in the coordinator's verdict at #278 comment 6320879246; the owed sentence is the first "Still open" item of the note at comment 6321162936). In that case a find ahead of the system's reports one command's mode as not 755, so the second run says `lane: already installed at <bin>/lane (mode restored to 755)` of it, 15 lines are `(unchanged)`, and the step must exit 1 with its `found 15 commands already installed and unchanged in <bin>, not all 16` line. The bullet now says so in one sentence, after the case for a command reported different: with the mode of one of them reported as not 755, the second run says `(mode restored to 755)` of that one, which is `already installed` but not `(unchanged)`, so it counts 15 here too and the rerun exits 1 naming that count. The clause about `already installed` is the point of the case. A count of every `already installed` line gives 16 there and would pass the step, and only the count of the `(unchanged)` lines refuses it, so the contract no longer lists a narrower set than the test runs. spec.md's FR-032 and its acceptance scenario 10 state the requirement (16 `already installed` lines, each ending `(unchanged)`) and list none of the held cases, so they are unchanged. So are step 6 of this contract, which states the same requirement, and cli-output.md, which already names `(mode restored to 755)` among the per-file lines. Nothing else on the spec side changes. Part of #278. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 3ee502241d38b51fc7afbee9bf35e1847c5bd191)
Reviewer's GuideDocumentationDefine the release contract for wheel payload modes, unreadable wheel members, registry checks and retries, and the isolated macOS rerun, including its second-install edge cases.
Align the install rerun scenario, requirement, and success criterion with the stricter macOS checks described in the workflow contract.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="specs/006-release-pypi/contracts/workflows.md" line_range="308-315" />
<code_context>
`package` job's step 10. The skip line and the count line must be exact.
6. On macOS only, run step 5 again with `PATH="/bin:$PATH"`, and print
`BASH_VERSION`, which must begin with `3.2`.
+ - The rerun has a fresh `HOME` and a bin directory of its own, which holds
+ one link, with pipx's link's value, and nothing else. Step 5's
+ directory, pipx's, already holds the sixteen files, so a rerun there
+ would find each of them already installed and place none under 3.2.
+ - The skip line and the count line must be exact for that directory, and
+ the output must hold 16 lines of the form
+ `<file>: installed at <that directory>/<file>`, which are the sixteen
+ files placed (#278).
+ - The rerun then runs `--install` once more into that directory, where
+ the sixteen files are now in place. The output of that second run must
</code_context>
<issue_to_address>
**macOS rerun unchanged**
The contract now requires a separate bin directory and 16 placements under bash 3.2, but this diff does not change the workflow rerun that the issue says currently reuses the first run's directory.
</issue_to_address>Linked issues
#278 release.yml's wheel checks disagree on a member's mode, its corrupt-member and index checks end in tracebacks, and its macOS rerun places none of the 16 commands under bash 3.2 · 0 of 4 met
| # | Requirement | Status | Notes |
|---|---|---|---|
| 1 | Make both wheel checks hold payload members to one consistent, whole-mode rule. | 🟡 Partly met | The contract now specifies the commit's whole mode for the workflow checks and notes that the package test checks only permission bits, but this diff does not change either check. |
| 2 | Name unreadable wheel members in an ::error:: line and exit without a traceback. | 🟡 Partly met | The contract requires step 13 to do this, including for corrupt LZMA data, but this diff does not change the step. |
| 3 | Make both upload jobs' index checks refuse with named ::error:: lines, and specify which served-check failures are retried versus refused. | 🟡 Partly met | The contract specifies the empty-index refusals and the served check's retries and refusals, but this diff does not change either job's scripts. |
| 4 | Run the macOS rerun in its own bin directory so it places the commands under bash 3.2. | 🟡 Partly met | The contract and scenarios specify an isolated directory and 16 placements, but this diff does not change the macOS workflow step. |
Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: specs/006-release-pypi/contracts/workflows.md:315
The in-place merge of runbook v9: the stack grows by this clean merge, with no force-push. Lane: openRepoTools-2 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 9, 2026
brettheap
added a commit
to opensoft/openRepoTools-code
that referenced
this pull request
Nov 10, 2026
…L names, name a bad TestPyPI answer in the fetch, and count the macOS rerun's lines in the contract's form (opensoft/openRepoTools#352 items 4 to 6) (#26) Item 4 of opensoft/openRepoTools#352 and its follow-ups 5 and 6, from the sourcery-ai threads on release.yml's wheel and index checks (#12) and 006's macOS rerun (opensoft/openRepoTools-spec#11). Items 1 to 3 landed in #23. - The build job's wheel check holds a wheel to the layout zipfile writes, from byte 0 to the end of its end record. Each member's local header repeats its central entry's fields, the members follow one another with nothing between them, and the central directory and end record end the file with no extra field or comment. Each member's data must give exactly its declared size and CRC-32. Bytes no member declares, a local header that disagrees with its central entry, a directory entry that holds bytes, and a name with a NUL byte are each refused in one ::error:: line (follow-up 5). - The install job's TestPyPI fetch names an answer that is not TestPyPI's JSON in one ::error:: line instead of a traceback, and fetches nothing (follow-up 6). - The macOS rerun counts only lines of the contract's exact form toward its 16, so a line naming another file, or carrying more after "(unchanged)", no longer counts (item 4). - The review's fix round reads the last central record's name, extra field and comment lengths from the directory's own bytes. It ends a directory entry at a negative offset in an ::error:: line, not a traceback, and it names a name flagged UTF-8 that is not UTF-8 and a version needed to extract above 6.3. Lane openRepoTools-3's independent review read READY at 5a175f3, with no MUST. Its two SHOULDs and its NIT 3 are fixed at e0e9278 with six new cases, each failing before the fix, and lane openRepoTools-3 checked that delta. All 14 checks are green at e0e9278, tested on main ecd1bce. It lands under Brett Heap's standing landing word for lane 3's own fixes, typed in lane 3's session on 2026-11-10. Fixes opensoft/openRepoTools#352 Lane: openRepoTools-3 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Lane: openRepoTools-2
Claim: opensoft/openRepoTools#278 (comment)
The spec side of this issue's code PR. These picks change text under specs/ only: no code and no
test. contracts/wheel.md, check 2, says a payload file has the commit's whole mode, 100755 or
100644, where it read only the owner-execute bit. contracts/workflows.md says that step 13 reads
every member first and names one it cannot read, a corrupt LZMA stream included; that the index
checks of both upload jobs refuse with a named ::error:: line; that the served check reads again
after a 404, a server error and any failure that carries no HTTP status (any OSError and any
http.client.HTTPException); and that the macOS rerun runs in a bin directory of its own, places the
sixteen files there and then runs --install a second time and requires sixteen already-installed and
unchanged lines, with the case in which the second run restores one command's mode counted as 15.
spec.md's scenario 10 of user story 5, FR-032 and SC-008 say the same of the rerun.
The picks, from lane openRepoTools-2's branches in opensoft/openRepoTools, each made with
git cherry-pick -xand followed by its source commit:(cherry picked from commit dddb8796df8f3a48d90fe7a7cc3b0479c3b81265)
(cherry picked from commit 048050472c09c2c25dcf66367cfc64ecc706840f)
(cherry picked from commit 3e886c95763016ab54a1a82ceb75e2f3c577377c)
(cherry picked from commit 3ee502241d38b51fc7afbee9bf35e1847c5bd191)
Closes opensoft/openRepoTools#278.
Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code
Summary by Sourcery
Strengthen the release contracts and workflow specifications for wheel integrity, package-index failures, and macOS installer reruns.
Enhancements:
Documentation:
Tests: