Repository navigation
Description
What happens
completedActionCannotRestartAReplacedWidget (Tests/StableBarTests/ScriptEventTests.swift:114) failed CI's Test job on PR #789, a change to setup that doesn't touch script widgets:
✘ Test completedActionCannotRestartAReplacedWidget() recorded an issue at ScriptEventTests.swift:165:5: Expectation failed: (store.actionErrors → ["replace": "Command timed out after 10.0 seconds."]).isEmpty → false
✘ Test completedActionCannotRestartAReplacedWidget() failed after 74.942 seconds with 1 issue.
Every other test in that run passed (1234 Swift Testing, 299 XCTest).
Steps to reproduce
Seen once on CI. It passes when run alone or in a local full run. A temporary probe that holds the main actor for more than 10 seconds after the action writes $STARTED should make it fail every time, as #656 did for the same kind of failure.
Expected
The test passes however long the busy runner makes it wait for the main actor.
Environment
CI, macOS arm64 runner, Xcode 26.6. PR #789 at f65bac1, based on main at 8a78e88.
Evidence
Run https://github.com/Seb-GRAF/StableBar/actions/runs/44164468692, job 134326808067. The test took 75 seconds there; it takes well under one second alone.
Diagnosis
- The test runs an action that waits until it writes
$RELEASE(line 144), then reloads the configuration and waits for the replacement widget to showNewbefore releasing it. - The widget sets no
timeout, so the action gets the default 10 seconds. On a busy runner the main-actor turns between the action starting and the release took longer than that, the command was killed, andstore.actionErrorskept the timeout. - test: keep timing tests reliable while other tests hold the main actor #109 and test: stop scene and script event tests timing out on a busy runner #656 fixed the same failure in the other held commands of
ScriptEventTestsby giving them 60 or 120 seconds. This test was left out."timeout": 120on its widget would match them;store.stop()still ends the action if the test fails early.
Related
- test: stop scene and script event tests timing out on a busy runner #656 (merged): longer timeouts for
eventBurstsFinishCurrentCommandThenRunLatestPayloadWithoutOverlapandwidgetActionsRunInOrderAndStoppingCancelsQueuedWork, held the same way. - test: keep timing tests reliable while other tests hold the main actor #109 (merged): first round of the same fix for widget actions.
- feat: give widget commands the path of StableBar and of their configuration #734 (open) changes
ScriptEventTests.swiftaround line 215, not this test.
Triaged by Claude Code (Claude Opus 5.5).
Activity
test: give the replaced-widget action two minutes on a busy runner (s…
stablebar-releases commentedon Nov 20, 2026
🎉 This issue has been resolved in version 0.18.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