Skip to content

ci: bypass depot_tools python3 wrapper in test jobs - #52641

Merged
ckerr merged 1 commit into
mainfrom
fix-depot-tools-python-wrapper
Aug 5, 2026
Merged

ckerr merged 1 commit into
mainfrom
fix-depot-tools-python-wrapper

Conversation

@claude

@claude claude Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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 python3 wrapper in CL 8162440 (c55f47acb2) that exits 1 with Initialize depot_tools by running gclient or update_depot_tools unless depot_tools has been bootstrapped. Our test jobs clone depot_tools unpinned at HEAD, touch .disable_auto_update (never bootstrapping), and prepend it to PATH via GITHUB_PATH — so every later python3 invocation resolves to the broken wrapper (linux: node-gyp rebuild of abstract-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 system python3 on PATH, restoring pre-Aug-4 behavior.

The node/nan test jobs were unaffected: they get depot_tools via install-build-tools, which bootstraps it with e d update_depot_tools. Pinning the test jobs' depot_tools clone to a known-good revision is a possible follow-up hardening.

Checklist

  • PR description included and stakeholders cc'd

Notes: no-notes


Generated by Claude Code

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
@claude
claude Bot marked this pull request as ready for review August 4, 2026 17:02
@claude

claude Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Heads up for reviewers: at jkleinsc's request this commit has been folded into #52639 (which pairs it with the webview window.opener spec fix so the run can go fully green — this PR's own ASan shard keeps hitting the old flaky test, which only #52639 fixes). Plan of record is to land #52639 and close this PR as superseded.


Generated by Claude Code

@ckerr ckerr closed this Aug 4, 2026
@ckerr
ckerr deleted the fix-depot-tools-python-wrapper branch August 4, 2026 20:46
@ckerr
ckerr restored the fix-depot-tools-python-wrapper branch August 4, 2026 21:11
@ckerr ckerr reopened this Aug 4, 2026
@ckerr ckerr added target/41-x-y PR should also be added to the "41-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 4, 2026
@ckerr

ckerr commented Aug 4, 2026

Copy link
Copy Markdown
Member

Heads up for reviewers: at jkleinsc's request this commit has been folded into #52639 (which pairs it with the webview window.opener spec fix so the run can go fully green — this PR's own ASan shard keeps hitting the old flaky test, which only #52639 fixes). Plan of record is to land #52639 and close this PR as superseded.

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?

@claude

claude Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

Confirmed — the same unpinned depot_tools clone + PATH prepend (with no bootstrap, no DEPOT_TOOLS_PYTHON_BYPASS) is in pipeline-segment-electron-test.yml on all four active release branches (41-x-y, 42-x-y, 43-x-y, 44-x-y), so their test jobs hit the same broken python3 wrapper — e.g. today's 43-x-y run had every test job fail with Could not find any Python installation to use rebuilding abstract-socket right after the depot_tools PATH prepend (job log). This fix is needed there too; the matching target/41-x-y–target/44-x-y labels are on the PR for trop.

Landing order note: until #52639 lands, this PR's ASan shard 3 re-rolls the old window.opener webview flake each attempt (it has no isolated-rerun net), so a re-run is a fresh coin flip — the failure mode is the known pre-existing test, not this change. The duplicate commit in #52639 is identical content, so it merges cleanly in either order; once this lands I'll rebase #52639 to drop it.


Generated by Claude Code

@claude

claude Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

ASan shard 3 has now failed on the pre-existing window.opener webview flake on all three attempts of this PR (original run, re-run, and run 30951292937) — under ASan the bad process-reuse outcome is evidently the likely one, so waiting out the coin flip may take a while. One observation that changes the options: the rewritten test in #52639 asserts the matched-sandbox positive path (guest pinned unsandboxed, child sandbox: false via setWindowOpenHandler, window.opener.postMessage works), which passes both with and without #52472's severing logic — so that spec commit is actually branch-safe to backport, unlike the old test's reliance on default-state behavior. That means an alternative to waiting out ASan here is to put the target/* labels on #52639 (both commits, demonstrated green on ASan shard 3) and let it be the trop vehicle instead. Maintainers' call — happy to rebase either PR to match whichever order you choose.


Generated by Claude Code

@ckerr
ckerr merged commit b523dea into main Aug 5, 2026
296 of 303 checks passed
@ckerr
ckerr deleted the fix-depot-tools-python-wrapper branch August 5, 2026 01:35
@release-clerk

release-clerk Bot commented Aug 5, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "41-x-y", please check out #52655

@trop

trop Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #52656

@trop trop Bot removed the target/41-x-y PR should also be added to the "41-x-y" branch. label Aug 5, 2026
@trop

trop Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "44-x-y", please check out #52657

@trop trop Bot added the in-flight/42-x-y label Aug 5, 2026
@trop

trop Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #52658

@trop trop Bot added in-flight/44-x-y in-flight/43-x-y merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. in-flight/41-x-y in-flight/42-x-y in-flight/44-x-y in-flight/43-x-y labels Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. semver/none

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants