Skip to content

Speed up test suite and run compositor tests headlessly - #19904

Merged
dhh merged 4 commits into
quattrofrom
speed-up-test-suite
Nov 23, 2026
Merged

dhh merged 4 commits into
quattrofrom
speed-up-test-suite

Conversation

@dhh

@dhh dhh commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Cuts ./test/all runtime and runs compositor/Quickshell tests without taking over the active desktop:

  1. Remove non-essential and old migration tests (438 → 252 shell test files)

    • Removed tests for old one-off migrations (cups-down-migration, mise-agent-shims-migration, realtime-repair, plus legacy migration blocks in notifications-test.sh and passwordless-grant-lifecycle-test.sh).
    • Pruned per-model hardware quirk/install tests, optional third-party app installer/integration tests, redundant per-provider agent-usage-* suites (keeping agent-usage-shared, agent-usage-partition, agent-usage-accounts, agent-usage-update, and agent-usage-grok as the contract reference), and minor cosmetic/lint/duplicate split tests along with their exclusive fixtures.
  2. Speed up ./test/cli and remaining shell tests

    • test/cli (17.6s → 7.2s): cache omarchy commands --json / --all --json to temp files, parallelize group --help checks, replace the per-file bash/awk/grep metadata loop with one Python pass, and take 3 timing samples instead of 5.
    • test/shell: largest-first (LPT) scheduling in xargs pools and parallel execution for non-exclusive compositor fixtures when running under the headless nested compositor (serial on live CI VM llvmpipe).
    • luks-rekey-journal-test.sh (70s → ~22s) and drive-password-test.sh (48s → ~15s): reuse pre-formatted LUKS2/LUKS1 template volumes (cp --reflink=auto), keep full crash/resume matrices on the fake backend (x86 + apple), and verify uninterrupted + targeted real cryptsetup crash/resume paths.
    • agent-account-test.sh (51s → ~13s): clean up child sleep 30 in fake codex --hold and replace fixed sleep 1 waits with polling / shorter intervals.
    • tst_dropdown.qml (24s → ~2s): targeted border/count/rowHeight cases instead of a 54-case Cartesian product.
    • ssh-reconnect-test.sh: parallelize the 5 independent PTY cases with synchronized Ctrl-C and worker PID cleanup.
    • Budget guards (menu-guard, bar-startup, menu-open, panel-open, lock-appear), plymouth-set, privileged-heredoc, sleep-lock, runtime-smoke, bar-drag, and shell-idle-spawn: early-exit once fixed budgets pass, single-pass heredoc scanning, and tighter wait loops without weakening assertions.
  3. Headless nested Hyprland compositor (test/headless + test/shell)

    • When ./test/shell runs inside a live Hyprland session, it starts a private nested Hyprland silently on special:omarchy-test, creates a 1920x1080 HEADLESS-1 output, and removes host-backed WAYLAND-* outputs so zero windows appear on or steal focus from the user's active desktop while retaining GPU-accelerated OpenGL rendering and wlr-layer-shell isolation.
    • Fails closed with diagnostics if the headless compositor cannot start on a live desktop (pass OMARCHY_TEST_USE_LIVE_COMPOSITOR=1 to target the live compositor directly, as test/ci-vm does inside the disposable CI VM).
    • Standalone wrapper ./test/headless bash test/shell.d/<area>-test.sh documented in docs/testing.md.

Verification

  • ./test/all runs in ~89s with all 252 shell tests + test/cli passing, zero compositor skips, zero leftover special:omarchy-test clients, and zero leftover /tmp/oh.* directories.
  • Verified test-runner-test.sh, luks-rekey-journal-test.sh, ./test/headless bash test/shell.d/bar-drag-test.sh, and rebased agent-account-test.sh + agent-usage-accounts-test.sh.
  • Reviewed with Codex; restored 6 high-value security/recovery/contract tests and hardened fail-closed headless verification, crash-marker assertions, and process cleanup.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; both earlier findings are fixed and no new blocking issue was found.

Summary

Speeds up the test suite and moves compositor tests onto a private headless Hyprland session.

  • Compositor tests can run in a private Hyprland session.
  • Shell tests start the longest parallel jobs first.
  • CLI tests reuse command data and check help in parallel.
  • Shell tests reuse setup and wait less between checks.
  • The shell suite no longer includes many older, duplicate, hardware-specific, and optional-app checks.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[test/shell] --> C[Shared headless_start]
  B[test/headless] --> C
  C --> D{Isolation needed?}
  D -->|No| E[Run with inherited environment]
  D -->|Yes| F[Probe host up to three times]
  F -->|Fails| G[Exit with diagnostics]
  F -->|Answers| H[Start private Hyprland]
  H --> I[Create HEADLESS-1 and remove host-backed outputs]
  I --> J[Check outputs before running tests]
  J --> K[Stop private Hyprland and remove temporary files]
