Skip to content

test: make sure there are no orphaned electron processes running#51476

Merged
jkleinsc merged 1 commit into
mainfrom
debug-test-fails
May 5, 2026
Merged

test: make sure there are no orphaned electron processes running#51476
jkleinsc merged 1 commit into
mainfrom
debug-test-fails

Conversation

@jkleinsc

@jkleinsc jkleinsc commented May 4, 2026

Copy link
Copy Markdown
Member

Description of Change

This PR updates our test suite to ensure that no orphan Electron processes are running before starting a test spec. This should help to ensure that tests are not affected by earlier tests that happen to leave processes running.

Checklist

Release Notes

Notes: none

@jkleinsc jkleinsc force-pushed the debug-test-fails branch from d5c6de0 to 829ae64 Compare May 4, 2026 21:31
@jkleinsc jkleinsc marked this pull request as ready for review May 4, 2026 22:12
@jkleinsc jkleinsc added target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. 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. labels May 5, 2026
@jkleinsc jkleinsc merged commit f9635f7 into main May 5, 2026
139 of 141 checks passed
@jkleinsc jkleinsc deleted the debug-test-fails branch May 5, 2026 00:17
@release-clerk

release-clerk Bot commented May 5, 2026

Copy link
Copy Markdown

No Release Notes

@trop

trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "39-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "40-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels May 5, 2026
@trop

trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added the in-flight/41-x-y label May 5, 2026
@trop

trop Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added in-flight/42-x-y and removed 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. labels May 5, 2026
@trop trop Bot added merged/41-x-y PR was merged to the "41-x-y" branch. and removed in-flight/41-x-y labels May 5, 2026
@trop trop Bot added merged/42-x-y PR was merged to the "42-x-y" branch. and removed in-flight/42-x-y labels May 6, 2026
@jkleinsc

Copy link
Copy Markdown
Member Author

/trop run backport-to 40-x-y

@trop

trop Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated - sending your PR to 40-x-y!

@trop

trop Bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

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

@trop trop Bot added in-flight/40-x-y merged/40-x-y PR was merged to the "40-x-y" branch. and removed needs-manual-bp/40-x-y in-flight/40-x-y labels May 11, 2026
jkleinsc pushed a commit that referenced this pull request May 18, 2026
…#51630)

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.
ckerr added a commit that referenced this pull request May 19, 2026
…#51685)

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
ckerr added a commit that referenced this pull request May 19, 2026
…#51686)

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
ckerr added a commit that referenced this pull request May 19, 2026
…#51683)

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
jkleinsc pushed a commit that referenced this pull request May 19, 2026
…#51684)

The killOrphanedElectronProcesses beforeAll hook used wmic to find all
electron.exe processes by path, excluded only process.pid, then killed
the rest. On Windows, GPU/network/renderer helpers share the same exe
path — they were being killed as "orphans," causing repeated GPU process
crashes until Chromium fataled after 6 restarts.

Add a ParentProcessId-based descendant check (matching the existing
Linux /proc PPid walk) so child processes of the current instance are
preserved.

Followup to f9635f7 / #51476.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/40-x-y PR was merged to the "40-x-y" branch. 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. semver/none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants