Skip to content

test(bazel): avoid copying Node for the Python probe timeout - #1826

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
test/bazel-python-timeout-fixture
Dec 3, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
test/bazel-python-timeout-fixture

Conversation

@jdalton

Copy link
Copy Markdown
Contributor

The Python probe timeout test can hit its own five-second limit on a busy runner. It copies the Node binary even though the probe is mocked. Use an empty executable file so the test still checks interpreter discovery, the probe deadline, and the timeout message.

@cursor

cursor Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test-only change to fixture setup; no production code or runtime behavior is modified.

Overview
The interpreter probe timeout test no longer copies the Node binary (process.execPath) into a fake python executable. It now creates an empty chmod 755 file at the expected path so discovery still finds something executable while execFileSync remains mocked to throw ETIMEDOUT.

This cuts test setup cost and avoids the case where copying/running Node causes the test to hit its own timeout on slow CI runners, without changing what is asserted (timeout message, probe args, and timeout options).

Reviewed by Cursor Bugbot for commit e089b83. Configure here.

@jdalton
John-David Dalton (jdalton) merged commit 1a532f4 into v1.x Dec 3, 2026
24 checks passed
@jdalton
John-David Dalton (jdalton) deleted the test/bazel-python-timeout-fixture branch December 3, 2026 16:41
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