Skip to content

bash -x session-start-hook.sh produces zero stdout bytes on windows-latest (round 2 of #690) #712

Closed

Description

@fdaviddpt

Split out of #690 / PR #708 so it survives independently of that branch and is visible on the tracker rather than only inside an xfail marker.

What happens

On the windows-latest CI runner, test_the_real_hook_traces_past_the_bootstrap in tests/test_trace_not_swallowed_690.py fails: bash -x scripts/session-start-hook.sh exits 0 but produces zero stdout bytes. The six other tests in the same file pass on the same runner, so this is not a bash resolution or PATH handling problem -- something specific to this end-to-end path (or to how the trace/output is captured) does not work on that platform.

This is the exact test that pins #690's own promise -- a bash -x trace of the real hook reaching past bootstrap-dirs.sh's fd-2 redirect -- so on Windows that promise is currently unverified, not merely untested.

What is not yet known

Whether the _REMEMBER_CTX_FILE buffer redirect (scripts/session-start-hook.sh:1527-1542, 1969-1972) never engages under trace on Git Bash, or engages and the flush branch is never reached. This needs a live Windows runner (or an equivalent Git Bash environment) to step through.

Current state

PR #708 (which fixed the macOS bash-3.2 regression in the same file, PR unaffected by this issue) marks the Windows case xfail(sys.platform == "win32", strict=False, raises=AssertionError) rather than a silent skip, so it stays visible until fixed (flips to XPASS, which is the signal to remove the marker) rather than quietly passing. #690 itself is being kept open rather than closed by that PR, since this is the same end-to-end guarantee the issue was filed for, just on a different platform.

Acceptance

The xfail marker on test_the_real_hook_traces_past_the_bootstrap (currently scoped to sys.platform == "win32") can be removed because the test passes for real on windows-latest, and #690 can then be closed once this is fixed.

[AI-generated]

Activity

  1. added
    bug
    priority:medium
    lane-capture
    filed-by-loop
    on Sep 16, 2026
  2. added a commit that references this issue on Sep 19, 2026
  3. self-assigned this
    on Sep 19, 2026
  4. added 3 commits that reference this issue on Sep 19, 2026
  5. removed their assignment
    on Sep 19, 2026
  6. added 3 commits that reference this issue on Sep 19, 2026
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

    bugfiled-by-looplane-capturepriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions