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
I see an approximate 5 second pause at the end of test runs when Xdist is used. During this time the Xdist workers consume about 100% of a CPU core each.
This is cause by syrupy's pytest_terminal_summary hook function being executed in workers, for reasons I do not understand.
@willmcgugan That was my initial guess too, but that part is really fast. I have generated snapshot reports OK with this change in place. The syrupy plugin is active in each worker for most of the run, only being disabled in pytest_sessionfinish, which is after all the snapshot work has been performed.
The bug
I see an approximate 5 second pause at the end of test runs when Xdist is used. During this time the Xdist workers consume about 100% of a CPU core each.
This is cause by syrupy's pytest_terminal_summary hook function being executed in workers, for reasons I do not understand.
I have created a pytest_textual_snapshot PR (Textualize/pytest-textual-snapshot#20) that provides a work-around for this.
The text was updated successfully, but these errors were encountered: