Skip to content

The setup scene test fails on main since the workspace manager became a menu #528

Closed

Description

@Seb-GRAF

What happens

Since #525, CI's Test job fails setupSceneDrawsTheSameStepHoweverLongItSettles (Tests/StableBarTests/SceneRendererTests.swift:241) in 3 of 4 runs: the setup scene's early and late drawings differ. main is red at a6b5371, so no beta publishes and no stable release can start.

Steps to reproduce

Run CI's Test job on main at a6b5371. It doesn't reproduce on a local Mac, in focused or full runs.

Expected

The two drawings match, as they did in the 40 CI runs before.

Environment

GitHub-hosted macOS arm64 runners, Xcode 26.6.

Evidence

  • Failed: run 42850435812 attempt 1 (d0f6d4d), run 42856417166 attempts 1 and 2 (a6b5371).
  • Passed: run 42850435812 attempt 2 (d0f6d4d), run 42845669648 (19bc30d, before the menu).

Diagnosis

The only change between 19bc30d and d0f6d4d is the Workspace manager row in Settings → General (Sources/StableBar/GeneralSettingsView.swift). Its SettingsSegments became a SwiftUI Picker, which AppKit draws as an NSPopUpButton, because five segments were truncated. SceneRendererTests draws the General tab while the setup scene draws. The likely cause is the pop-up button changing window or focus state between the setup scene's two captures. This isn't proven, since it doesn't reproduce locally.

Fix: go back to SettingsSegments and give them their ideal width with .fixedSize(). The row's control was squeezed, not the label: all five segments fit beside the "Not installed" hint at their full width.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 10, 2026
  2. Seb-GRAF commented on Nov 10, 2026

    @Seb-GRAF
    CollaboratorAuthor

    reopening, #529 didn't fix it: still fails on main (run 42867930412) while the same code passed on the PR, same runner image. so the menu wasn't it, it's a flake that started with #525. next step is saving both drawings when it fails so CI shows what differs

  3. stablebar-releases commented on Nov 10, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.12.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  4. Seb-GRAF commented on Nov 11, 2026

    @Seb-GRAF
    CollaboratorAuthor

    no failure since this morning, ~15 runs green. closing, #532 saves both drawings if it comes back

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