Loading

Reviews (2) · Last reviewed commit: "Deduplicate headless compositor setup an..." · Reviewed by Greptile

Comment thread test/headless Resolved
Comment thread test/shell Resolved
@omarchybot omarchybot added the enhancement New feature or request label Nov 23, 2026
@dhh
dhh merged commit 0fae8e6 into quattro Nov 23, 2026
2 checks passed
@dhh
dhh deleted the speed-up-test-suite branch November 23, 2026 12:19
VictorSTM added a commit to VictorSTM/omarchy that referenced this pull request Nov 23, 2026
quattro removed test/shell.d/kitty-config-test.sh in omacom#19904 and moved the
font set sandbox into test/cli, which has no skip helper. The fc-match
regression now lives in test/shell.d/font-set-test.sh with its own sandbox.

Verified: checks
Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to chessing234/omarchy that referenced this pull request Nov 24, 2026
Quattro removed voxtype-install-test.sh in omacom#19904. Keep that upstream deletion when resolving its modify/delete conflict, retaining the sudo and warning change in the installer. The installer is checked against the packaged Voxtype on a disposable worker.

Co-Authored-By: GPT-6 (effort unspecified) <[email protected]>
omarchybot added a commit to jasasonc/omarchy that referenced this pull request Nov 24, 2026
Resolve the modify/delete conflict by keeping the test removal from 0fae8e6 (omacom#19904). The weather runtime changes remain intact; current worker checks and live provider-order reproduction verify the fallback against this base.

Co-Authored-By: GPT-6 in Codex <[email protected]>
mohan314e added a commit to mohan314e/omarchy that referenced this pull request Nov 27, 2026
AnPod added a commit to AnPod/omarchy that referenced this pull request Nov 27, 2026
The two files the review said to extend were removed from quattro by omacom#19904, so no Battle.net suite exists there to extend, and a two-line pkill fix does not justify re-founding one per AGENTS.md's test-proportion rule.
omarchybot added a commit to lookevink/omarchy that referenced this pull request Nov 27, 2026
Quattro removed first-run-test.sh in omacom#19904, leaving a modify/delete conflict. Preserve that removal and move only its service checks into the surviving systemd suite, retaining the masked-unit, failed-query, missing-unit and single-reload assertions. The production fix is unchanged and now also covers the crash watcher and clock resync units added on quattro.

Co-Authored-By: GPT-6 <[email protected]>
omarchybot added a commit to lookevink/omarchy that referenced this pull request Nov 27, 2026
The base deliberately pruned the old first-run coverage in omacom#19904. Keep only the masked-unit and failed-state-query regressions introduced by this pull request, using a clean run to check that other units still start. The input-method stub prevents the test from changing the running user configuration.

Co-Authored-By: GPT-6 <[email protected]>

Co-Authored-By: Opus 5.5 High <[email protected]>
ThatRetiredDude added a commit to ThatRetiredDude/omarchy that referenced this pull request Nov 27, 2026
Commit 0fae8e6 (omacom#19904) removed test/shell.d/typing-setup-test.sh while leaving typing-setup-checks.py in place. Run it alongside input-method-checks.py so the keyboard_values regression tests execute in ./test/shell and CI.
crmne added a commit to crmne/omarchy that referenced this pull request Nov 29, 2026
bar-icon-geometry-test.sh went away in omacom#19904, so the label checks move
to a fixture run by bar-widget-contract-test.sh. It measures the figures'
ink a hundred times larger for the clock, keyboard layout and battery
percentages, again after a theme resize, and checks that opt-out,
vertical and two-line labels keep their line box centered.
omarchybot added a commit to bldeden/omarchy that referenced this pull request Nov 29, 2026
Quattro removed the old media model test file in omacom#19904. Keep the regression coverage added by this PR and carry over omacom#20775’s checks for stream fallback and the playerctld proxy.

Co-Authored-By: Carmine Paolino <[email protected]>
Co-Authored-By: Codex GPT-6.2 Sol High <[email protected]>
omarchybot added a commit to yamz8/omarchy that referenced this pull request Nov 29, 2026
Quattro removed the background startup test while reorganizing compositor coverage in omacom#19904. Move the fractional geometry assertions into the existing background intro test so centered outputs keep coverage and the retired startup suite stays deleted.

Co-Authored-By: GPT-6 High (Codex) <[email protected]>
omarchybot added a commit to eisen0419/omarchy that referenced this pull request Nov 29, 2026
quattro deleted test/shell.d/agent-usage-codex-rollouts-test.sh when it slimmed the shell suite (omacom#19904), and this branch had extended it with the cases for a refresh stamp older than its window. The deletion stands: the file's other cases went with it on quattro, and bringing it back for these would undo that. The stamp's ancestor check is left covered only by the updater test that the pid is exported.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@emirb emirb added this to the 4.6.0 milestone Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants