Skip to content

Fix the background intro lifecycle test that fails every CI run - #17840

Merged
ryanrhughes merged 2 commits into
quattrofrom
t3/fix-background-intro-test-timing
Nov 6, 2026
Merged

ryanrhughes merged 2 commits into
quattrofrom
t3/fix-background-intro-test-timing

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

What changes

The Tests job has been failing on nearly every PR because of one file, test/shell.d/background-intro-lifecycle-test.sh. Of the last 13 failed runs I pulled artifacts for, every one that reached the tests failed on the same check: "app retints also wait through the opening crossfade". It has nothing to do with the PRs it fails on.

Since #17035, a session that renders on the CPU turns Hyprland's animations off. The CI VM renders on llvmpipe, so the shell's Style.reduceMotion goes true and every Style.duration() returns 0. The startup fade then finishes the moment it starts, and the fixture never sees the crossfade it checks for. The fixtures now get a fake hyprctl that reports animations on, the same as the switch fixture's fake already does. That also stops them from calling hyprctl eval on whatever live compositor runs the test.

A second, separate flake failed the same file locally on every run: "the outgoing cover is presented before the shell is hidden". That step checked the cover a fixed 200 ms after prepareTheme, but on three high-resolution screens the cover took 200-300 ms to decode and present. Steps can now take an until condition, and that step waits for the cover to leave "loading", up to 3 s, before it checks.

Two more fixed delays could race the same way, so they wait now too:

  • The fake launcher exited after a fixed sleep 2, and its exit clears the cover through finishStartup(). It now waits for the lifecycle fixture to release it, in the step after the background is suspended. The other fixtures keep the 2 s sleep.
  • The switch fixture checked a change made during an intro a fixed 600 ms later, sometimes before the fake owe render had handed the still over. That step now waits for the still, up to 3 s.

Because fail exits the script, the switch fixture hasn't actually run in CI while the crossfade check was failing ahead of it.

Verification

  • bash test/shell.d/background-intro-lifecycle-test.sh on my desktop (3 monitors, animations on): failed on every run before; all three fixtures pass now. The switch fixture's 600 ms race failed once locally before its wait was added.
  • A scratch copy of the old test with a fake hyprctl reporting animations off failed the crossfade check 3 out of 3 times, matching CI. With animations reported on, the crossfade check passed.
  • This PR's own Tests run is the real check, since the CI VM is where the crossfade failure happens.

Screenshots

No visible change: test fixture and harness only.

…itor sessions

Since #17035 a session rendering on the CPU turns Hyprland's animations off,
so the CI VM zeroes every Style.duration and the opening crossfade the
fixture checks never runs. Give the fixtures a hyprctl that reports
animations on, which also keeps them off the live compositor.

The cover check ran a fixed 200 ms after prepareTheme, but decoding and
presenting the cover took 200-300 ms on three high-resolution screens. Wait
for the cover to leave "loading" instead, up to 3 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge, with the previous finding addressed and no new actionable issues found.

Summary

This PR makes the background intro tests less dependent on machine speed and desktop settings.

  • Intro lifecycle tests keep animations on and wait for cover readiness.
  • Background-switch checks wait for the update before asserting it.

Reviews (2) · Last reviewed commit: "Keep background intro fixtures from raci..." · Reviewed by Greptile

The lifecycle fixture now waits up to 3 s for its cover, longer than the
fake launcher's fixed 2 s; the launcher's exit then cleared the cover before
the check. The launcher now waits for the fixture to release it, in the
step after the background is suspended.

The switch fixture checked a fixed 600 ms after a change made during an
intro, before the fake owe render had handed the still over on a busy
machine. That step now waits for the still too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ryanrhughes
ryanrhughes merged commit d5b32d2 into quattro Nov 6, 2026
2 checks passed
@ryanrhughes
ryanrhughes deleted the t3/fix-background-intro-test-timing branch November 6, 2026 05:39
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Nov 6, 2026
…om#17840)

* Fix the background intro lifecycle test on CPU-rendered and multi-monitor sessions

Since omacom#17035 a session rendering on the CPU turns Hyprland's animations off,
so the CI VM zeroes every Style.duration and the opening crossfade the
fixture checks never runs. Give the fixtures a hyprctl that reports
animations on, which also keeps them off the live compositor.

The cover check ran a fixed 200 ms after prepareTheme, but decoding and
presenting the cover took 200-300 ms on three high-resolution screens. Wait
for the cover to leave "loading" instead, up to 3 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Keep background intro fixtures from racing a fixed launcher or render

The lifecycle fixture now waits up to 3 s for its cover, longer than the
fake launcher's fixed 2 s; the launcher's exit then cleared the cover before
the check. The launcher now waits for the fixture to release it, in the
step after the background is suspended.

The switch fixture checked a fixed 600 ms after a change made during an
intro, before the fake owe render had handed the still over on a busy
machine. That step now waits for the still too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
bamr87 pushed a commit to bamr87/amrchy that referenced this pull request Nov 15, 2026
…ery CI run (omacom#17840)

Upstream test-only fix, taken ahead of the next upstream sync because the
CI image moved past the synced snapshot (Hyprland animations are off on
CPU rendering, so the VM zeroed the crossfade the fixture checks).
Original subject: Fix the background intro lifecycle test that fails every CI run (omacom#17840)

* Fix the background intro lifecycle test on CPU-rendered and multi-monitor sessions

Since omacom#17035 a session rendering on the CPU turns Hyprland's animations off,
so the CI VM zeroes every Style.duration and the opening crossfade the
fixture checks never runs. Give the fixtures a hyprctl that reports
animations on, which also keeps them off the live compositor.

The cover check ran a fixed 200 ms after prepareTheme, but decoding and
presenting the cover took 200-300 ms on three high-resolution screens. Wait
for the cover to leave "loading" instead, up to 3 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Keep background intro fixtures from racing a fixed launcher or render

The lifecycle fixture now waits up to 3 s for its cover, longer than the
fake launcher's fixed 2 s; the launcher's exit then cleared the cover before
the check. The launcher now waits for the fixture to release it, in the
step after the background is suspended.

The switch fixture checked a fixed 600 ms after a change made during an
intro, before the fake owe render had handed the still over on a busy
machine. That step now waits for the still too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit d5b32d2)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
omarchybot added a commit to OmarGonD/omarchy that referenced this pull request Nov 22, 2026
Keep the animation stub and launcher release handshake from omacom#17840 alongside the shared sequencer. Otherwise the old branch fails its crossfade assertion on CPU-rendered workers before reaching the remaining handoff checks.

Co-Authored-By: GPT-6 High <[email protected]>
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.

1 participant