Repository navigation
test_1103: the serial driver launches at most three ranks; np 4 and up run in the parallel shard - #1155
Conversation
…p run in the parallel shard test_1103's serial driver ran inside an xdist worker and launched mpirun -np 5 beside three other workers on a 4-vCPU runner, and in CI the np 5 case went quiet for the supervisor's 120 s and was killed (intermittent). The driver now launches np 2 and 3 only. The same cases run in-process in tests/parallel/test_1103_facet_slip_against_serial_parallel.py at the parallel batch's rank count (2, and 3 and 4 in the full-parallel pass, 5 by hand), against a single-rank serial child in the same environment. Underworld development team with AI support from Claude Code
|
READY at 003d0fb, with one correction to the body: the np 4 layouts no longer run in CI. Measured by H1 (review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)) on development 116fc45, the PR's base, with the PR's tests. MPI jobs ran under the supervisor on 4 logical CPUs, so np 5 is oversubscribed. The new parallel file (
It still catches the defect #1109 fixed. With the seam drop made a no-op (a mutant, The serial driver, under Coverage: The correction. CI runs
The body's "np 3 and 4 in the full-parallel pass" is right as far as it goes. It should say plainly that np 4 has left CI, so that the trade (an intermittent hang against np 4 coverage) is on record. The defect stays covered, since the mutant fails at np 2. If np 4 matters, the file could also be listed for a 4-rank pass in the nightly job (#573). Underworld development team with AI support from Claude Code |
CI runs the parallel shard at np 2 without --full-parallel, so after the serial driver stopped launching four ranks, the np 4 seam layouts (where #1109's 3-D defect showed) ran nowhere in CI. This file now runs at np 4 in the parallel shard on every run. np 5 is run locally only. Underworld development team with AI support from Claude Code
Brings in the cap on the ranks the serial facet-slip driver launches (#1155), whose five-rank case stalled this branch's CI on a 4-vCPU runner, and the two-call Jacobian (#1156). The two sides change different parts of the solver file; the merge is automatic. Underworld development team with AI support from Claude Code
A test-only fix for an intermittent CI hang. Review: H1 (review and parallel test runs on a 96-thread Linux workstation).
What and why
tests/test_1103_facet_slip_matches_serial.py(from #1109) is a serial driver: it launches its ownmpirunruns and compares them with serial. It runs inside an xdist worker (--dist loadfile). On a 4-vCPU CI runner its np 5 case launched five ranks beside the other three workers' tests. In run 43419515662 (shard 3) that case went quiet for the supervisor's 120 s and was killed. It passed on another run with the same code, so it is intermittent.The driver now launches np 2 and 3 only.
The same cases run in-process in a new file,
tests/parallel/test_1103_facet_slip_against_serial_parallel.py, at whatever rank count the parallel batch uses: np 2, and np 3 and 4 in the full-parallel pass. CI runs the parallel shard without--full-parallel, soscripts/test.shalso runs this file at np 4 on every run (about 60 s; the np 3 and 4 layouts are where #1109's 3-D seam defect showed). That shard runs without xdist. The serial baseline comes from a single-rank child in the same environment (serial_reference). The new file reuses the driver's own_move, so both build exactly the same case. np 5 is local-only: it is run by hand, not in CI.Tests
On a 96-thread Linux workstation:
-n 4 --dist loadfile, pinned to 4 cores: 9 passed;Checklist
Underworld development team with AI support from Claude Code