Skip to content

test: pin the fixture PATH inside the zsh watcher sleep test - #15237

Merged
teamleaderleo merged 1 commit into
mainfrom
fix/zsh-sleep-test-path
Sep 28, 2026
Merged

teamleaderleo merged 1 commit into
mainfrom
fix/zsh-sleep-test-path

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

tests/test_issue_15066_zsh_watcher_sleep.py (added in #6032) failed on main run 36389234341 on a hosted macOS runner: fallback should launch sleep once for 20cs, got []. The fallback branch ran and printed its marker, but the fixture's fake sleep, first on the fixture PATH, was never called.

zsh sources /etc/zshenv even with -f. On a host where that file reorders PATH (for example through path_helper), sleep resolves to /bin/sleep before the fixture's copy. The owned runners and this Mac have no /etc/zshenv, which fits the test passing there. I could not read the hosted image's /etc/zshenv, so this cause is inferred. The test now restores the fixture PATH at the start of every zsh command. If the fallback check fails again, it also prints the resolved sleep path and the shell's output, which will confirm or rule out the cause.

Testing

  • python3 tests/test_issue_15066_zsh_watcher_sleep.py passes locally.

Changelog

none

🤖 Generated with Claude Code


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


Summary by cubic

Fixes the zsh watcher sleep test so it passes on hosted macOS runners where zsh sources a PATH-reordering /etc/zshenv.

  • Restores the fixture PATH at the start of every zsh command so the fake sleep is always used.
  • Prints the resolved sleep path and shell output when the fallback check fails, to confirm or rule out the cause.

Written for commit 35cd134. Summary will update on new commits.

Review in cubic

test_issue_15066_zsh_watcher_sleep's fallback check found no call to the
fixture's fake sleep on a hosted macOS runner, although the fallback ran.
zsh reads /etc/zshenv even with -f, so a host whose /etc/zshenv reorders
PATH resolves sleep to /bin/sleep. Restore the fixture PATH at the start
of every zsh command, and print the resolved sleep and the shell output
if the fallback check still fails.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@teamleaderleo
teamleaderleo enabled auto-merge (squash) September 28, 2026 08:32
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 1 minute.

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: 9f66ac19-cdb2-4f71-bcdc-501622386385

📥 Commits

Reviewing files that changed from the base of the PR and between 4c15bb3 and 35cd134.

📒 Files selected for processing (1)
  • tests/test_issue_15066_zsh_watcher_sleep.py

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 35cd134f201f60249e3a0fa4140ec5cfb5b11005

cmux DEV pr-15237-35cd134f.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 merged commit 0fc4975 into main Sep 28, 2026
45 of 46 checks passed
@teamleaderleo
teamleaderleo deleted the fix/zsh-sleep-test-path branch September 28, 2026 08:35
@github-actions

Copy link
Copy Markdown
Contributor

Merge receipt for 35cd134f20, merged 2026-09-28 08:35:44 UTC

  • Not verified at merge: CI timing (in progress)
  • Verified: ci-status, Web complexity, web-validation, CI fast guards, Dogfood build #​15237, Fast static checks, guards (8), linux-preflight, Testbox broker trust boundary, tests
  • Skipped by policy: browser, Claude wrapper regressions, GhosttyKit release check, macos, macOS admission gate, remote-daemon, suite-coverage, ui-tests, web, web-build, web-database-tests, web-tests
  • 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