Skip to content

test: fix three app-host tests that keep main red - #15204

Merged
teamleaderleo merged 3 commits into
mainfrom
fix/main-red-app-host-tests
Sep 28, 2026
Merged

teamleaderleo merged 3 commits into
mainfrom
fix/main-red-app-host-tests

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Three app-host tests that keep main's full suite red, each fixed at its cause. All three are test-only.

  • CloudMachineOrderingTests (fails every case). Keep Cloud sidebar drags free of hints #15123 removed the Cloud tree's reorder insertion line on purpose and updated CloudSidebarNativeDropTests, but this suite still required the sidebarReorderIndicator view. The tests now assert that no indicator is drawn. The move, order, pin, selection and expansion checks are unchanged. Failed in main run 36379348668.
  • CMUXCLIEventsStreamErrorTests (fails on runners whose own cmux set a socket password). The CLI reads its socket password file under homeDirectoryForCurrentUser, which follows CFFIXED_USER_HOME, not HOME. When that file exists, the CLI sends auth first and prints the fake responder's canned error verbatim, so events.stream is never requested. Both tests now spawn the CLI with BundledCLITestSupport.hermeticCLIEnvironment. Failed on all 3 attempts in main run 36373808820.
  • WindowOverlayChromeTests/browserAndTerminalRespectChrome(useGlass: true) (fails on some hosted runners). The likely cause is the system Reduce Transparency setting on those hosts: since the Reduce Transparency support landed, mounting the terminal resolves the opaque window fill and removes any glass root when the system setting is on. The test now installs and expects the glass root only when the app would keep it. The portal hit-testing checks still run on every host. Failed in main runs 36341390537 and 36379348668.

Testing

  • Test-only changes. No local build; CI runs the app-host suites.

Changelog

none

🤖 Generated with Claude Code

teamleaderleo and others added 3 commits September 28, 2026 03:22
#15123 removed the Cloud tree's reorder insertion line on purpose and
updated CloudSidebarNativeDropTests, but CloudMachineOrderingTests still
required the sidebarReorderIndicator view, so every case failed. Assert
that no indicator is drawn and keep the move, order, pin, selection and
expansion checks.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The CLI reads its socket password file under homeDirectoryForCurrentUser,
which follows CFFIXED_USER_HOME rather than HOME. On a runner whose own
cmux set a socket password, the CLI sent auth first and printed the fake
responder's canned error verbatim, so events.stream was never requested
and both tests failed. Use BundledCLITestSupport.hermeticCLIEnvironment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Since the Reduce Transparency support, the terminal mount resolves the
opaque window fill and removes any glass root when the system setting
is on, so browserAndTerminalRespectChrome(useGlass: true) failed on
hosts with it enabled. Install and expect the glass root only when the
app would keep it; the portal hit-testing checks still run everywhere.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: manaflow-ai/cmux/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 4afd5e3a-a18a-485a-a48f-ef605a47f4fd

📥 Commits

Reviewing files that changed from the base of the PR and between 48d662a and e132dff.

📒 Files selected for processing (3)
  • cmuxTests/CMUXCLIErrorOutputRegressionTests+Events.swift
  • cmuxTests/CloudMachineOrderingTests.swift
  • cmuxTests/WindowOverlayChromeTests.swift

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@github-actions

Copy link
Copy Markdown
Contributor

Dogfood build of e132dff34ee752e88db16a00147ba3fa007c3804

cmux DEV pr-15204-e132dff3.app

The link opens this exact commit in the cmux dev menu bar app. The build starts on each push and the page waits until it is ready; a newer push replaces it. It signs in against production, so Cloud or backend changes still need a tagged build with a development backend.

@teamleaderleo
teamleaderleo enabled auto-merge (squash) September 28, 2026 07:25
@github-actions

Copy link
Copy Markdown
Contributor

CI failure attribution

CI failed on e132dff34e (run 36391400953 attempt 1): 1 machine.

Job Verdict Why
macos / app-host unit tests (changed suites) machine the runner went away mid-job (runner cmux-austin-mini-1-glaeda)
Matched log lines
macos / app-host unit tests (changed suites): The self-hosted runner lost communication with the server. Verify the machine is running and has a healthy network connection. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.

Every failure is a machine failure: re-ran the failed jobs as attempt 2 (the checks show its result).

Written by scripts/ci/classify_failures.py (ci-failure-attribution.yml); signatures are its SIGNATURES table. A machine verdict is the runner's fault, not this PR's.

@teamleaderleo
teamleaderleo merged commit 1255448 into main Sep 28, 2026
82 of 87 checks passed
@teamleaderleo
teamleaderleo deleted the fix/main-red-app-host-tests branch September 28, 2026 08:36
@github-actions

Copy link
Copy Markdown
Contributor

Merge receipt for e132dff34e: every check was green at merge (17 verified; 15 skipped by policy). Full suite runs on main after merge.

rustybret pushed a commit to rustybret/bmux that referenced this pull request Sep 28, 2026
ba94a13 CI: let Iroh release gate reuse unchanged TUI artifact
71a921c fix(web): stop orphaned Cloud VM alert pages (manaflow-ai#15138)
9971c2c Keep newer iOS connections alive when a recovery is superseded (manaflow-ai#15141)
c307ab0 cmux-tui: only connect to derived local sockets served by this user (manaflow-ai#15144)
1220252 codex-teams: keep the watcher's socket password out of its arguments (manaflow-ai#15140)
b3a73f0 chatmux-relay: keep cmux-tui sockets and journal cursors private to this user (manaflow-ai#15156)
b0d5083 ci: dispatch UI tests from a default-branch workflow; PR CI keeps no write token (manaflow-ai#15226)
1255448 test: fix three app-host tests that keep main red (manaflow-ai#15204)
0fc4975 test: pin the fixture PATH inside the zsh watcher sleep test (manaflow-ai#15237)
758aaeb fix(ios): clear read notifications on foreground return (manaflow-ai#14725)
4c15bb3 cmux-browser: stop requiring GPL for web/package.json (manaflow-ai#15231)
97fe6b4 test: keep the Cloud notification harness workspace unselected (manaflow-ai#15215)
61083e3 test: keep workspace cwd inheritance tests off the shared standard defaults (manaflow-ai#15227)
eae4994 Pin password badge actions to their source runtime (manaflow-ai#14921)
fd96369 Check the owner of the Claude shim directory in the app, workspace commands and nushell (manaflow-ai#15185)
0ebf8d7 Fix main-thread freeze during SSH paste detection (manaflow-ai#15113)
a98c560 test: pin font magnification in the Cloud outline attention test (manaflow-ai#15213)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant