Skip to content

cmux NEXT tests: Group by Status and pane zoom tests follow the lane-status default and the bar overflow (base reds) - #28563

Merged
cmux-bot[bot] merged 5 commits into
feat-cmux-nextfrom
lane/next-tests-status-grouping-zoom
Oct 31, 2026
Merged

cmux-bot[bot] merged 5 commits into
feat-cmux-nextfrom
lane/next-tests-status-grouping-zoom

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Base red

cmux-next swift test on feat-cmux-next fails two tests the same way on base. They have two separate causes, one commit each. Both are test-only changes.

1. SidebarStatusGroupingTests.theSectionsComeFromThePriorityClassifier (:202)

Failure: sidebar.drawn → ["Idle, 5 workspaces", "handle:1", "Claude Code", ...], where ["Needs you, 1 workspaces", "waiting", "Done, ...", ...] was expected.

Culprits:

Verdict: test change. These are deliberate default changes, and the test's intent still holds: the sections come from the Priority classifier. The test now turns the two lane switches on for its own run and resets them after. It reads each row by its title, because the fixture's workspaces have handle:<n> ids, and it leaves listed tab rows out. A finished chat's row carries no Done chip (#23767, 10b4591: "rows draw no status words; ... never Done"), so its expected place is now under Idle instead of a Done section.

2. TabDoubleClickZoomTests.aZoomedPaneShowsALitZoomButton (:145)

Failure: Expectation failed: !(menu.items.contains { ActionRegistry.menuRun(of: $0)?.id == "toggleSplitZoom" })

Culprit: #26132 (5df1da9, "Make pane types and commands discoverable"). A bar too narrow for a button now hides the button and offers it in "…" instead. The test harness's PaneToolbar had no frame, so its width was 0, every button overflowed, and "…" offered Zoom a second time.

Verdict: test change. The overflow behavior is deliberate. The harness now gives the bar a pane's frame (240 × TabStripView.preferredHeight), so the test checks what it was meant to: when the pane is zoomed, the lit zoom button shows and "…" does not offer zoom again.

Observed / Not run

  • Observed: both failure lines, from base CI logs. prepush-gate passes.
  • Not run: no Swift test from this host. The fleet runs these at the head (expected green) and at base (expected red at :202 and :145):
    --filter 'SidebarStatusGroupingTests|TabDoubleClickZoomTests'

No capture: test-only change.

Changelog

none

Agent session: agent session

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Fixes two test failures in cmux-next swift test on feat-cmux-next caused by recent default-behavior changes. Both changes are test-only.

  • SidebarStatusGroupingTests.theSectionsComeFromThePriorityClassifier now turns on sidebar.rowStatus and sidebar.laneStatus (both off by default) for its run, reads rows by title, and leaves out listed tab rows. A finished chat's row carries no Done chip anymore, so it expects it under Idle instead of Done.
  • TabDoubleClickZoomTests.aZoomedPaneShowsALitZoomButton now gives the harness's PaneToolbar a pane-sized frame (240 × TabStripView.preferredHeight) so buttons fit, and verifies the lit zoom button shows without "…" offering zoom again.

Written for commit 3385e61. Summary will update on new commits.

View guided diff Turn on auto-fix

teamleaderleo and others added 2 commits October 30, 2026 22:42
…atus on, by title

theSectionsComeFromThePriorityClassifier (#20905) put every row under Idle:
the row feed reads acpmux lanes only with sidebar.rowStatus and
sidebar.laneStatus on, both off by default since 8f4e8f0 (Lawrence
2026-10-21). The test turns them on for its run, reads each row by its title
(the fixture's workspaces have handle ids), and leaves out listed tab rows
(sidebar.showWorkspaceTabs, on by default since f32ee25). A finished
chat's row carries no Done chip (#23767: a row never says Done), so it sits
under Idle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-63b9964940c20354b639
… its buttons

aZoomedPaneShowsALitZoomButton (:145) found Zoom in the bar's "…" menu: since
#26132 a bar too narrow for a button hides it and "…" offers it, and the
harness's bar had no frame (zero width), so every button overflowed. The
harness now gives the bar a pane's 240 x TabStripView.preferredHeight frame,
so the test checks what it meant: zoomed, the lit zoom button shows and "…"
does not offer zoom a second time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-63b9964940c20354b639
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review b651a44: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr28563 -f ref=lane/next-tests-status-grouping-zoom -f platform=macos -f backend_mode=local

Shipped in:

@github-actions github-actions Bot added the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 30, 2026
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (codex, router-review): SHIP at b651a44

SHIP
Visual verdict: Not applicable; only test code changed.

No correctness defects found.

  1. SidebarStatusGroupingTests.swift:203–220: Toggle cleanup, title mapping, tab exclusion, and expected ordering match the implementation.
  2. TabDoubleClickZoomTests.swift:120–127: The frame gives the zoom button sufficient room; menu construction triggers layout before checking overflow.

Validation limitation: Static review completed; macOS tests could not run in this Linux box without Swift.

@teamleaderleo teamleaderleo removed the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 30, 2026
@github-actions github-actions Bot added the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 30, 2026
@blacksmith-sh

blacksmith-sh Bot commented Oct 31, 2026

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
test_every_listed_hook_is_one_glaeda_released_with_the_check (main.SigningHooksInSt
epWithGlaedaTests.test_every_listed_hook_is_one_glaeda_released_with_the_check)/
test_every_listed_hook_is_one_glaeda_released_with_the_check (main.SigningHooksInSt
epWithGlaedaTests.test_every_listed_hook_is_one_glaeda_released_with_the_check)
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (next-review patch-id; carried): SHIP at 33f8c98

The independent SHIP at b651a44 carries to this head: the PR's own change (git diff $(git merge-base feat-cmux-next HEAD) HEAD) has the same git patch-id --verbatim (504f61d4c54eeb89) at both heads, and no merge between them was resolved by hand. Nothing new to review. A newer BLOCK, or any change to the PR's own diff, ends the carry.

@teamleaderleo teamleaderleo removed the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 31, 2026
@github-actions github-actions Bot added the risk:low Risk tier (docs/ci/risk-tiers.md) label Oct 31, 2026
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 14:47 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 14:47 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 14:48 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 15:00 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 15:00 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent October 31, 2026 15:01 Inactive
@cmux-bot
cmux-bot Bot merged commit 46cf844 into feat-cmux-next Oct 31, 2026
251 of 260 checks passed
@cmux-bot
cmux-bot Bot deleted the lane/next-tests-status-grouping-zoom branch October 31, 2026 15:05
cmux-bot Bot pushed a commit that referenced this pull request Oct 31, 2026
… row key) (#29486)

The feat tip does not compile its tests (merge-batch compile job
adbfd4f046d9e75e9635af65 at 644491f):
- ForgetRemovesBothListsTests.swift:18: cannot find 'MainWorkScheduler'
  / 'MainFrameBudget' in scope. The file came with 4a46cfa (#28799)
  without `import CmuxNextWakeups`, where both types are public.
- SidebarStatusGroupingTests.swift:58: type 'SidebarRowKey' has no member
  'tab'. 46cf844 (#28563) added `if case .tab = row.key` after
  8a3af6b had deleted the sidebar's tab-row keys; with no tab rows, the
  line has nothing to skip, so it goes.

This branch was previously deployed

1 inactive deployment
ci-routing-agent — 3385e61e Deployed Oct 31, 2026 by cmux-bot[bot] via cmux-tui tree preflight #90263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant