Repository navigation
test.sh: one batch line per decade from test_111*, so new tests stop colliding (shard map unchanged) - #1114
Conversation
…op colliding here Every PR that adds a test_11NN file appended its own `batch 4 tests/test_11NN*py` line next to the last one, and the block became the merge conflict in every PR (seven merges held up on 2026-11-12). Tests below 1100 never collided, because range globs cover them. - The 25 single-file lines become one line per decade: test_111* to test_117*, plus test_118* and test_119* ahead of the PRs that bring them. A new test in an existing decade needs no edit here. - The three files that run on shard 3 (test_1131, test_1141, test_1142) keep their own lines, and are taken out of their decade's line with a whole-file --deselect, the idiom test_0022 already uses. - batch() skips a line whose patterns match no file (no nullglob, so an empty decade arrives as its own pattern), rather than handing pytest a path that does not exist. - The per-line comments go; each test's docstring says the same. The shard assignment is unchanged file by file: every batch line expanded, deselects applied, 451 files, before and after identical. check_test_coverage passes unchanged (437 files), --print-shards is still [1..6], and a new test_1181 file lands on shard 4 with no edit. The parallel pass is untouched. Underworld development team with AI support from Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The conflict was development's new test_1154 line in the old layout; the test_115* decade covers it. The new parallel line for test_1101 merged as it was. The shard map (development's test.sh against this one, on the merged tree) is identical over 453 files, and check_test_coverage passes (438 files). Underworld development team with AI support from Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #1114 (H3, second review desk)Verdict: READY at 7f7a675, merged on green CI (4 of 6 jobs green, 2 running when checked). A What we checked
Not checkedThe wall-clock claim (shard 4 from 1835 s to 1305 s). It follows from fewer pytest start-ups, but we didn't time it. Underworld development team with AI support from Claude Code |
PR #1114 review: scripts/test.sh, one batch line per decadeREADY at 7f7a675. It merges cleanly onto current development 264400a ( Method:
1. The shard map is identical. Every one of the 456 files is in the same shard under development's script and under the merged one (0 differences). I checked the
So the three shard-3 files leave shard 4's decades and run once, in shard 3. 2. New files are picked up without an edit. I added 3. A deselected file cannot go dark.
4. The parallel phase is untouched. No changed line mentions mpirun, PARALLEL, ptest, tests/parallel or shard_owns. Everything from Not run: the batches themselves. That is CI's job, and H4 reports the wall-clock times. Underworld development team with AI support from Claude Code |
…alls One conflict, in scripts/test.sh: development's side is taken (#1114, one line per decade), so the batch line for tests 1181 to 1185 is gone and the test_118* decade covers them. Underworld development team with AI support from Claude Code
One conflict, in scripts/test.sh: #1114 replaced the per-file batch lines with one line per decade. Development's side is taken, so the batch line for tests 1184 and 1185 is gone (the test_118* decade covers them); the np 4 line for test_1184 in the parallel phase is kept. Underworld development team with AI support from Claude Code
scripts/test.shonly. This stops the 11xx block being the merge conflict in every PR that adds a test.Why. Every PR that added a
test_11NNfile appended its ownbatch 4 tests/test_11NN*py # commentline next to the last one, so the block conflicted in nearly every merge: seven merges were held up on 2026-11-12. Tests below 1100 never collide, because range globs (batch 4 tests/test_01*py) cover them.Change.
tests/test_111*pytotests/test_117*py.test_118*andtest_119*are added now, ahead of the open PRs that bring test_1181–1186. A new test in an existing decade needs no edit to the script.test_1131,test_1141,test_1142) keep their own lines. They are taken out of their decade's line with a whole-file--deselect, the idiomtest_0022already uses.batch()now skips a line whose patterns match no file. The script has nonullglob, so an empty decade reaches pytest as its own literal pattern, and pytest would fail on a path that doesn't exist.Checks.
python3 scripts/check_test_coverage.pypasses, unchanged: all 437 test files are reachable.batchline's globs from the repo root and removed its whole-file--deselects, before and after. The two maps are identical: 451 files, none in more than one shard.--print-shardsis still[1,2,3,4,5,6].tests/test_1181_*.pylands on shard 4 with no edit.WORKERS=4as in CI,./scripts/test.sh --shard N/6):Shards 1, 2, 5 and 6 have byte-identical
batchlines, so they can't change. A decade's files now share one pytest process, as the tests below 1100 already do; on shard 4 that removes about 20 pytest start-ups.For the other sessions. Once this lands, each open PR loses its own test.sh line at its next merge of development. That gives one last conflict each, resolved by taking development's side.
Checklist (UW3 Style Charter — docs/developer/UW3_STYLE_CHARTER.md)
level_*andtier_*markers (S8): not applicable (a script change). The checks above are the evidence.maybe_/try_/do_) and no commented-out code (S3, S4).array/mesh.X.coords— nowith ....access(...), nomesh.data(S7)pixi.toml/pixi.lockor other dependency changes riding in an unrelated PRUnderworld development team with AI support from Claude Code
🤖 Generated with Claude Code