Skip to content

fix(tests): skip install.sh rc-dedup regression test on Windows - #945

Merged
ericleepi314 merged 1 commit into
agentforce314:mainfrom
yibocai-airbnb:fix/install-rc-dedup-skip-windows
Sep 19, 2026
Merged

ericleepi314 merged 1 commit into
agentforce314:mainfrom
yibocai-airbnb:fix/install-rc-dedup-skip-windows

Conversation

@yibocai-airbnb

Copy link
Copy Markdown
Contributor

Summary

  • tests/test_install_sh_rc_dedup.py (added in fix(install): stop update_shell_rc from duplicating its PATH block forever #943) extracts and runs update_shell_rc()'s real body from install.sh via bash/sed/grep — it's a POSIX-shell test of a bash function, not a claim that install.sh runs on native Windows.
  • On windows-latest CI it fails all 5 cases, but not from any regression in the actual fix: the failure is RuntimeError: Could not determine home directory, coming from spawning bash with a replaced (HOME/PATH-only) environment on that runner — an environment-setup issue unrelated to update_shell_rc()'s logic.
  • Skips the file on Windows via the same sys.platform == "win32" pattern already used by other POSIX-only tests in this suite (e.g. test_tui_model_picker_stats_e2e.py, test_dangerous_skip_permissions.py).

Test plan

  • pytest tests/test_install_sh_rc_dedup.py -v — all 5 tests still pass on macOS (skip only triggers on win32)
  • Confirmed the same pytest.mark.skipif(sys.platform == "win32", ...) idiom is already used and CI-verified elsewhere in this repo

🤖 Generated with Claude Code

tests/test_install_sh_rc_dedup.py extracts and runs update_shell_rc()'s
real body from install.sh via bash/sed/grep -- it's a POSIX-shell test,
not a claim that install.sh runs on native Windows. On windows-latest
CI it fails all 5 cases with an unrelated "Could not determine home
directory" error from spawning bash with a replaced (HOME/PATH-only)
environment, not from any real regression in the fix. Skip it there,
following the same sys.platform == "win32" pattern already used by
other POSIX-only tests in this suite.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Test Results

     5 files   1 018 suites   28m 48s ⏱️
15 867 tests 15 841 ✅ 22 💤 4 ❌
31 773 runs  31 698 ✅ 71 💤 4 ❌

For more details on these failures, see this check.

Results for commit d07e583.

@ericleepi314

Copy link
Copy Markdown
Collaborator

agree. Windows tests are always failing.

@ericleepi314
ericleepi314 merged commit fed8b4d into agentforce314:main Sep 19, 2026
6 of 8 checks passed
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.

2 participants