Repository navigation
cmux-next tests: DisplayBackdropBindingTests closes its windows (base red from #27092) - #32217
Conversation
… red from #27092) WindowCleanupCoverageTests fails at the tip: #27092 added DisplayBackdropBindingTests, which makes NSWindows without .closesItsWindows. Each test now closes the windows it makes in its own teardown (declared before the binding's, so the binding stops first), the suite takes the trait, and CmuxNextSettingsTests links CmuxNextTestSupport for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-9124da39adbff74677d9
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Shipped in:
|
teamleaderleo
left a comment
There was a problem hiding this comment.
Review (claude-opus-5-5): SHIP at 27d655c
Review (subagent claude-opus-5-5): SHIP at 27d655c
Checked: all 10 NSWindow() in DisplayBackdropBindingTests.swift get a closeAfterTest() defer, each declared before the binding's stop() defer so stop runs first; no shadowed window names; the suite carries .closesItsWindows on its top-level type, which is what the WindowCleanupCoverageTests scanner looks for; CmuxNextTestSupport is already linked by another daemonSwiftSettings test target and exports closeAfterTest and the trait as public. DisplayBackdropBinding keeps no reference to the window (it is only the notification object), so the release check in pendingFolderReadDoesNotRetainBinding and the temporary binding in the last test mean the same as before.
Follow-ups: none
Base red:
WindowCleanupCoverageTests.everySuiteThatOpensAWindowClosesWhatItLeavesfails in the tip Swift suite (run 41435160513, job 125243545517):Cause: #27092 (per-display wallpaper rotation) added
DisplayBackdropBindingTests, which makesNSWindows without.closesItsWindowsand never closes them.Fix (test-only, same pattern as #32086):
closeAfterTest()in its own teardown, declared before the binding'sdeferso the binding stops first..closesItsWindowsand importsCmuxNextTestSupport.CmuxNextSettingsTestslinksCmuxNextTestSupport(Package.swift).Base-red-job: cmux-next / cmux-next swift test
Changelog
none
Observed / Not run
scripts/cmux-next/prepush-gate.py: no new violations.cmux-next swift testis the evidence.Agent session: agent session
🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes the Swift suite base red where
DisplayBackdropBindingTestsleakedNSWindows, failingWindowCleanupCoverageTests.closeAfterTest(), declared before the binding'sdeferso the binding stops first..closesItsWindows, andCmuxNextSettingsTestslinksCmuxNextTestSupportto provide it.Written for commit 27d655c. Summary will update on new commits.