Skip to content

The 006 workflows contract describes tests.yml as opensoft/openRepoTools-code#22 leaves it: tests and tests-no-submodule are gates over a matrix of shard jobs, and the Held-by list names each assertion (opensoft/openRepoTools#77) - #18

Merged
brettheap merged 3 commits into
mainfrom
docs/006-tests-matrix-77
Nov 10, 2026

Conversation

@brettheap

@brettheap brettheap commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openRepoTools-4
Claim: opensoft/openRepoTools#77 (comment)

What this changes, and why

opensoft/openRepoTools-code#22, "CI runs the tests as a matrix of shards, keeping the four check names (opensoft/openRepoTools#77)", made each of the code leg's tests and tests-no-submodule jobs a gate over a matrix of shard jobs, tests-shard and tests-no-submodule-shard, and kept all four check names. It has landed, at 2026-11-09T23:18:48Z, as code main 39839dc78cc4da49eca217f5fd4e52f4abfb7c3d, whose tree b7deb16 is the tree of its last head 05a7b44.

Its body said that this leg's "Held by tests/test_tests_workflow.py" list describes the workflow before that PR, and that the spec leg needs an amendment. This PR is that amendment. It amends the contract to code#22, so that the contract and the spec describe tests.yml and tests/test_tests_workflow.py as code main has them.

The PR has three commits:

When it lands

Brett Heap chose to have lane 4 draft this PR at 2026-11-09T21:57:15Z, "(a) Lane 4, now (Recommended)", relayed in opensoft/openRepoTools#165 comment 6752536766. Code#22 has landed, so the contract now describes a workflow the code leg has. The PR waits for lane 3's delta check of 2ae29e4, and then for Brett's word. No test in the code leg reads these files.

W2's spec leg also edits contracts/workflows.md. A merge of spec main a980d93 into this branch is clean (tree 6ebb4eca), and the coordinator makes it at landing. The line numbers below are this branch's at 2ae29e4. In the merged tree the Held heading is at line 441 and the FR-025 note at spec.md:582.

Each changed place

  • specs/006-release-pypi/spec.md, FR-025, lines 577-581. The MUST "The three existing jobs MUST stay unchanged" is left as it is. A note beside it says that this requirement binds #228's change, that CI's Linux test job takes 46–72 minutes a run, because its Python tests and the shell suite run one after the other openRepoTools#77 (CI runs the tests as a matrix of shards, keeping the four check names (opensoft/openRepoTools#77) openRepoTools-code#22) later made tests and tests-no-submodule each a gate over a matrix of shard jobs, and that the three keep their ids (FR-046). This is lane 3's ruling: a note beside the MUST, not a change to it.
  • specs/006-release-pypi/contracts/workflows.md, "The header comment", lines 36-40. "Every other comment stays as it is" is scoped to #228's change. The note says what spec(ci): require fresh admission observations after caller movement #77 later did to the comments: it reworded the header comment's sentences on what every trigger runs, extended the comment that sat above tests-no-submodule, now above tests-no-submodule-shard, and added comments above tests-shard and inside both shard jobs. At code main that comment is tests.yml:225-240, above the shard job at :241, and nothing sits above the gate at :287.
  • contracts/workflows.md, "Jobs", lines 44-51. It said that guard-launch-mode, tests and tests-no-submodule stay byte for byte. Now it says what spec(ci): require fresh admission observations after caller movement #77 (CI runs the tests as a matrix of shards, keeping the four check names (opensoft/openRepoTools#77) openRepoTools-code#22) does: it leaves guard-launch-mode as it is, and makes tests and tests-no-submodule each a gate over a matrix of shard jobs. There is no history claim, and no byte-for-byte claim for guard-launch-mode, because #296 changed runs-on on all three. It names the three, guard-launch-mode, tests and tests-no-submodule, as among the gate's job ids that the code leg keeps (FR-046). The release gate in the code leg's release.yml compares a job's name with each of the four exactly, so a shard job never counts as one.
  • contracts/workflows.md, step 3 of the package job, lines 57-58. The git identity is set "as the tests-shard job sets it", where it said the tests job. The tests gate does not set it.
  • contracts/workflows.md, "Held by tests/test_tests_workflow.py", lines 365-415. These replace "The four job ids are present" and "The three existing jobs keep today's ...". Each bullet is what a test of tests/test_tests_workflow.py asserts at code main:
    • lines 369-373: the jobs are exactly the four ids and tests-shard and tests-no-submodule-shard, the shard jobs behind tests and tests-no-submodule; none of the six has a name:; only the two gates have an if:, which is ${{ always() }} (test_tests_yml_has_the_four_gate_jobs_and_the_two_shard_jobs_and_no_other);
    • lines 374-384: guard-launch-mode and the two shard jobs keep the runner, checkout options, Python version and run: commands, the shard's pytest command replacing the old one. The bullet lists what a shard gains: timeout-minutes, strategy, an env: of SHARD on the step that runs the shard, and the upload step (test_tests_yml_existing_job_keeps_todays_runner_checkout_python_and_runs);
    • lines 385-404: each gate's needs:, if: ${{ always() }}, absence of strategy: and of a job-level continue-on-error, and its last step, the only one that runs ci_shards.py verify (test_tests_yml_the_gate_waits_on_its_shards_and_fails_closed). Lines 398-402 say that "no continue-on-error" is the job's and the last step's, that the gates' download step has continue-on-error: true (tests.yml:214 and :302), and that the diff review answers for the steps no test holds. Lines 403-404 say that what verify checks is held by tests/test_ci_shards.py;
    • lines 405-414: each matrix is the plan's shard list, fail-fast is false, and each shard job keeps its report in one upload step that always runs (test_tests_yml_the_matrix_is_the_plans_shards_and_their_reports_are_kept);
    • line 415: each shard job's timeout-minutes is 60 (test_tests_yml_each_shard_job_times_out_at_60_minutes).
  • specs/006-release-pypi/plan.md, "Scale/Scope", lines 135-137. "4 CI jobs in tests.yml" now says that these are the release gate's ids and that two shard jobs sit behind two of them. Lane 3 ruled to keep this hunk (comment 6752928881).

The bullets about the triggers, the package job, tomli, the wheel check and the header comment are unchanged, and so are the tests behind them.

The reviews' items

First review, at 0f16433e:

  • MUST 1, the FR-025 note: done, as above.
  • SHOULD 2, the history claim in "Jobs": done.
  • SHOULD 3, "Every other comment stays as it is": done.
  • SHOULD 4, the landing: W2's spec leg moved main. The merge is the coordinator's, at landing.
  • NIT 5, "the three" named: done, in "Jobs".
  • NIT 6, "which are" reordered: done, at lines 369-371.
  • NIT 7, whose continue-on-error: done, at lines 387 and 398-402.
  • NIT 8, what a shard gains: done, at lines 376-379.
  • NIT 9, optional, left; see below. Lane 3 accepted the reason.
  • NIT 10, the body's line cites: done in each body since.
  • NIT 11, not this PR's; see below.

Second check, at 8a4853c:

Checked and left

  • spec.md lines 214, 575-576 (FR-025), 627 (FR-029) and 797 (FR-046), and the edge case at line 351: each names the four ids, which code#22 keeps, and the gate reads them by name. Still true.
  • contracts/workflows.md step 6 of the release build, lines 219-223: the four jobs "each ran", none in progress, the newest succeeded. Still true, because a gate always runs and goes red when a shard fails.
  • plan.md line 91 ("CI's tests job is the suite of record"), research.md line 220 ("In the tests job the wheel tests skip, and every other package test runs there") and design.md line 432 ("they also run in the tests job"): the review's optional NIT 9. Left, and lane 3 accepted the reason. Each says what is run or skipped, and in which check. The pytest shards run the tests, and the tests check is the gate that fails unless the shards add up to the whole suite, so it is still the check of record. The skip behaviour is unchanged, in tests-shard and tests-no-submodule-shard. None of the three is made false, only less exact about which job holds the step.
  • research.md R9 (line 232), data-model.md line 154, plan.md lines 204 and 212, tasks.md T015 to T017, quickstart.md: records of what 006 decided and did, or statements about the four check names. R9's list of what the workflow test holds is incomplete now, not false.
  • openspec/changes/release-tags-pypi/, proposal.md line 480 ("The three existing jobs are unchanged") and the delta specs: the proposal for #228, and the delta specs name only the four ids. openspec validate release-tags-pypi --strict still reports the change valid (openspec 1.13.1, with DO_NOT_TRACK=1).
  • docs/release-notes/v1.1.0.md line 39 ("every run has four jobs"): the notes of a released version.
  • specs/004-migrate-to-triad/: dated evidence, and the T010 patch. git apply -R --check accepts the patch against the code leg's earlier main tests.yml, so it is already applied there, and code#22 branched from that file: code#22 does not make it stale.

Not in this PR

NIT 11 is a follow-up for the code leg, with opensoft/openRepoTools#77's: tests/test_tests_workflow.py at code main still says that the tests job sets the git identity, in the comment at line 171 ("The identity the fixture commits carry, as the tests job sets it") and in the docstring at line 1239. The tests-shard job sets it.

