Repository navigation
tests/test_tests_workflow.py runs the package job's wheel check on four more wheels and its step 10 whole, so neither loses a check with the suite green, and holds the two locks' tomli entries equal (part of opensoft/openRepoTools#275) - #13
Merged
Merged
Conversation
…te-member check, count line and 28 receipt rows can no longer be removed with the suite green: tests/test_tests_workflow.py runs the wheel check on four more wheels and step 10 whole on a stand-in for pipx's link (#275) Lane 3's review of #267 measured these survivors in tests.yml: M12 (the "nothing else" check off), M13 (modules and the stamp never compared), M14 (the duplicate-member check off), M21 (the count line never looked for), M22 (both `-ne 28` made `-ne 29`) and M34 (the stamp's compare skipped for the stamp). On this base, with the old test file, all five of M12, M13, M14, M21 and M22 applied together are still `-k test_tests_workflow` at 30 passed. What holds them now, in tests/test_tests_workflow.py: - Step 6's wheel check runs on four more wheels (WHEEL_CASES): a module with a byte changed, the stamp with a line added, a member nothing lists, and a member written twice (write_wheel's `again`, since a dict of members cannot say it). Each must exit 1 with an `::error::` line that names the file, and must not crash: a check 6 removed whole ends in `KeyError: 'openrepotools/extra.py'`, which names the file too, and the old assertion took it for a refusal. - Step 10 runs whole, offline, on a stand-in for pipx's link, a symlink to a /bin/sh script that prints the lines and writes the receipt a case gives it. It passes the skip line and the count line once each with 28 rows, and refuses a missing skip line, a missing or repeated count line, a receipt of 27 or 29 rows, and one of 28 or 27 rows with a line that is no row, so each half of the row check is held. It skips where `stat -c` and `sha256sum`, which the step reads its link with, are not GNU's. - The three static step 10 checks that read the skip line's words, the count line's words and the number 28 are relabelled for what they read, and say that the run holds the rest. tests.yml changes in one comment, which no longer counts the wheels. Removal proof, each mutant of tests.yml applied alone to a private clone and run against the new tests with tests/run.sh, LANES_* and TMUX* unset: - M34: wheel_check_refuses[stamp-line] fails, `AssertionError: exit 0`; - M13: [module-byte] and [stamp-line] fail; modules alone: [module-byte]; - M12, silent and block-removed: [extra-member] fails; the removed block crashes with that KeyError and fails the traceback assertion; - M14: [member-twice] fails; - M21: install_step[no-count-line] and [count-line-twice] fail; the skip line's half: [no-skip-line]; - M22: [as-printed] and [29-rows] fail; each half of the row check dropped: [27-rows-and-a-line-that-is-no-row] and [28-rows-and-a-line-that-is-no-row]. All five together against the new tests: 8 failed, 34 passed. Unmutated, `-k test_tests_workflow`: 42 passed (30 before, 12 new). contracts/workflows.md, which fixed the four wheels, is the next commit. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 5b87b2653f00c978d07db40e8709c010e24bd908)
… lock and tests/test_tests_workflow.py holds the two entries equal, and two comments in tests.yml and one docstring say what the package job's steps do and cover (#275) Lane 3's re-check of #228's pull request 2 left three NITs for v1.2.0, listed at the end of this issue, and RV-C's review of this branch (SHOULD S2, and the NITs N1 and N6) found them still standing at 8151c41, with two wording slips of this branch's own. - .github/release-pipx-requirements.txt: the header never named tomli. It now says that tomli is also the build lock's entry, because the package job installs that lock's first (step 4) and this whole lock after the two builds and the wheel check (step 7), and that the two entries move together. - tests/test_tests_workflow.py: no test compared the two locks' tomli entries. test_tests_yml_pipx_lock_carries_the_build_locks_own_tomli_entry holds the pipx lock's entry equal to the build lock's, its requirement line (version and marker) and every digest. It reads two text files and needs no submodule. - .github/workflows/tests.yml, step 4's comment: it read as if pytest were installed after step 7. It now says what the steps do, in their order: step 4 installs tomli by hash and then pytest, which keeps that tomli; step 7, after the two builds and the wheel check, installs the whole pipx lock by hash, which carries the same entry; the package's tests (step 11) run on the pipx lock's. - .github/workflows/tests.yml, step 6's comment (RV-C's N1): "one for each way the check refuses a wheel" claimed more than the cases hold. No case changes a byte of LICENSE or the payload's file-type bits, and #278's setuid, setgid, sticky and type cases are in test_release_workflow.py. It now says what contracts/workflows.md says: four more wheels, one for each check the first four never reach. - tests/test_tests_workflow.py, the step 10 test's docstring (RV-C's N6): it left out the case of 27 rows and a line that is no row. Comments, a docstring and one new test: the lines of tests.yml and of the pipx lock that are not comments hash the same before and after. Left open, and not this commit's: RV-C's N5, that step 10's run holds the two lines and the row count but has no case for the exit-status refusal, the missing-receipt refusal, the link-unchanged refusal or a skip line printed twice. The contract claims only what the run holds. Part of #275. Lane: openRepoTools-2 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> (cherry picked from commit 2120c39d58980a79f74ddc2c020806647e1b5d10)
Reviewer's GuideConfigurationClarify how the package job installs and uses the shared tomli entry and which additional wheel cases its check covers.
TestsExpand synthetic wheel coverage and require the wheel check to reject malformed modules, stamps, unexpected members, and duplicate members without crashing.
Run package step 10 against an offline pipx-link stand-in and assert its status lines, receipt row count, and refusal cases.
Assert that the pipx and build locks carry the same tomli requirement and hashes.
Lock files and vendored codeUpdate the pipx requirements lock header to identify its shared tomli entry.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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]>
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]>
|
brettheap
dismissed
sourcery-ai[bot]’s stale review
November 9, 2026 22:16
The base branch was changed.
This was referenced Nov 9, 2026
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#275 (comment)
Six checks of the package job in tests.yml could be removed with tests/test_tests_workflow.py still
passing: the stamp compare, the module compare, the member list, the duplicate-member check, the
count line and the 28 receipt rows. The first pick runs the wheel check on four more wheels (a
module with a byte changed, the stamp with a line added, a member nothing lists, a member written
twice) and step 10 whole, offline, on a stand-in for pipx's link, and each check removed alone now
fails a case. The second pick names, in the pipx lock's header, the tomli entry it shares with the
build lock, adds a test that holds the two entries equal, and corrects two comments in tests.yml and
one docstring. In tests.yml and in the pipx lock only comments change.
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 5b87b2653f00c978d07db40e8709c010e24bd908)
(cherry picked from commit 2120c39d58980a79f74ddc2c020806647e1b5d10)
Part of opensoft/openRepoTools#275.
Lane: openRepoTools-2
Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code
Summary by Sourcery
Strengthen package workflow contract tests so wheel validation, offline installation checks, and shared lock requirements cannot lose coverage unnoticed.
New Features:
Bug Fixes:
Enhancements:
Tests: