Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(electron): flaky startup if stderr comes in too fast #30855

Merged
merged 1 commit into from
May 21, 2024

Conversation

JoelEinbinder
Copy link
Contributor

Chromium's DevTools listening on message sometimes arrives before Playwright is finished connecting to Node. Without this patch, it would miss the message and fail to connect.

Copy link
Contributor

Test results for "tests 1"

1 flaky ⚠️ [webkit-page] › page/workers.spec.ts:243:3 › should support offline

27012 passed, 610 skipped
✔️✔️✔️

Merge workflow run.


const nodeMatch = await waitForLine(progress, launchedProcess, /^Debugger listening on (ws:\/\/.*)$/);
const nodeMatch = await nodeMatchPromise;
Copy link
Member

@mxschmitt mxschmitt May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: move nodeMatchPromise to the end and await immediately (one less var to declare)?

@pavelfeldman pavelfeldman merged commit d0644f5 into microsoft:main May 21, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants