playwright/packages
Max Schmitt 4431a8366d
fix: collect stdio from forked processes (#27074)
A summary about the attempts we tried in
https://github.com/microsoft/playwright/pull/26931 for
https://github.com/microsoft/playwright/issues/26859 and
https://github.com/microsoft/playwright/issues/24591.

1. attempt: collect all the stdio from the worker host.
- this made it hard to capture the live console logs for the live trace
2. attempt: collect all the stdio from the worker host, but keep
proxying `process.{stdout,stderr}.write`.
- this solved the live console logs problem, since we could still listen
on them
- we found out about a race that the stdout/stderr streams can still
buffer data while the test already had finished
- we created a best effort flush implementation but didn't like the
complexity it introduced to the project
3. attempt: keep things like they are but also listen to stdio from the
worker host
- this solves the race of console.log in the test (things stay like they
are)
    - this keeps live trace working (things stay like they are)
- a known pitfall is that it could result in logs which don't end up in
the reporter onStdOut/onStdErr, but it is already a significant
improvement over how it was before.
      - before: they were not getting displayed
- after: they are getting displayed and there is a low likelihood that
they don't end up in the reporter API if the write happens slightly
before a test finished.

Closes #26931
Fixes #26859
Fixes #24591
2023-09-14 18:34:26 +02:00
..
html-reporter chore: roll @zip.js/zip.js to 2.7.29 (#27047) 2023-09-13 18:39:10 +02:00
playwright fix: collect stdio from forked processes (#27074) 2023-09-14 18:34:26 +02:00
playwright-browser-chromium chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-browser-firefox chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-browser-webkit chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-chromium chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-core feat(chromium): roll to r1081 (#27080) 2023-09-14 16:00:21 +02:00
playwright-ct-core chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-react chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-react17 chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-solid chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-svelte chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-vue chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-ct-vue2 chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-firefox chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-test chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
playwright-webkit chore: cut 1.38.0 branch (#27004) 2023-09-11 18:16:16 -07:00
protocol/src fix(fetch): restore from empty storage state (#27025) 2023-09-12 13:11:18 -07:00
recorder chore: align recorder drawer with trace viewer (#26922) 2023-09-06 17:13:25 -07:00
trace/src chore: show channel name in trace viewer metadata (#26987) 2023-09-11 23:06:56 +02:00
trace-viewer chore: roll @zip.js/zip.js to 2.7.29 (#27047) 2023-09-13 18:39:10 +02:00
web chore: polish ui mode for better mac appearance (#27008) 2023-09-11 19:01:00 -07:00
.eslintrc-with-ts-config.js lint: prevent object string concatenation (#23172) 2023-05-19 15:17:43 -07:00
.eslintrc.js chore: replace process.exit with graceful closure (#24242) 2023-07-24 08:29:29 -07:00