Repository navigation
Description
Found by lane openRepoTools-2's independent review of #228's pull request 3, now #268 (its verdict is #228's comment 6273189381, NIT table; the reading-and-probes reviewer's NITs 2, 3 and 7, and its index probe). The review's verdict is that no finding shows release.yml doing a wrong thing today, and these four are NITs about how its checks behave at the edges: (b) and (c) exit 1 and fail closed, (a) affects no real build, and in (d) the lines and rows still hold.
Line numbers are .github/workflows/release.yml at 29cc1b3, as the review gives them, unless a file is named. At #268's head 9682f0b, release.yml differs from 29cc1b3 in one comment block (at :1379), so (a) to (c) are at the same lines there and (d) is at :1475-1478.
What happens
- (a) The two wheel checks disagree on modes.
release.ymlreads onlyS_IMODEof a member's mode (:896), so a member typed as a symlink passes.tests.yml'smode & 0o777(tests.yml:370) passes setuid 4755 and sticky 1755, whichrelease.ymlrefuses. (Its next clause does refuse a member that is neither a regular file nor untyped.)- Measured by the review's probe of both checks on those modes (lane 2's
wheel-modes-both.log). No real build is affected.
- (b) The CRC traceback (
:885-886). A corrupt member makeswheel.readraise an uncaughtBadZipFile. The step still exits 1.- The review's wheel probe ran the check on lane 3's 20 defective wheels: each was named with exit 1, except the symlink wheel of (a) and the CRC wheel of this item.
- (c) The index checks' tracebacks:
:1162-1188and:1199-1228in thetestpypijob, and the same two scripts in thepypijob at:1663-1689and:1698-1727.- The empty-index check stops with an uncaught traceback on HTTP 500 or 403, a network error, or a 200 that is not JSON.
- The served check does so on a 403, or on a non-JSON 200, at read 1, where it retries 404s, 503s, timeouts and network errors.
- Each exits 1, and fails closed. The neighbouring refusals print an
::error::line (:1181,:1185,:1225); these print none. - Measured by the review's index probe, on both jobs. The scripts are right on every case the probe set: a 404, and the verified wheel at its digest, pass; that wheel yanked, another digest and an extra sdist are refused; the served check passes after lag, timeouts and 503s up to read 20, and refuses after 20.
- (d) Placement under 3.2 (
:1474-1477). The macOS rerun of--installunder Apple's/bin/bash3.2 reuses step 8's bin directory (OPENREPOTOOLS_BIN_DIR="$PIPX_BIN_DIR"in both). So all 16 commands take "already installed (unchanged)", and none of them is placed under Apple's bash. The lines and rows the step checks still hold.- Measured by the review's probe: steps 8 and 9 with one bin directory, two homes and the test layout's fake pipx environment. With step 9 under bash 3.2.57, both runs print the exact skip line and
16 of 17 placed in <bin>, and 1 left to pipx, with 28 lines and 28 rows in each receipt; with a non-3.2 bash in place of/bin, step 9 refuses. That was a Linux build of 3.2.57: Apple's own/bin/bashwas not run.
- Measured by the review's probe: steps 8 and 9 with one bin directory, two homes and the test layout's fake pipx environment. With step 9 under bash 3.2.57, both runs print the exact skip line and
Where
- (a)
release.yml:896,tests.yml:370(the same at29cc1b3and at9682f0b). - (b)
release.yml:885-886. - (c)
release.yml:1162-1188,:1199-1228,:1663-1689,:1698-1727. Thepypicopies are byte-for-byte thetestpypiscripts. - (d)
release.yml:1474-1477.
How it was found
- Lane 2's independent review of Releases: annotated tags, release/vX.Y branches, and openrepotools on TestPyPI and PyPI from v1.1.0 #228's PR 3 (comment 6273189381): its NIT rows "Two wheel checks" (NIT 2), "CRC traceback" (NIT 3), "Index-check tracebacks" and "Placement under 3.2" (NIT 7), each status NEW. The index row's status is "NEW, for R2's fixtures": R2 is lane 3's second fix round, which was to run the two index scripts against fixtures (SH1 of the same review).
The fix
- The review proposed none for these four; each row names the defect and what was measured.
- What a fix has to settle (nothing here is decided):
- (a) which rule both checks hold a member's mode to, since each now holds one the other lacks;
- (b) and (c) whether these stop with an
::error::line, as the other refusals do, and for (c) which replies are retried and which are refused; - (d) whether the rerun needs a bin directory of its own, so that the 16 commands are placed under bash 3.2.
Why it is not in v1.1.0
- Each needs a behaviour change in
release.ymlafter its review (for (a), inrelease.yml,tests.ymlor both), and none makes a real release wrong today: (a) affects no real build, (b) and (c) exit 1 and fail closed, and in (d) the lines and rows still hold.
Filed in milestone v1.2.0 on Brett Heap's word (2026-10-19T18:3xZ, "yes, file the v1.2.0 issues"). It is unclaimed.
Lane: openRepoTools-3
🤖 Generated with Claude Code
Activity
brettheap commentedon Oct 20, 2026
CLAIMED — lane openRepoTools-2, session 202778d2-0e63-4478-9c95-fdde314b0524@Eagle, 2026-10-20T23:02:06Z, for #278
Logged in
lanes/log/openRepoTools-2.mdat2b05ac26f325a1cf4610c020880a5fbdb376782d.The three reads (lane-collision-protocol Rule 1):
brettheap commentedon Oct 21, 2026
Lane openRepoTools-2, 2026-10-21T02:4xZ: #278 is done, on a branch only. It is branch
fix/278-wheel-checks-agree-lane2at64cd308, one commit on maina42946e, to be cherry-picked into openRepoTools-code after v1.1.0 is tagged. Each item has a test that fails against main's workflows and passes on the branch.100755or100644: a regular file, with no setuid, setgid or sticky bit.release.yml's mode table and check, plus one code line intests.yml'spackagecheck.a42946ecarry it.release.yml's check, and setuid, setgid or sticky passestests.yml's. Both checks refuse all six on the branch.::error::line and exit 1. On main, each ends in a traceback.--installplaces all 16 commands there under/bin/bash, and the step requires 16installed atlines.bash:3.2agrees.-k 'test_release_workflow or test_tests_workflow or repo_hygiene'passes 790. actionlint 1.7.12, with shellcheck, is clean on both workflows.tests/test_package.py:449keeps the older mode reading. It refuses a subset of what the workflows refuse, so there is no gap.tests.yml's own wheel check still tracebacks on a corrupt member. The issue namesrelease.ymlfor (b), and rehearsal D rewritestests.yml, so its diff here is one line.specs/006-release-pypi/contracts/wheel.md:108-110states the looser rule. That belongs to openRepoTools-spec./bin/bashwas not run, because no macOS host is here.Lane: openRepoTools-2
The 006 contracts say that both wheel checks hold a payload file to t…
The pipx lock's header names the tomli entry it shares with the build…
release.yml's wheel check names a member stored as LZMA with corrupt …
The 006 contracts say that the macOS rerun runs --install a second ti…
The 006 contracts say that TestPyPI's served check reads again after …
brettheap commentedon Oct 21, 2026
Lane openRepoTools-2, 2026-10-21T14:0xZ: #278's review fixes are on the branch, three new commits, still on the branch only.
fix/278-wheel-checks-agree-lane2is now at3e886c9, on maina42946e, above64cd308anddddb879. It is still to be cherry-picked into openRepoTools-code (the code commit) and openRepoTools-spec (the two spec commits) after v1.1.0 is tagged. The review of64cd308anddddb879found two SHOULDs and eight NITs. These commits fix both SHOULDs and NITs 1, 2, 3, 7 and 8, and the spec follows the code.ea93108(code).lzma.LZMAError, so the member is named in an::error::line and the step exits 1, with no traceback. New casea-payload-file-stored-as-lzma-with-corrupt-data; the unreadable-wheel cases are now four.--installinto its own bin directory, it runs--installa second time into that directory and requires exactly 16already installed at ... (unchanged)lines. On the macOS leg, both arms of the installer now run under/bin/bash3.2. The rerun's runtime test now runs two ways: all 16 found unchanged passes, and with one command the second run would update, the step counts 15 and exits 1.tests.yml's mode message prints the wheel's mode as{mode:06o}and names the commit's as a regular file at its permissions and no other bit. NIT 2: the served check's comment lists what it really reads again: a 404, a 5xx, anyOSErrorand anyhttp.client.HTTPException. NIT 3: both upload jobs' copies say "a status this check does not read again". NIT 7: the link message says "changed the copy of pipx's link". NIT 8: thetests/test_package.pydocstring says it reads permission bits only, a subset of the whole-mode rule the two workflows hold in full.0480504(spec).spec.md(scenario 10 of user story 5, FR-032, SC-008) andcontracts/workflows.md(install step 6, step 13's read errors, the held-by list) now name the second--installand the corrupt LZMA stream.3e886c9(spec).contracts/workflows.md's served-check sentence listed a 404, a 5xx and "a read with no answer, one that times out or whose connection breaks, even mid-answer". It now says what the code reads again, NIT 2's set: anyOSErrorand anyhttp.client.HTTPException. The held-by list's line names the four cases the offline test runs, so it stays.lzma.LZMAErrordropped from the tuple: 1 failed, 7 passed. The new LZMA case fails atassert "Traceback (most recent call last)" not in out, with_lzma.LZMAError: Corrupt input dataon stderr.--installwith its status check and count check removed: 3 failed. Both rerun cases fail at "the rerun no longer puts /bin first for its version probe and for each of its two --install runs" (assert 2 == 3), and the one-script test fails.assert 0 == 1: the step exits 0), and the one-script test fails.assert 1 == 0) and accepts 15 (assert 0 == 1), and the one-script test fails.3e886c9,-k 'test_release_workflow or test_package or test_tests_workflow or repo_hygiene': 962 passed, 5 skipped, none failed. The five skips are thetests/test_package.pytests that check a built wheel and needOPENREPOTOOLS_TEST_WHEEL, which CI'spackagejob sets. By module:test_release_workflow525,test_repo_hygiene237,test_package_stamp140 (-k test_packageselects it too),test_package30,test_tests_workflow30. The first note's selection,test_release_workflow or test_tests_workflow or repo_hygiene, is 525 + 30 + 237 = 792: its 790 and the two new cases. actionlint 1.7.12, with shellcheck, exits 0 onrelease.ymlandtests.ymlat3e886c9.RecursionErrortraceback on a JSON answer nested past the recursion limit, because that error is outside their except tuple. It is an input far beyond anything an index sends, so it is left for a later change.UnicodeDecodeError. It is pre-existing.tests.ymlrefuses it. It is pre-existing.Lane: openRepoTools-2
Merge main (50d05d4, with #296's ubuntu-24.04 pin) into fix/278-wheel…
brettheap commentedon Oct 21, 2026
Lane openRepoTools-2, 2026-10-21T16:2xZ: the final review of #278 is READY, with no MUST and no SHOULD. It was an opus pass, on Brett Heap's word.
273e32c. It holds the branch's own commits64cd308,dddb879,ea93108,0480504and3e886c9, plus a merge of main50d05d4. That merge changes nothing but main's delta:git merge-treegives the head's own tree.lzma.LZMAError.::error::line and exit 1, with no traceback.lzma.LZMAErrorfrom the tuple makes the new case fail.--installmust report all 16 commands as already installed and unchanged.bash:3.2run of the staged step exits 0, with 16 such lines and nothing reinstalled.dddb879's delta, never finished in the first review, holds. Its hatchling 1.27.0 and pip 26.2.1 citations are exact.0480504and3e886c9match the code.33ce26dgive 988 passed, 5 skipped and 0 failed.273e32chas all four jobs green.tests/test_release_workflow.py:2216-2218) saysLZMAErroris the only one of the four read errors that is neither anOSErrornor aValueError. None of the four is either.(unchanged)requirement is held only by the text-matching test. A mutant that drops it, together with its pinned copy, passes. No case makes the second run report a restored mode.:3481-3484) says the served check refuses any other file at once, but the table beside it reads again 20 times.Lane: openRepoTools-2
A third case in the macOS rerun's test makes the second --install res…
brettheap commentedon Oct 21, 2026
Lane openRepoTools-2, 2026-10-21T16:3xZ: the three NITs of the final review of #278 (6320879246) are FIXED in one code-side commit,
cc20d58, pushed tofix/278-wheel-checks-agree-lane2as a fast-forward from273e32c.tests/test_release_workflow.pyonly: 59 insertions and 30 deletions, and no workflow, script or spec.LZMAErrorcomment aboveUNREADABLE_MEMBERS): it calledLZMAError"the one error here that is neither anOSErrornor aValueError", and none of the four read errors is either. It now says what setLZMAErrorapart: the read loop'sexcepttuple did not name it, as it namesBadZipFile,zlib.errorandRuntimeError(NotImplementedError's base), and it derives fromExceptionalone.--install's(unchanged), held by text matching alone):RERUN_SECOND_RUNhas a third case,one-command-whose-mode-the-second-run-would-restore.findstand-in ahead of the system's, in the test's/bin, prints nothing for*/bin-bin-bash/lane, whichmode_is(find -perm 755) reads as a mode that is not 755. The second run then printslane: already installed at <bin>/lane (mode restored to 755), 15 lines are(unchanged), and the step must exit 1 with itsfound 15 commands already installed and unchanged ... not all 16line.-k 'test_release_install_check_the_macos or test_release_install_check_the_offline_installs_are_one_script': unmutated, 5 passed. With RVF-B's CO1 applied (grep -cF ' (unchanged)'becomesgrep -c .in release.yml and in its pin), 1 failed and 4 passed. The one failure is the new case, atassert again.returncode == (0 if passes else 1):assert 0 == 1, because the step exited 0 on a second run that printedlane: already installed at <bin>/lane (mode restored to 755). Before this commit CO1 passed all four tests that existed (RVF-B's own run).SERVED_CASES): it now says what the table holds. The wheel yanked, a client error and an answer that is not the index's JSON are refused at the first read, and an index that never serves exactly the wheel (another file beside it every time, its digest another every time, or the wheel only at the 21st read) after the 20.-k test_release_workflowon the tree atcc20d58, throughtests/run.shwith everyLANES_*andTMUX*variable unset: 526 passed, 2510 deselected, 0 failed.tests.ymlis dispatched on the branch atcc20d58, run 39635903160. Its result is not in yet.contracts/workflows.md's held-by bullet for the rerun's second--installsays only "with one of them reported different, it updates that one, counts 15, and the rerun exits 1 naming that count". It does not name the new case, where one command's restored mode also leaves the count at 15. One sentence is owed at the split, for openRepoTools-spec. It is not in this commit, because lane 2's brief made this one code-side commit and the split keeps code and spec apart.lzma.LZMAErrorsentence) still says it "is neither anOSErrornor aValueError, so the read loop names it". That is true ofLZMAError, and of the other three read errors too. RVF-B's NIT A names the test's comment, so release.yml is untouched here.Lane: openRepoTools-2
The 006 contracts say that the macOS rerun's second --install, with o…
brettheap commentedon Oct 21, 2026
Lane openRepoTools-2, 2026-10-21T16:5xZ: the spec side of NIT B (6320879246) is pushed as
3ee5022, one spec-only commit, a fast-forward fromcc20d58onfix/278-wheel-checks-agree-lane2. It adds the one sentence that 6321162936 listed as owed, to the held-by bullet for the macOS rerun inspecs/006-release-pypi/contracts/workflows.md: with the mode of one command reported as not 755, the second--installsays(mode restored to 755)of it, which isalready installedbut not(unchanged), so the count is 15 and the rerun exits 1, ascc20d58's thirdRERUN_SECOND_RUNcase holds. FR-032 inspec.mdlists no held cases, so it is unchanged.Tests, CI, open:
-k 'test_release_workflow or repo_hygiene'at3ee5022, throughtests/run.shwith everyLANES_*andTMUX*variable unset: 763 passed, 2273 deselected, 0 failed. No test or code changed, so no mutant proof is owed.tests.ymlis dispatched on the branch at3ee5022, run 39638651991, and its result is not in yet. Still open: release.yml's own comment above step 13's read loop (thelzma.LZMAErrorsentence), untouched because RVF-B's NIT A names the test's comment only, and NITs 4, 5 and 6 of the earlier review (6318028197). The branch stays a branch until v1.1.0 is tagged.Lane: openRepoTools-2
Both wheel checks hold a payload file to the commit's whole mode, rel…
The 006 contracts say that both wheel checks hold a payload file to t…
brettheap commentedon Nov 9, 2026
RELEASED — lane openRepoTools-2, session 202778d2-0e63-4478-9c95-fdde314b0524@Eagle, 2026-11-09T23:28:35Z, for #278 — W2 landed it as opensoft/openRepoTools-code#12 merge 1c48ae0 and opensoft/openRepoTools-spec#11 merge 6dfe0fa and the issue is closed
Refuse wheel members in any compression method but STORED and DEFLATE…