Skip to content

completedActionCannotRestartAReplacedWidget times out on a busy CI runner #790

Closed

Description

@M4n0x

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 show New before 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, and store.actionErrors kept 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 ScriptEventTests by giving them 60 or 120 seconds. This test was left out. "timeout": 120 on its widget would match them; store.stop() still ends the action if the test fails early.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 18, 2026
    fd3d382
  3. stablebar-releases commented on Nov 20, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.18.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions