Repository navigation
CI gets a fifth shard: test_108*/test_109* leave shard 3 - #997
Conversation
On development 37aa2a1 shards 3 and 4 ran at 56:28 and 55:40 of the 60-minute cap. Shard 3's test_108*/test_109* batch was 25:47 of that; it moves to shard 5, which --print-shards adds to the CI matrix. Shard 4's test_0022 stays until #911's fix (#985). Underworld development team with AI support from Claude Code
… caveat, from review Underworld development team with AI support from Claude Code
Adversarial review recordIndependent review at daeef09; its wording fixes are applied at 3f10dc0 (usage example, budget wording, the cold-cache caveat, "running it four times"). Mergeable. We found no defects that block it. The change moves exactly 12 files from shard 3 to shard 5. Nothing goes unrun, nothing runs twice, and the tier filter is unchanged. Each header number we could check matches run 42412307017. All remaining findings are low or nits. FindingsLow: the shard-5 estimate assumes a warm disk cache that shard 5 won't have.
Low: the slowest shard is unchanged.
Nit: the header says "the 60-minute cap", but the job cap is 70. The 60 is the budget the workflow comment gives ( Nit: Nit: some comments still describe four shards.
Attacks that failed
Merge conditions
Not checked
Underworld development team with AI support from Claude Code |
Adversarial review of #997 at 3f10dc0We checked the change independently first, then the review record already on the PR. This record adds only what that one misses or gets wrong. We read the branch and also Must fixNone. Should fix1. Low. The header's shard times come from one run, and that run spread the shards over runner CPUs that differ by about 2x. The CPU is not recorded. Every number in the new header comes from run 42412307017. In that run shard 3 ran on an Intel Xeon 8370C and shard 4 on an AMD EPYC 7763. Run 42412968302 is development at f31edcb, this PR's own merge base. It started eight minutes later and ran the same batches on faster AMD hosts. Every batch took about half as long:
Evidence: What goes wrong: the header's merge condition says to "re-measure both on the first five-shard run". If shard 3 of that run lands on a 9V45, it reports about 17 minutes. That would read as the move saving 39 minutes and as confirming the 31-minute estimate, when it confirms neither. The opposite also happens: a shard 5 on an 8370C can look like a cold-cache penalty when it is the host. The variance by CPU (2x, and 3.3x for test_00[0-4]*, the #985 kernel class) is larger than the effect being measured. The same table bears on the premise. On the base run, shard 3 was at 30:08, nowhere near the cap, and the long pole was shard 1 at 43:58. So this change relieves shard 3 when it lands on a slow host. That is still worth doing, and the subtraction is right for the slow host (56:28 - 25:47 = 30:41). Fix: put the CPU next to every quoted time (for example "56:28 on a Xeon 8370C"). In the merge condition, compare times on the same CPU, or across several runs. 2. Low. On the merge result, the comment this PR rewrote is contradicted by the block that follows it. The review record's "no ptest phase" check was run on the branch only. #958 merged into development at 21:42. It adds an mpirun phase for the named Evidence: with fake Shard 2's log already prints both lines on run 42412949155 (lines 1610 and 1880). The header's "shard 2 at 33:11" also predates that phase. It took 1:41 on that run (21:14:30 to 21:16:12, EPYC 9V74). Fix: merge development into the branch. Make lines 402-405 say that shard 4 owns the Notes1. Nit. 2. Nit. The workflow's own comments still count four shards. 3. The only cache shard 5 loses is the JIT cache. Meshes are not reused. The record says the batch "may have reused their cached kernels and meshes". 4. Cross-file assumptions: we found none. This is the question the author asked about. What we checked:
5. Coverage on the merge result as well as the branch. With the fake 6. Outside this diff, on development (#958): shard 2 prints "Parallel tests belong to shard 4; this is shard 2." right after its own three mpirun batches ( 7. The batch's internal tail is unknown. The log shows xdist dots only, so it has no per-file durations. With 8. Next to the cap, not in this diff: on run 42412307017 the tier C job ran 83:04 (20:42:07 to 22:05:11) against its 9. CI on 3f10dc0 (run 42419419706): Issue verdicts
Not checked
Underworld development team with AI support from Claude Code |
…'s (cross-review) Underworld development team with AI support from Claude Code
|
Both cross-review Lows are addressed at 1227d1c.
Underworld development team with AI support from Claude Code |
|
First five-shard run, 42419419706 at 3f10dc0, all green:
Shard 5's batch reports 38 passed in 20:13 on a 9V74. Shard 3 on a 9V74 ran 41:34 to 51:59 before this change, so it fell by roughly 20 to 30 minutes. Shard 4 on a 7763 is unchanged at 55:00, as expected until #911. A slow-runner (7763) time for shards 3 and 5 is still to come from a later run. Underworld development team with AI support from Claude Code |
CI gets a fifth shard, which takes shard 3's longest batch off the 60-minute budget. Shard 4 stays where it is until #911's fix.
What was wrong
On development 37aa2a1, run 42412307017, shards 3 and 4 ran 56:28 and 55:40 against the 60-minute budget (hard limit 70); shards 1 and 2 ran 43:11 and 33:11. Shard 3's
test_108*/test_109*batch took 25:47 of that. Shard 4'stest_00[0-4]*took 27:29, which #985 and #911 put nearly all ontest_0022.The fix
That batch becomes
batch 5, and--print-shardsgives[1,2,3,4,5], so the CI matrix grows a fifth job. By subtraction, shard 3 falls to about 31 minutes and shard 5 runs about 31 with install and build. Shard 5 starts with a cold JIT and mesh cache that the batch shared on shard 3, so this is an estimate to re-measure on this PR's run.test_0022is held for #911, as the hub asked; the PR wall-clock stays near 56 minutes until then.Tests
batch Nglob expanded at both commits maps 404 paths, each to exactly one shard. The only change is 12 files from shard 3 to 5:test_1080to1085,1087,1091,1092,1094,1096and1098. The tier filter is unchanged.check_test_coverage.py: OK, 394 files reachable. It runs on every shard, including 5.--shard 4/4is now refused for the mismatch, as designed.To check on this PR's first run: five shard jobs, shard 5 reporting 38 passed for its batch, and the shard 3 and 5 times against the estimates.
Refs #985, #911
Underworld development team with AI support from Claude Code