Repository navigation
ci: bypass depot_tools python3 wrapper in test jobs - #52641
Conversation
depot_tools CL 8162440 (c55f47acb2) added a top-level python3 wrapper that exits 1 unless depot_tools has been bootstrapped. Test jobs clone depot_tools unpinned and prepend it to PATH without bootstrapping, so every subsequent python3 invocation fails. Setting DEPOT_TOOLS_PYTHON_BYPASS makes the wrapper exec the system python3. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012URikDDX2ySWVEuvQFRfBx
|
Heads up for reviewers: at jkleinsc's request this commit has been folded into #52639 (which pairs it with the webview Generated by Claude Code |
I think Claude is wrong about this. This fix is needed in the maintenance branches, but #52639 also fixes a test for main-only behavior broken by 52472. So probably we want to land this one first + trop? |
|
Confirmed — the same unpinned depot_tools clone + PATH prepend (with no bootstrap, no Landing order note: until #52639 lands, this PR's ASan shard 3 re-rolls the old Generated by Claude Code |
|
ASan shard 3 has now failed on the pre-existing Generated by Claude Code |
|
No Release Notes |
|
I have automatically backported this PR to "41-x-y", please check out #52655 |
|
I have automatically backported this PR to "42-x-y", please check out #52656 |
|
I have automatically backported this PR to "44-x-y", please check out #52657 |
|
I have automatically backported this PR to "43-x-y", please check out #52658 |
Requested by John Kleinschmidt · Slack thread
Description of Change
Before: Since 2026-08-04 06:42Z, every linux and macOS test job fails before running a single test. depot_tools added a top-level
python3wrapper in CL 8162440 (c55f47acb2) that exits 1 withInitialize depot_tools by running gclient or update_depot_toolsunless depot_tools has been bootstrapped. Our test jobs clone depot_tools unpinned at HEAD, touch.disable_auto_update(never bootstrapping), and prepend it toPATHviaGITHUB_PATH— so every laterpython3invocation resolves to the broken wrapper (linux: node-gyp rebuild ofabstract-socket; macOS:script/get-git-version.py).After: Test jobs set
DEPOT_TOOLS_PYTHON_BYPASS: 1, which the wrapper honors by falling through to the systempython3onPATH, restoring pre-Aug-4 behavior.The node/nan test jobs were unaffected: they get depot_tools via
install-build-tools, which bootstraps it withe d update_depot_tools. Pinning the test jobs' depot_tools clone to a known-good revision is a possible follow-up hardening.Checklist
Notes: no-notes
Generated by Claude Code