test(git-bash): give ssh-agent a load-tolerant bound in the Windows pane proof (#33287)

The detached ssh-agent proof waited 10s for eval "$(ssh-agent -s)" to print
its pid. On a loaded runner the shell had already accepted and started the
command (OSC 133;C) when the bound tripped; the leading terminal queries are
the pane's normal prelude, not a missing marker. Across eight instrumented
CI runs the marker took 0.5-1.1s, so keep waiting on the marker but cap it
at 30s.
This commit is contained in:
Neil
2026-10-24 21:05:19 -07:00
committed by GitHub
parent fc508bd19e
commit 75ecad41d5
@@ -175,7 +175,8 @@ describeOnWindows("Git Bash launcher shell proof with Orca's real launch", () =>
await vi.waitFor(() => expect(output).toContain('$'), { timeout: 20_000 })
// ssh-agent forks, setsids off the console, and its Win32 parent exits.
proc.write('eval "$(ssh-agent -s)"; echo ORCA_AGENT_$SSH_AGENT_PID\r')
await vi.waitFor(() => expect(output).toMatch(/ORCA_AGENT_\d+/), { timeout: 10_000 })
// Usually ~1s, but it exceeded 10s on a loaded runner; the bound only catches a hang.
await vi.waitFor(() => expect(output).toMatch(/ORCA_AGENT_\d+/), { timeout: 30_000 })
agentPid = Number(/ORCA_AGENT_(\d+)/.exec(output)?.[1])
await vi.waitFor(async () => expect(await inspect(true)).toBe('no-children'), {
timeout: 10_000
@@ -196,5 +197,5 @@ describeOnWindows("Git Bash launcher shell proof with Orca's real launch", () =>
}
proc.kill()
}
}, 60_000)
}, 90_000)
})