playwright/packages
Dmitry Gozman 7d3672899f
fix(tracing): race in stopChunk (#10481)
Consider the following scenario:
- Tracing is started.
- API call is made (e.g. page.waitForResponse), almost finishes, and
  enters onAfterCall where it starts a snapshot.
- tracing.stopChunk is called, and waits for existing actions to finish.
  However, it does so by calling onAfterCall one more time.
- tracing.stopChunk removes instrumentation listener and returns
  to the client.
- Client starts zipping files.
- Original API call finishes the snapshot and saves it to the trace file.

This results in trace file being written to while the zip is still working.
2021-11-22 20:08:09 -08:00
..
create-playwright chore: create-playwright config nits & test-runner intro docs (#10253) 2021-11-11 22:45:07 +01:00
playwright chore: cut v1.17 (#10203) 2021-11-09 17:56:26 -08:00
playwright-chromium chore: cut v1.17 (#10203) 2021-11-09 17:56:26 -08:00
playwright-core fix(tracing): race in stopChunk (#10481) 2021-11-22 20:08:09 -08:00
playwright-firefox chore: cut v1.17 (#10203) 2021-11-09 17:56:26 -08:00
playwright-test docs: add more references to TestInfo.retry (#10472) 2021-11-22 10:06:20 -08:00
playwright-webkit chore: cut v1.17 (#10203) 2021-11-09 17:56:26 -08:00