Repository navigation
CI runs the tests as a matrix of shards, keeping the four check names (opensoft/openRepoTools#77) - #22
Conversation
What changes. In .github/workflows/tests.yml, `tests` and `tests-no-submodule` become small gate jobs that wait on matrices of shard jobs: `tests-shard` (pytest-1 to pytest-4, and shell) and `tests-no-submodule-shard` (pytest-1 to pytest-3, and shell). .github/ci/ci_shards.py deals tests/test_*.py to the pytest shards, longest first, by the seed seconds in .github/ci/weights.json; a test file with no weight still runs, so adding one needs no edit. The lane helpers' shell suite is one pytest item of about 27 minutes, so it is its own shard and is deselected from the others. `guard-launch-mode` and `package` are unchanged. tests/test_tests_workflow.py is updated to the new shape and tests/test_ci_shards.py is new. Why. The code leg's checks take 58 to 81 minutes because the suite runs serial in one job per variant (opensoft/openRepoTools#77); lane 5's three-wide runs of it are recorded at opensoft/openRepoTools#77 comment 6373986119. Lane 3 ruled on opensoft/openRepoTools#165 (comment 6723967774) that the four required check names stay and that the same test count must show. The four names. The gates keep the names `tests` and `tests-no-submodule`, carry no `name:`, and run with `if: ${{ always() }}`, so a failed or cancelled shard turns the gate red and never skips it (a skipped job would pass a required check). The shard jobs have other names, which the release gate ignores. The rulesets and release.yml need no change. The count. Each shard keeps the node ids it selected and its JUnit report. The gate collects the whole suite as a serial run does and fails unless every shard exited 0, ran what it chose, no id is in two shards, and the shards' ids equal the full collection, id for id. It prints the line a serial run would print, `N passed, M skipped`. A "Re-run failed jobs" attempt is read by attempt number. Estimate. About 30 minutes (28 to 33) for the slowest check, from 58 to 81 minutes; the shell suite alone is 23 to 32 minutes serial and is the floor. Stage 2 is not included. Cutting the shell suite by section, which would bring it to about 13 to 17 minutes, needs a probe that shows which sections run alone, and is a separate change. The planner refuses more than one shell shard for a suite that cannot be cut. Lane: openRepoTools-4 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
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 6 days and 16 hours by commenting |
Reviewer's GuideImplementationImplement deterministic shard planning, pytest shard execution and reporting, and verification that shard outcomes and node ids match the full suite.
ConfigurationAdd the shard weights that determine how test files are balanced between pytest shards.
Replace the two serial test jobs with shard matrices and always-running gates that retain the existing required check names and verify the shard reports.
TestsAdd offline tests for shard planning and report verification, including missing, duplicate, failed, and mismatched shard results.
Update workflow contract tests to require the shard matrices, gate behavior, report uploads, and shard timeouts.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
The two gate jobs this PR adds, tests and tests-no-submodule, installed pytest==8.3.4 without --only-binary=:all:, so a source distribution's setup script could run. That is SonarCloud's githubactions:S8541 on #22, at tests.yml:209 and :294, which fails the PR's gate on the security rating of new code. They now install it as guard-launch-mode does, wheels only, single-quoted as that line is, so the pinned reader parses it. The shard jobs' install lines stay as they are, since tests/test_tests_workflow.py holds them as the jobs they came from carried them. Lane: openRepoTools-4 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…the summary line counts them verify read each shard's shard.json exit code and its JUnit report, but it never failed on a failed or errored case in the report when shard.json said exit 0. That is what a pytest.exit(returncode=0) after a failure, or a hook that resets exitstatus, leaves behind, and lane 3's mutants M3a to M3c over run 42524268199's reports were not caught. verify now adds a problem naming the shard and both counts whenever its report holds a failure or an error, whatever its shard.json says. The line that says what a serial run would have printed left failures out too: the red gate of run 42524268199 printed "2220 passed, 981 skipped" with one case failed. It now prints "K failed, " before the passed and skipped counts and ", L error" or ", L errors" after them, each only when it is not zero, in pytest's own order and words. The line is unchanged for a run with none. The module docstring now says the helper is for CI only: run starts pytest outside tests/run.sh's lock. This is SHOULD-1 and NIT 4 of lane 3's review of #22 (opensoft/openRepoTools#77 comment 6738998037). tests/test_ci_shards.py holds a failure, an error and a failing shell suite, each beside exit 0, and the line's four spellings. Lane: openRepoTools-4 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…low.py holds it tests-shard and tests-no-submodule-shard had no timeout-minutes, so a hung pytest in one shard held a required check, the gate that waits on its shards, for GitHub's default of 360 minutes. Each now has timeout-minutes: 60. The shards take 10 to 26 minutes. Nothing else gets one: not the four gates, not guard-launch-mode, not package, and release.yml is unchanged. tests/test_tests_workflow.py read each shard job's keys one at a time and pinned none of them to a timeout, so a new test holds both shard jobs at the integer 60, read with the pinned openRepoShape reader as the rest of that file reads the workflow. This is SHOULD-2 and the timeout part of NIT 6 of lane 3's review of #22 (opensoft/openRepoTools#77 comment 6738998037). Lane: openRepoTools-4 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…#22's landing after W2 sets (opensoft/openRepoTools#77 comment 6742017683) Lane: openRepoTools-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
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]>
…o conflict, and it brings 9 first-parent commits, listed below (opensoft/openRepoTools#198) The code leg's main at 39839dc, as the heads table names it. From f0d363a, this branch's merge base with main before this merge, main's first-parent history adds 9 commit(s): - a2073ea #16 (feat/198-a23-slice-1a-routing): Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W... - 183f087, with no PR number in its subject: tests/test_release_workflow.py runs the wheel check's whole step on a rehearsal's branch and on the version's tag, so a TAG taken from the ref's name, or a... - 83e3690, with no PR number in its subject: tests/test_release_workflow.py makes a served-digest read fail with a URLError that has no HTTP status, and another time out, so release.yml's except cannot... - 8400ddc, with no PR number in its subject: tests/test_release_workflow.py runs the ref step on a tag in a checkout that holds four commits and requires it to leave them whole, so a --depth on its... - 9226f7c, with no PR number in its subject: tests/test_release_workflow.py runs the stamp writer and the steps after it through the wheel check, so a step that rewrites the stamp is refused by the... - 1c48ae0, with no PR number in its subject: Both wheel checks hold a payload file to the commit's whole mode, release.yml's checks refuse with a named ::error:: line and not a traceback, and the macOS... - bd86447, with no PR number in its subject: 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,... - 5d6eced, with no PR number in its subject: release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and... - 39839dc #22: CI runs the tests as a matrix of shards, keeping the four check names The merge base of 458cb38 and 39839dc is f0d363a. The tree is `git merge-tree --write-tree 458cb38 39839dc` = 51079c3, computed before the merge was made; the merge is clean, and no hunk was resolved by hand. Relative to this branch's 458cb38, the merge changes 9 file(s), 2482 insertion(s) and 239 deletion(s). It touches none of the 15 file(s) this branch changes against main since f0d363a. This is an added commit on the branch, not a rewrite: 458cb38 stays an ancestor, so the push is a fast-forward. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t brings code main 39839dc, its PRs listed below (opensoft/openRepoTools#198) The in-place merge of slice 1b at 8059db5: slice 1b's head 458cb38 with 39839dc merged into it. With it comes the code leg's main 39839dc; from f0d363a, this branch's merge base with main before this merge, main's first-parent history adds 9 commit(s): - a2073ea #16 (feat/198-a23-slice-1a-routing): Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W... - 183f087, with no PR number in its subject: tests/test_release_workflow.py runs the wheel check's whole step on a rehearsal's branch and on the version's tag, so a TAG taken from the ref's name, or a... - 83e3690, with no PR number in its subject: tests/test_release_workflow.py makes a served-digest read fail with a URLError that has no HTTP status, and another time out, so release.yml's except cannot... - 8400ddc, with no PR number in its subject: tests/test_release_workflow.py runs the ref step on a tag in a checkout that holds four commits and requires it to leave them whole, so a --depth on its... - 9226f7c, with no PR number in its subject: tests/test_release_workflow.py runs the stamp writer and the steps after it through the wheel check, so a step that rewrites the stamp is refused by the... - 1c48ae0, with no PR number in its subject: Both wheel checks hold a payload file to the commit's whole mode, release.yml's checks refuse with a named ::error:: line and not a traceback, and the macOS... - bd86447, with no PR number in its subject: 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,... - 5d6eced, with no PR number in its subject: release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and... - 39839dc #22: CI runs the tests as a matrix of shards, keeping the four check names From slice 1b's branch itself, beyond the merge base 458cb38, it brings 1 first-parent commit(s): - 8059db5 the in-place merge of slice 1b itself (parents 458cb38 and 39839dc) The merge base of ef469e1 and 8059db5 is 458cb38. The tree is `git merge-tree --write-tree ef469e1 8059db5` = dc7ffd5, computed before the merge was made; the merge is clean, and no hunk was resolved by hand. Relative to this branch's ef469e1, the merge changes 9 file(s), 2482 insertion(s) and 239 deletion(s). It touches none of the 16 file(s) this branch changes against main since f0d363a. This is an added commit on the branch, not a rewrite: ef469e1 stays an ancestor, so the push is a fast-forward. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t brings code main 39839dc, its PRs listed below (opensoft/openRepoTools#198) The in-place merge of slice 2a at 9926187: slice 2a's head ef469e1 with 8059db5 merged into it. With it comes the code leg's main 39839dc; from f0d363a, this branch's merge base with main before this merge, main's first-parent history adds 9 commit(s): - a2073ea #16 (feat/198-a23-slice-1a-routing): Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W... - 183f087, with no PR number in its subject: tests/test_release_workflow.py runs the wheel check's whole step on a rehearsal's branch and on the version's tag, so a TAG taken from the ref's name, or a... - 83e3690, with no PR number in its subject: tests/test_release_workflow.py makes a served-digest read fail with a URLError that has no HTTP status, and another time out, so release.yml's except cannot... - 8400ddc, with no PR number in its subject: tests/test_release_workflow.py runs the ref step on a tag in a checkout that holds four commits and requires it to leave them whole, so a --depth on its... - 9226f7c, with no PR number in its subject: tests/test_release_workflow.py runs the stamp writer and the steps after it through the wheel check, so a step that rewrites the stamp is refused by the... - 1c48ae0, with no PR number in its subject: Both wheel checks hold a payload file to the commit's whole mode, release.yml's checks refuse with a named ::error:: line and not a traceback, and the macOS... - bd86447, with no PR number in its subject: 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,... - 5d6eced, with no PR number in its subject: release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and... - 39839dc #22: CI runs the tests as a matrix of shards, keeping the four check names From slice 2a's branch itself, beyond the merge base ef469e1, it brings 1 first-parent commit(s): - 9926187 the in-place merge of slice 2a itself (parents ef469e1 and 8059db5) The merge base of c54b387 and 9926187 is ef469e1. The tree is `git merge-tree --write-tree c54b387 9926187` = 7fc2ab4, computed before the merge was made; the merge is clean, and no hunk was resolved by hand. Relative to this branch's c54b387, the merge changes 9 file(s), 2482 insertion(s) and 239 deletion(s). It touches none of the 28 file(s) this branch changes against main since f0d363a. This branch's head c54b387 is 1 commit(s) ahead of origin's ddc972d; the push takes them and this merge together, as one fast-forward of ddc972d. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… brings code main 39839dc, its PRs listed below (opensoft/openRepoTools#198) The in-place merge of slice 2b at beaa53d: slice 2b's head c54b387 with 9926187 merged into it. With it comes the code leg's main 39839dc; from f0d363a, this branch's merge base with main before this merge, main's first-parent history adds 9 commit(s): - a2073ea #16 (feat/198-a23-slice-1a-routing): Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W... - 183f087, with no PR number in its subject: tests/test_release_workflow.py runs the wheel check's whole step on a rehearsal's branch and on the version's tag, so a TAG taken from the ref's name, or a... - 83e3690, with no PR number in its subject: tests/test_release_workflow.py makes a served-digest read fail with a URLError that has no HTTP status, and another time out, so release.yml's except cannot... - 8400ddc, with no PR number in its subject: tests/test_release_workflow.py runs the ref step on a tag in a checkout that holds four commits and requires it to leave them whole, so a --depth on its... - 9226f7c, with no PR number in its subject: tests/test_release_workflow.py runs the stamp writer and the steps after it through the wheel check, so a step that rewrites the stamp is refused by the... - 1c48ae0, with no PR number in its subject: Both wheel checks hold a payload file to the commit's whole mode, release.yml's checks refuse with a named ::error:: line and not a traceback, and the macOS... - bd86447, with no PR number in its subject: 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,... - 5d6eced, with no PR number in its subject: release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and... - 39839dc #22: CI runs the tests as a matrix of shards, keeping the four check names From slice 2b's branch itself, beyond the merge base ddc972d, it brings 2 first-parent commit(s): - c54b387 tests: the :3778 label says the note names the publish act where the helper's words offer it, as with origin unmoved (lane openRepoTools-3's NIT 1 in... - beaa53d the in-place merge of slice 2b itself (parents c54b387 and 9926187) The merge base of 2c97a92 and beaa53d is ddc972d. The tree is `git merge-tree --write-tree 2c97a92 beaa53d` = 75aa213, computed before the merge was made; the merge is clean, and no hunk was resolved by hand. Relative to this branch's 2c97a92, the merge changes 10 file(s), 2483 insertion(s) and 240 deletion(s). Of the 30 file(s) this branch changes against main since f0d363a, it also touches 1: tests/test_lane_helpers.sh. This is an added commit on the branch, not a rewrite: 2c97a92 stays an ancestor, so the push is a fast-forward. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Opus 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]>
… conflict, and it brings 13 first-parent commits, listed below (opensoft/openRepoTools#198) The code leg's main at 0a168a6, as the heads table names it. From 458cb38, this branch's merge base with main before this merge, main's first-parent history adds 13 commit(s): - a2073ea #16 (feat/198-a23-slice-1a-routing): Every register write goes through its lane's own checkout <W>-lanes/<lane>/, where lane-start and lane-end read the lane's row; a LANES_REPO naming W... - 183f087, with no PR number in its subject: tests/test_release_workflow.py runs the wheel check's whole step on a rehearsal's branch and on the version's tag, so a TAG taken from the ref's name, or a... - 83e3690, with no PR number in its subject: tests/test_release_workflow.py makes a served-digest read fail with a URLError that has no HTTP status, and another time out, so release.yml's except cannot... - 8400ddc, with no PR number in its subject: tests/test_release_workflow.py runs the ref step on a tag in a checkout that holds four commits and requires it to leave them whole, so a --depth on its... - 9226f7c, with no PR number in its subject: tests/test_release_workflow.py runs the stamp writer and the steps after it through the wheel check, so a step that rewrites the stamp is refused by the... - 1c48ae0, with no PR number in its subject: Both wheel checks hold a payload file to the commit's whole mode, release.yml's checks refuse with a named ::error:: line and not a traceback, and the macOS... - bd86447, with no PR number in its subject: 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,... - 5d6eced, with no PR number in its subject: release.yml's RELEASING header says that no job reads more of Brett Heap's acts than the required reviewer and the deployment limit, and... - 39839dc #22: CI runs the tests as a matrix of shards, keeping the four check names - a8f6f01 #17 (feat/198-a23-slice-1b-guard-publish): Amendment 23 slice 1b: every writer fetches and fast-forwards under its lock or refuses with nothing written, pushes with no pull and reads origin back, a... - 92753fe #18 (feat/198-a23-slice-2a-handoff-verbs): Amendment 23 act 2, slice 2a: `write-handoff` writes a lane's handoff in the checkout its writes go through, `handoff-path` says where, `publish-handoff`... - 2bf0050 #20 (feat/198-a23-slice-2b-start-handoff): Amendment 23 act 2, slice 2b: `lane-start` and `lane-handoff` write the Rule 3 stamp and the PAUSED block with one `write-handoff` through the lane's... - 0a168a6 #19 (feat/198-a23-slice-3-skill): Amendment 23 act 2, slice 3: the handoff skill finds its file with `handoff-path` and writes its new top block with ONE `write-handoff --prepend` call, so... The merge base of 4f7c9ff and 0a168a6 is 458cb38. The tree is `git merge-tree --write-tree 4f7c9ff 0a168a6` = e43316a, computed before the merge was made; the merge is clean, and no hunk was resolved by hand. Relative to this branch's 4f7c9ff, the merge changes 28 file(s), 10240 insertion(s) and 1318 deletion(s). It touches none of the 2 file(s) this branch changes against main since 458cb38. This is an added commit on the branch, not a rewrite: 4f7c9ff stays an ancestor, so the push is a fast-forward. Lane: openreposhape-2 (openRepoShape-2) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…/openRepoTools-code#22 leaves it (opensoft/openRepoTools#77) The 006 FR-025 note (specs/006-release-pypi/spec.md), contracts/workflows.md and plan.md describe tests.yml as opensoft/openRepoTools-code#22 (39839dc) leaves it: tests and tests-no-submodule are each a gate over a matrix of shard jobs, and the Held-by list names each assertion (opensoft/openRepoTools#77). It lands at its reviewed head 2ae29e4 by merge commit, with no merge of main in place. Lane openRepoTools-3's review passed it READY at 2ae29e4 (opensoft/openRepoTools#77 comment 6754454817). Landed by merge commit on Brett Heap's word 'Land when ready (Recommended)' (2026-11-10T11:52:49Z; his answer to a dialog in lane openRepoTools-3's session, relayed in opensoft/openRepoTools#165 comment 6766794667). Lane: openRepoTools-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>



Lane: openRepoTools-4
Claim: opensoft/openRepoTools#77 (comment)
What this is
This PR is for opensoft/openRepoTools#77. This leg's
testsandtests-no-submodulechecks take 58 to 81 minutes, because each runs the whole suite serially in one job. Here each becomes a gate job over a matrix of shard jobs, and all four required check names stay.This is stage 1 of lane 4's design (opensoft/openRepoTools#165 comment 6724536105).
What changes
.github/workflows/tests.yml:tests-shardrunspytest-1topytest-4andshell;tests-no-submodule-shardrunspytest-1topytest-3andshell;testsandtests-no-submodulebecome the gates over them..github/ci/ci_shards.py, new: itsplan,run,verifyandidscommands. It is for CI only.tests/test_*.pyto the pytest shards, longest first, by the seed seconds in.github/ci/weights.json. A test file with no weight still runs, so adding one needs no edit..github/ci/weights.json, new.tests/test_ci_shards.py, new, andtests/test_tests_workflow.py, updated to the new shape.guard-launch-mode,package,release.ymland the rulesets.The four names, and the count
The gates keep the names
testsandtests-no-submodule. They carry noname:.They run with
if: ${{ always() }}. A failed or cancelled shard turns its gate red, and a gate is never skipped. A skipped job would pass a required check.Each shard keeps the node ids it chose and its JUnit report, in an artifact named by run attempt.
The gate collects the whole suite as a serial run does. It fails unless:
It then prints the line a serial run would print, such as
N passed, M skipped, with any failed and error counts in pytest's own words. A "Re-run failed jobs" attempt is read by its attempt number.Estimate, and the first run
testsand 649 to 651 s fortests-no-submodule. The shell shard is 1,712 s and 1,506 s.c5f12dc2) took 26 m 37 s, against 80 m 23 s onmain, as lane 3 measured it.tests.tests-no-submodulefailed on its shell shard, attests/test_lane_helpers.sh:16467-16468. Lane 3 traced that to a flake of about 1 in 3,800 runs in that test, not this PR, and fixes it outside this PR.Credit
This rests on lane 5's measurements:
Checks before opening
tests.yml, and onrelease.yml.tests.ymlloads with openRepoShape v1.1.1'srepo_shape.load_yamland lists six jobs.ci_shards.py planandids, for both variants:tests/test_*.pyfiles land in exactly one pytest shard;shell.release.ymlalready uses.test_tests_workflow.py's assertions were checked against the committed workflow by script.verifywas exercised over ten synthetic report sets: pass, skips, a missing shard, a failed shard, a duplicate id, and an id extra to or missing from the full collection.Review
Lane openRepoTools-3 reviewed
c5f12dc2and gave the verdict READY AFTER FIXES (opensoft/openRepoTools#77 comment 6738998037). Three commits carry the fixes:6833d94): the gates install pytest from wheels only, asguard-launch-modedoes. SonarCloud had raised twogithubactions:S8541issues on those lines.cdea3b9):verifyfails when a shard's JUnit report records a failure or an error, even where the shard'sshard.jsonsays exit 0;f86c2e5): both shard jobs carrytimeout-minutes: 60, held bytests/test_tests_workflow.py. That is the timeout part of NIT 6.tests/run.sh, 60 tests, 51 of them from before;6833d94'sverifynow fail it.Not in this PR
tests/test_tests_workflow.py" list,specs/006-release-pypi/contracts/workflows.md:357-372, describes the workflow before this PR. The existing jobs keep today'srun:commands there, and there is no shard job.main.tests/test_lane_helpers_suite.py:5still saystests.ymlrunspython3 -m pytest tests -q.Review and landing
Lane openRepoTools-3 reviews this PR. It lands only on Brett's word. Lanes 2 and 3 recommend that W2 lands first. Which goes first is Brett's question 7.
🤖 Generated with Claude Code
Summary by Sourcery
Parallelize the standard and no-submodule CI test suites with validated matrix shards while retaining their four required check names.
New Features:
Bug Fixes:
Enhancements:
CI:
Tests:
Chores: