Repository navigation
test_0022 runs on a sixth shard until #911's floor lands - #1008
Conversation
On a Xeon 8370C runner, #964's shard 4 serial phase took 55:38, mostly test_0022, and the job hit the 70-minute cap. Development's took 27:50 on an EPYC 7763. test_0022 is deselected from shard 4's band and runs alone on shard 6. --deselect, because pytest collects a file named on the command line even under --ignore. Underworld development team with AI support from Claude Code
Review recordAuthor's checks only. The independent review is the integration session's cross-review, requested now; given the urgency, no separate review agent ran first.
Not checked here: a CI run (pending on this PR), and any other Underworld development team with AI support from Claude Code |
|
Adversarial review of #1008 at 7ede456 Scope: FindingsMedium: the 2x the comment attributes to the CPU was not the CPUThe comment says #985's last Newton step "put shard 4's serial phase at 55:38 on a Xeon 8370C ... against 27:50 on an EPYC 7763". #964's previous run, one commit earlier, ran the same batch on the same CPU model and the same OpenBLAS kernel in half the time:
Medium: shard 6 inherits the whole cost, with about 10 minutes of headroom on the run that motivated itThe PR moves the cost; it does not reduce it, which #985 already says. On the cancelled run the batch's last 46 of 406 results took 51:58 (the Medium: the coverage check cannot see the deselect, and the fix is +7 -2 lines
That is the #721 class the check exists for, and the removal the comment asks for when #911 lands is a two-line edit where removing one line is the natural mistake. We consider it worth closing in this PR. Subtracting a whole-file if re.search(r"\$\{?PYTEST", line) or re.match(r"\s*batch\s+\d+\s", line):
- patterns.update(re.findall(r"tests/[A-Za-z0-9_\[\]*.\-]+", line))
+ # A whole-file --deselect (node id relative to tests/, the rootdir) takes
+ # that file back out of THIS line's globs.
+ dropped = frozenset(re.findall(r"--deselect[= ]([^\s:\"']+)(?=\s|$)", line))
+ for pattern in re.findall(r"tests/[A-Za-z0-9_\[\]*.\-]+", line):
+ patterns.add((pattern, dropped))
return patterns
...
- for pattern in globs_run_by(REPO / "scripts" / "test.sh"):
- covered.update(glob.glob(str(REPO / pattern)))
+ for pattern, dropped in globs_run_by(REPO / "scripts" / "test.sh"):
+ gone = {str(REPO / "tests" / d) for d in dropped}
+ covered.update(set(glob.glob(str(REPO / pattern))) - gone)Measured with the patched check: the PR tree gives Low: the header still says test_0022 stays on shard 4
Low: "serial phase" is the first batchBoth times in the comment are pytest's own total for the Low: "test_0022" names three files
Checked and clean
This PR's CI run (42436740990), as of 02:32 UTCShards 3/6, 4/6 and 6/6 had finished; 1/6, 2/6 and 5/6 were still running, so we have no verdict for them. On the same CPU and kernel, development's run 15f13d0 took 13:30 for the batch with test_0022 in it. Here it takes 4:42 without the file plus 11:29 for the file alone, which matches. Shard 4/6 logs Issues
Underworld development team with AI support from Claude Code |
… name the file and stop attributing the 55:38 to the CPU From the review of #1008. Deleting only the batch 6 line used to leave the check green with test_0022_rotated_adjoint.py unrun; it now reports the file. Underworld development team with AI support from Claude Code
|
The review is addressed at the new head.
Underworld development team with AI support from Claude Code |
Underworld development team with AI support from Claude Code
|
#964's r5 commit is ruled out as the cause of the 26:37 against 55:38 spread. The integration session ran
Both arms: 7 passed, in 758.5 s and 758.7 s. So the spread on the Xeon comes from the runner or its load, not from #964. The comment's "not established" stands; this note records what was excluded. No code change, so CI on fb0f7ef is not restarted. Underworld development team with AI support from Claude Code |
|
First six-shard run, 42436740990 at 7ede456 (the change itself; later heads touch only comments and the coverage check), all green:
Shard 6 reports Underworld development team with AI support from Claude Code |
…e#1008) into feature/convergence-reference-policy Underworld development team with AI support from Claude Code
test_0022runs alone on a sixth shard, so a slow runner no longer pushes shard 4 past the job's 70-minute cap. This holds until #911's linear floor lands, which should bring it back.What was wrong
On a Xeon 8370C runner, #964's shard 4
test_00[0-4]*batch took 55:38 at 01a82dc, mostlytest_0022_rotated_adjoint.py, and the job was cancelled at the 70-minute cap. At the commit before, d7548b3, on the same CPU and kernel, it took 26:37; development's took 27:50 on an EPYC 7763. Why it varies this much is not established: #985 shows the BLAS kernel matters, and the integration session is measuring whether #964's r5 commit does. Either way, one file can push shard 4 over the cap, so it gets a shard of its own until #911.The fix
batch 4 tests/test_00[0-4]*py --deselect=test_0022_rotated_adjoint.pybatch 6 tests/test_0022_rotated_adjoint.py--print-shardsgives[1,2,3,4,5,6], so CI grows a sixth job. The comment names #911 and says what to remove when it merges.It is
--deselect, not--ignore. The glob names the file on the command line, and pytest collects a named file even under--ignore: with--ignore=tests/test_0022_rotated_adjoint.py, all 7 of its tests were still collected. The node id is relative totests/, the rootdir thattests/pytest.inisets.Tests
-m "not tier_c": batch 4 has 399 of 406 (7 deselected, alltest_0022_rotated_adjoint.py), and batch 6 has 7.check_test_coverage.py: OK, 399 files reachable.check_test_coverage.pynow honours a whole-file--deselecton the line that carries it, a fix from the review. Deleting only thebatch 6line now fails the check, namingtests/test_0022_rotated_adjoint.py; before, it stayed green.--setup-plan -n 2, from the review), batch 4 has 399 items and batch 6 has 7. Collect-only proves nothing under xdist, which turns itself off then.Refs #911, #985, #964
Underworld development team with AI support from Claude Code