Skip to content

test: help_passthrough_fuzz_test opens git's HTML manual pages in the browser on Windows #4728

Closed

Description

@umi008

Summary

On Windows, cargo test --all opens six git manual pages in the developer's default browser. The cause is a_wrapped_tools_own_help_survives_rtk in tests/help_passthrough_fuzz_test.rs, which runs git log --help, git status --help and git diff --help, once natively and once through rtk.

Git for Windows defaults to help.format=html, so each git <cmd> --help call launches the browser on C:/Program Files/Git/mingw64/share/doc/git-doc/git-<cmd>.html instead of printing a man page. The test isolation pins git's config to a scratch directory, but help.format is not set there, so the platform default applies.

Reproduction

  • Windows 11, Git for Windows 2.55.0.windows.5, rtk develop @ 5ab6291
  • cargo test --test help_passthrough_fuzz_test a_wrapped_tools_own_help_survives_rtk

Expected: no window opens. Actual: six browser tabs (git-log(1) ×2, git-status(1) ×2, git-diff(1) ×2). Running test suites in parallel, for example in several worktrees, multiplies this.

On Windows the git cases therefore compare whatever git <cmd> --help prints after launching the browser, not the help page the test means to compare.

Possible fix

Either option keeps the test machine-independent, per .claude/rules/cli-testing.md:

  • Set help.format=man (or GIT_CONFIG_PARAMETERS/-c help.format=man) in the isolated git environment that both common::rtk_command() and common::native_command() use. Git for Windows usually ships without a man viewer, though, so the git cases may still need a skip.
  • Add git to the Windows-only skip list (UNIX_ONLY), the same way grep, ls, tree, wc and find are already skipped there.

Activity

  1. rtk-wshm-sync-bot commented on Oct 21, 2026

    @rtk-wshm-sync-bot

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟡 Priority medium
    🎯 Confidence 90%

    Summary

    On Windows, git's default help.format=html causes the fuzz test to open git manual pages in the browser instead of comparing help text; fix by pinning help.format=man or skipping git on Windows.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • tests/help_passthrough_fuzz_test.rs
    • tests/common.rs

    Suggested Actions

    1. Set help.format=man (or -c help.format=man) in common::rtk_command()/native_command() isolated git env
    2. If Git for Windows lacks a man viewer, add git to the UNIX_ONLY skip list alongside grep/ls/tree/wc/find
    3. Verify fix with cargo test --test help_passthrough_fuzz_test on Windows CI

    Triaged automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions