You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reporters which clear screen during logging (any non-CI reporter) can cause too much stress on main thread. Once main thread spends all its time resolving what to print on screen, it blocks new tests from starting.
During the beta releases the log-update dependency was updated to new major version. It was supposed to fix performance issues but actually it introduces some more. Downgrading log-update to previous major fixes these issues immediately.
Tip
Work-around for anyone running into this issue with 1.0.2 and below:
Switch to reporters: "basic"
Performance profiles from main thread:
v1.0.2
On top row the functions are coming from log-update and its various dependencies.
v1.0.2 after downgrading log-update
Test execution drops by 66% on the reproduction case.
See how main thread spends most of its time on idle part. That's a good thing as main thread should spend most its time just waiting for test runner threads/forks.
Describe the bug
Reporters which clear screen during logging (any non-CI reporter) can cause too much stress on main thread. Once main thread spends all its time resolving what to print on screen, it blocks new tests from starting.
During the beta releases the
log-update
dependency was updated to new major version. It was supposed to fix performance issues but actually it introduces some more. Downgradinglog-update
to previous major fixes these issues immediately.Tip
Work-around for anyone running into this issue with 1.0.2 and below:
Switch to
reporters: "basic"
Performance profiles from main thread:
v1.0.2
On top row the functions are coming from
log-update
and its various dependencies.v1.0.2 after downgrading
log-update
Test execution drops by 66% on the reproduction case.
See how main thread spends most of its time on
idle
part. That's a good thing as main thread should spend most its time just waiting for test runner threads/forks.Reproduction
Use reproduction case from #3006.
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: