Skip to content

Run the shell test suite in parallel - #15302

Merged
dhh merged 4 commits into
quattrofrom
feat/parallel-shell-tests
Oct 14, 2026
Merged

dhh merged 4 commits into
quattrofrom
feat/parallel-shell-tests

Conversation

@dhh

@dhh dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

./test/shell ran 397 files one after another (~7 min). Now:

  • Files that do not need exclusive resources run through an xargs -0 -P 32 pool, each buffering output to its own file.
  • Files calling require_compositor, timing-sensitive files (*budget*, sleep-lock), and files with an # omarchy:exclusive marker run one at a time after the pool. The budget guards calibrate process_speed_percent against machine speed, which a busy pool distorts (730ms vs 540ms standalone in review), so they must not share the machine.
  • Output prints whole, in the original order, so the log reads as before; skipped/failed summaries unchanged. No coverage change.

Verification

  • Full run on this 32-core machine: 3m19s wall for 397 files, log format identical (==> … sections in order, same summaries).
  • 8 failures in that run (incl. runtime-smoke bar-put) all reproduce serially on unmodified quattro — pre-existing/environment, not pool interference. runtime-smoke is fixed by Fix runtime-smoke bar put by putting a widget the default bar lacks #15297.
  • Codex review (3 passes): NUL-delimited paths for checkouts with spaces, timing-sensitive exclusions; final pass clean.

From plans/overnight-quality.md §4 (parallel runner first; removal/speedup batches deliberately not bundled).

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previous timing concern is fixed.

Summary

The PR runs shell tests in parallel, saves each file’s output, and prints results in the original order.

  • Shell tests run in parallel while their results stay in order.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Collect test files] --> B{Needs exclusive access?}
  B -->|No| C[Run in parallel]
  B -->|Yes| D[Queue exclusive tests]
  C --> E[Wait for pool to finish]
  D --> F[Run exclusive tests one at a time]
  E --> F
  F --> G[Print saved output in original order]
  G --> H[Report failures and skipped checks]
Loading

Reviews (2) · Last reviewed commit: "Keep two more deadline-bound tests out o..." · Reviewed by Greptile

Comment thread test/shell Resolved
@dhh

dhh commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Greptile P2 addressed: sleep-monitor-test.sh and hyprland-window-close-all-test.sh are now in the exclusive list alongside the budget guards and sleep-lock.

dhh added 4 commits October 14, 2026 03:22
397 files one after another took about 7 minutes. Files that do not
need the live compositor now run through an xargs job pool sized to
nproc, each buffering its output to its own file; files that call
require_compositor (or carry an omarchy:exclusive marker) run one at
a time afterwards. Output is then printed whole, in the original
order, so the log reads as it did, and the skipped/failed summaries
are unchanged.
The budget guards calibrate process speed against the machine; a busy
pool inflates their thresholds (730ms vs 540ms standalone in review),
and sleep-lock's unscaled timings can false-fail under load.
Greptile: sleep-monitor checks a fixed two-second limit and
hyprland-window-close-all gives real commands one second; both can
miss their deadlines because the pool is busy, not because the code
is wrong.
@dhh
dhh force-pushed the feat/parallel-shell-tests branch from c3099b9 to 66c28d6 Compare October 14, 2026 01:24
@dhh
dhh merged commit f0ef162 into quattro Oct 14, 2026
@dhh
dhh deleted the feat/parallel-shell-tests branch October 14, 2026 06:03
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
namespaceMarcello added a commit to namespaceMarcello/omarchy that referenced this pull request Nov 13, 2026
The scan checked that each mapping test mentions user_namespace_available, not that the probe runs before the mapping. The test header, the base-test.sh comment and the testing.md bullet still described ./test/shell as piping each file through tee; it writes each file's output to its own log since omacom#15302, so they now say what a reader waiting on a pipe does.
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.

2 participants