Skip to content

fix(bazel): allow slow Windows Python startup - #1816

Merged
John-David Dalton (jdalton) merged 2 commits into
v1.xfrom
fix/windows-python-probe-timeout
Dec 2, 2026
Merged

John-David Dalton (jdalton) merged 2 commits into
v1.xfrom
fix/windows-python-probe-timeout

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

On loaded Windows runners, the Bazel Python probe can hit its 10-second startup limit and report a working interpreter as invalid. Give Windows up to 30 seconds and surface an explicit timeout message. Keep the Unix python3 fallback when python fails.

Failed Windows Bash run

@cursor

cursor Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Local change to Bazel Python shim probing and error messaging; no auth or data-path impact.

Overview
Extends the Bazel manifest Python interpreter probe so Windows uses a 30s startup timeout (10s elsewhere), and treats ETIMEDOUT as its own InputError instead of “did not run as Python 3.”

Refactors the version check into checkPython3, which returns an error object; on Unix, a bad python no longer fails immediately—errors are kept so the flow can still try python3. Tests mock execFileSync for the timeout path and bump the integration test timeout to 45s.

Reviewed by Cursor Bugbot for commit 5e5f15a. Configure here.

@jdalton
John-David Dalton (jdalton) merged commit 8c7a4e7 into v1.x Dec 2, 2026
14 of 21 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/windows-python-probe-timeout branch December 2, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants