Skip to content

Run the opt-in --full-parallel pass at np 3 as well as np 4 - #1092

Merged
lmoresi merged 1 commit into
developmentfrom
ci/full-parallel-np3
Nov 12, 2026
Merged

lmoresi merged 1 commit into
developmentfrom
ci/full-parallel-np3

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member

What changed and why

scripts/test.sh --full-parallel now runs the parallel test_* and ptest_* files at np 3 as well as np 4. Each extra pass is skipped when it equals --p.

Why: np 2 and np 4 split the usual test meshes evenly and symmetrically, and an odd count doesn't. #1087 (submesh prolongate) passes at np 2 and np 4 and fails at np 3 and np 5, so CI never saw it.

The two ptest_* files that #956 already keeps away from np 4 fail at np 3 too. They're now listed as np 2 only (PTEST_NP2_ONLY, renamed from PTEST_NOT_AT_4), so the new pass doesn't add known #956 failures.

The default CI run is unchanged. --full-parallel stays opt-in; the workflow doesn't pass it.

Cost (measured on hyperion, development dd92c70, a shared 48-core machine at load 13–19)

pass wall-clock result
--parallel-only --p 2 (the existing CI pass) 30 min 08 s all pass
--parallel-only --p 3 (what this adds) 31 min 07 s 8 failures, listed below

So the np 3 pass costs about as much as the np 2 pass, roughly +31 min here. On a 2-core CI runner np 3 is oversubscribed (MPICH allows it) and will take longer. Like the np 4 pass, it belongs in a nightly or a separate job (#573).

Failures at np 3 (none xfailed; for routing)

  • tests/parallel/test_0770_submesh_extract_mpi.py::test_prolongate_parallel and ::test_copy_into_parallel: Mesh.prolongate from a submesh loses values at parent DOFs owned by a rank outside the region (fails at np 3) #1087, with a fix on bugfix/submesh-np3.
  • tests/parallel/ptest_0864_seam_ligament_parallel.py (2 tests) and tests/parallel/ptest_0865_seam_split_parallel.py (2 tests): the Fault pins ptest_0863, 0864, 0865 fail at np 4, back to at least 2026-10-29 #956 files. They fail at np 3 as at np 4 ("the seam crossings do not pair up on this rank", "Main was not split on any rank"). This PR keeps them at np 2 only.
  • tests/parallel/ptest_0844_reconnect_parallel.py::test_adapt_with_repair_runs_in_parallel: "a parent-cell map survived a repair pass; a flipped cell spans two coarse cells and the transfer would read the wrong parent", on every rank. Not filed; for routing.
  • tests/parallel/test_1114_mg_coarse_gamg_parallel.py::test_gamg_on_the_coarse_level_when_asked_for[rotated]: 10 pressure iterations against the test's cap of 9; the velocity cap of 4 is met. A partition-dependent iteration count. Not filed; for routing.

Not changed: scripts/test_levels.sh has its own --full-parallel (np 4, with a #611 deselect). This PR leaves it alone.

Checklist (UW3 Style Charter)

  • I have read the Style Charter and followed it over the surrounding code (S2)
  • No drive-by refactors, renames, or "while I was here" cleanups (S9). The one rename, PTEST_NOT_AT_4 to PTEST_NP2_ONLY, states what the list now means.
  • Bug fixes ship the regression test (S8): n/a, a CI script change
  • No hedging names and no commented-out code (S3, S4)
  • Every exception swallow states its sanctioned failure mode in a comment (S4): n/a
  • New data access uses .array / mesh.X.coords (S7): n/a
  • Parallel safety considered (S11): this is the point
  • No pixi.toml / pixi.lock or other dependency changes
  • AI-assisted work carries the attribution line below

Underworld development team with AI support from Claude Code

np 2 and np 4 split the usual test meshes evenly and symmetrically; an odd
count does not. #1087 passed at np 2 and 4 and failed at np 3 and 5, so
the opt-in pass now runs both test_* and ptest_* at 3 and 4 ranks (each
skipped when it equals --p). The two ptest files #956 keeps away from np 4
fail at np 3 as well, so they now run at np 2 only. The default CI run is
unchanged: --full-parallel stays opt-in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 04:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@lmoresi
lmoresi merged commit d0eec9f into development Nov 12, 2026
10 checks passed
lmoresi pushed a commit that referenced this pull request Nov 12, 2026
One conflict, in scripts/test.sh: #1092 rewrote the parallel pass to add an
np 3 pass. That pass is opt-in (--full-parallel) and CI runs
'test.sh --p 2' without it, so the dedicated np 3 line for
test_1084_rotated_datum_collectives is kept, placed before #1092's block,
which is taken unchanged.

Underworld development team with AI support from Claude Code
@lmoresi

lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Adversarial review of #1092 (H3, second review desk)

Verdict: READY at 2c67ca7. A CI script change. The default run is unchanged, and the np 3 pass costs what the PR says.

Checked against development f8c60140, using the PR's scripts/test.sh on a copy of development's tests. Logs are in runs/2026-11-12-h3review/1092/logs/.

Findings

None blocking.

  1. Low. The PR's failure list predates two merges. --parallel-only --p 3 on f8c6014 has the PR's four non-Fault pins ptest_0863, 0864, 0865 fail at np 4, back to at least 2026-10-29 #956 failures:

    It also has a fifth: test_1152_fac_zone_survives_a_mover_parallel::test_a_kept_zone_patch_matches_a_fresh_registration[zone]. That one is already known; it is the failure W1's test_1152: a failed assertion says how the solves ended and what the move left #1096 records.

Attacks that failed

  • Wall-clock: --parallel-only --p 3 took 1799 s (30 min) on hyperion at load 26–34. The PR says 31 min 07 s.

  • Hidden failures: ptest_0864_seam_ligament and ptest_0865_seam_split, moved to np 2 only, do fail at np 3 on development: 4 failed and 2 passed per rank, with "Main was not split on any rank" and "the seam crossings do not pair up". So the move hides no passing test.

  • Default CI: no workflow file passes --full-parallel.

  • Rank-equality logic, by reading:

    • --p 2 --full-parallel runs np 3 and np 4;
    • --p 3 runs np 4;
    • --p 4 runs np 3.

    The np-2-only list runs only when --p 2. One behaviour change: with --p 1, or with np above 4, the two Fault pins ptest_0863, 0864, 0865 fail at np 4, back to at least 2026-10-29 #956 files no longer run in the main pass. Before, they ran at any rank count except 4.

  • CI at 2c67ca7: green.

Issues

None in this territory changes state. #956 stays live (the two seam files fail at np 3 too).

Not tested

The cost on a 2-core GitHub runner at np 3, where the run is oversubscribed. scripts/test_levels.sh's own --full-parallel, which this PR leaves alone.

Underworld development team with AI support from Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants