Skip to content

Speed up the system-sleep ownership test from 6s to 2s - #15420

Merged
dhh merged 1 commit into
quattrofrom
perf/sleep-ownership-test-speed
Oct 14, 2026
Merged

dhh merged 1 commit into
quattrofrom
perf/sleep-ownership-test-speed

Conversation

@dhh

@dhh dhh commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Per-file speedup from section 4 of the overnight quality plan. system-sleep-ownership-migration-test.sh: 5.6s → 2.1s, test-only, no coverage change.

The blocked-transition case waited out force-igpu's real supergfxctl timeouts — 3s plus the 1s kill-after — against a stub that hangs and ignores TERM. The test already runs a sed-patched copy of the hook with stub binary/config/marker paths; the two timeout bounds are now patched down the same way (0.3s request, 0.2s kill-after). What is asserted is unchanged: the blocked request is bounded and reports failure, no mode query is polled before it returns, restore intent is retained, and the next cycle recovers.

Verified: two consecutive runs pass at ~2.1s; Codex review clean.

The blocked-transition case waited out force-igpu's real supergfxctl
timeouts (3s plus the 1s kill-after, against a stub that hangs and
ignores TERM). The test already runs a sed-patched copy of the hook
with stub paths; patch its timeout bounds down to 0.3s/0.2s the same
way. What is asserted is unchanged: the request is bounded, reports
failure, and keeps the restore intent for the next cycle.
@dhh
dhh merged commit 3a16a47 into quattro Oct 14, 2026
@dhh
dhh deleted the perf/sleep-ownership-test-speed branch October 14, 2026 06:02
@emirb emirb added this to the 4.5 milestone Oct 17, 2026
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