Checks

  • Each name that the new text of the three commits puts in code spans (42 of them) was searched for in code main 39839dc's tests/test_tests_workflow.py, .github/workflows/tests.yml, tests/test_ci_shards.py and .github/ci/ci_shards.py. All are found as written, except release.yml, which is in the re-wrapped line of plan.md and is not a claim about the code leg's tests.yml.
  • SHARD's env: is on the step that runs the shard in both shard jobs (tests.yml:188 and :276), timeout-minutes: 60 and fail-fast: false are in both, and the only continue-on-error in the file is the two download steps (:214 and :302). The comment that was above tests-no-submodule is at :225-240, above tests-no-submodule-shard at :241, and nothing is above the gate at :287.
  • The 14 tests of tests/test_tests_workflow.py that hold the triggers, the jobs, the gates, the matrices, the timeouts, the header comment and the digest rule were run at 39839dc, in a clone of the code leg with its submodule: 14 passed. The package job's tests were not run.
  • openspec validate release-tags-pypi --strict, openspec 1.13.1 with DO_NOT_TRACK=1: valid. git diff --check: clean.
  • git merge-tree of this branch over spec main a980d93: clean.

Review

Lane openRepoTools-3's independent reviewer, on sonnet-xhigh, reviewed 0f16433e, and lane 3 checked 8a4853c by its diff. 2ae29e4 needs lane 3's delta check. The PR then waits for Brett's word.

🤖 Generated with Claude Code

Summary by Sourcery

Amend the 006 release workflow contract to match the shard-based tests workflow while preserving its externally required check names.

Enhancements:

  • Update the release workflow contract to describe the tests and tests-no-submodule checks as shard-backed gates while preserving the required gate job IDs.
  • Expand the workflow assertions to cover shard jobs, matrices, gate verification, artifact retention, timeouts, and related comments.
  • Clarify the specification and plan to distinguish the four release-gate IDs from the additional shard jobs.

… gates over a matrix of shard jobs and lists what tests/test_tests_workflow.py holds of them, as opensoft/openRepoTools-code#22 leaves tests.yml (opensoft/openRepoTools#77)

opensoft/openRepoTools-code#22 (head f86c2e5c423f) makes the code leg's tests and tests-no-submodule checks gates over a matrix of shard jobs, tests-shard and tests-no-submodule-shard, and keeps all four check names. Its body says that the contract's "Held by tests/test_tests_workflow.py" list describes the workflow before that PR, and that the spec leg needs an amendment. This is that amendment. It is meant to land right after code#22, on Brett Heap's 2026-11-09T21:57:15Z choice "(a) Lane 4, now (Recommended)" (opensoft/openRepoTools#165 comment 6752536766).

specs/006-release-pypi/contracts/workflows.md:
- Jobs: tests and tests-no-submodule no longer "stay byte for byte"; each is a gate over a matrix of shard jobs, and no shard job has one of the release gate's four ids.
- Step 3, the git identity: the tests-shard job sets it now, where the tests job did.
- "Held by tests/test_tests_workflow.py": "The four job ids are present" and "The three existing jobs keep today's ..." become the assertions that test makes at code#22's head: the exact set of six jobs and their `name:` and `if:`; the kept runner, checkout, Python and `run:` commands of guard-launch-mode and of the two shard jobs, with the shard's pytest command; the gates' `needs:`, `if: ${{ always() }}` and last verify step; each matrix as the plan's shard list; the report upload; the 60-minute timeout.

specs/006-release-pypi/plan.md:
- Scale/Scope: the count of CI jobs in tests.yml says that two shard jobs sit behind two of the four.

Left as they are, each a record of what #228 specified or did, or still true by the four check names: spec.md FR-025, FR-029 and FR-046, research.md R9, tasks.md T015 to T017, proposal.md, design.md, the delta specs, data-model.md and the release gate's contract.

Needs its own review.

Lane: openRepoTools-4
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Documentation

Update the workflows contract to describe the shard jobs, their gates, and the assertions held by the workflow test, while clarifying the related comments and package-job identity.

  • specs/006-release-pypi/contracts/workflows.md L36-51, L58, L369-415

Clarify that FR-025’s unchanged-jobs requirement binds the earlier change while the later change shards the two test jobs and preserves their ids.

  • specs/006-release-pypi/spec.md L578-581

Update the plan’s CI job summary to distinguish the four release-gate ids from the two shard jobs behind them.

  • specs/006-release-pypi/plan.md L135-137

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

brettheap and others added 2 commits November 9, 2026 23:16
 does to tests.yml, what a shard gains and whose continue-on-error the Held-by list holds, as opensoft/openRepoTools-code#22 leaves them (spec#18 review fixes)

Lane 3's independent review of 0f16433 (opensoft/openRepoTools#77 comment 6753087793) said READY AFTER FIXES. This commit makes them, on top of 0f16433, and checks each claim against opensoft/openRepoTools-code#22 at its head 05a7b4413f69, the in-place merge of code main 5d6eced into f86c2e5c.

- MUST 1, specs/006-release-pypi/spec.md, FR-025: a note beside "The three existing jobs MUST stay unchanged", which is unchanged, saying that the MUST binds #228's change, that #77 later made tests and tests-no-submodule gates over shard jobs, and that the three keep their ids (FR-046). Lane 3's ruling on 6752928881: a note beside the MUST, not a change to it.
- SHOULD 2, contracts/workflows.md, Jobs: says what #77 does, and drops "did too, until #77", which #296's runs-on change made false. It no longer says guard-launch-mode is byte for byte.
- SHOULD 3, contracts/workflows.md, The header comment: "Every other comment stays as it is" is scoped to #228's change, and says what #77 reworded, extended and added.
- NIT 5: names guard-launch-mode, tests and tests-no-submodule where it said "The three".
- NIT 6: the Held list's first jobs bullet no longer attaches "which are" to tests and tests-no-submodule.
- NIT 7: the gate bullets say that "no continue-on-error" is the job's and the last step's, that the gates' download step has continue-on-error: true, and that the diff review answers for the steps nothing holds.
- NIT 8: the shard job bullet lists what a shard gains: timeout-minutes, strategy, env SHARD on the step that runs the shard, and the report upload.

Left, with the reason in the PR body: NIT 9 (plan.md line 91, research.md line 220, design.md line 432 say the tests job runs the suite or its wheel tests: the tests check still stands for that run, so none is made false), and NIT 11 (a #22 test-file comment, for a #22 follow-up).

Needs lane 3's delta check.

Lane: openRepoTools-4
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
 beside opensoft/openRepoTools#77, say where the tests-no-submodule comment now sits, and the note calls its MUST a requirement (#18 review, round 2)

Lane 3's check of 8a4853c (opensoft/openRepoTools#77 comment 6754292827) said READY AFTER NITs A and C, with B and D optional. This commit takes all four, on top of 8a4853c, and checks the text against opensoft/openRepoTools-code main 39839dc, whose tree b7deb16 is the head 05a7b44 of opensoft/openRepoTools-code#22.

- NIT A: the FR-025 note (specs/006-release-pypi/spec.md) and the Jobs bullet of contracts/workflows.md name opensoft/openRepoTools-code#22, the pull request that sharded the jobs, beside opensoft/openRepoTools#77.
- NIT C: contracts/workflows.md, "The header comment", says that opensoft/openRepoTools#77 extended the comment that sat above tests-no-submodule, now above tests-no-submodule-shard. At code main it is tests.yml lines 225 to 240, above the shard job at 241, and nothing sits above the gate at 287.
- NIT B: the FR-025 note says "this requirement binds", where it said "this MUST binds". It adds no requirement.
- NIT D: this subject writes every number as opensoft/openRepoTools#N, opensoft/openRepoTools-code#N or opensoft/openRepoTools-spec#N. 8a4853c stays as it is.

Needs lane 3's delta check.

Lane: openRepoTools-4
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
brettheap added a commit to opensoft/openRepoTools-code that referenced this pull request Nov 10, 2026
…ls, hash members as they are read, and catch RecursionError in the index checks (opensoft/openRepoTools#352 items 1 to 3) (#23)

This takes items 1 to 3 of opensoft/openRepoTools#352 in the release workflow's wheel and index checks:
- an extra directory entry in the release wheel now fails the inventory check;
- members are hashed as they are read, the total uncompressed size is capped, and a member compressed by any method but stored or deflated is refused before any read;
- a RecursionError from deeply nested index JSON is caught and refused by name, and a Python that decodes the nesting refuses it as not its JSON API's.

Item 4 waits for opensoft/openRepoTools-spec#18. Follow-ups 5 and 6 come in a later pull request.

Lane openRepoTools-3's independent review read READY AFTER FIXES at e7ec834; its one MUST is fixed in 8510181, which passed lane 3's delta check. d23268d and b69a8b1 change tests only. All 14 checks are green at b69a8b1 on main 86d635b. 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.

Lane: openRepoTools-3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brettheap
brettheap marked this pull request as ready for review November 10, 2026 12:29
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026

Copy link
Copy Markdown

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 5 hours by commenting @sourcery-ai review. Upgrade to get a review now.

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