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
As you can see, .schedule() is called twice in quick succession. This isn't supported by the Pool class. Only one schedule() can be called at the same time. A call to schedule() creates some internal bookkeeping variables that are local to the function itself, any subsequent calls don't share that state and instead cause new bookkeeping variables to be created. This results in parallel calls to the checker (calls to check while a call to group is active).
The text was updated successfully, but these errors were encountered:
I've created the branch feat/pool-schedule which contains a unit test that forces the bug.
I have no clear solution for this. I'm thinking that what we want to achieve (a pool of resources shared by consumers) is not possible with standard RXJS operators. Maybe we should simply program it ourselves using plain old arrays or something 😢
The
MutationTestExecutor
has a race condition here:stryker-js/packages/core/src/process/4-mutation-test-executor.ts
Lines 146 to 163 in aa92c52
As you can see,
.schedule()
is called twice in quick succession. This isn't supported by thePool
class. Only oneschedule()
can be called at the same time. A call toschedule()
creates some internal bookkeeping variables that are local to the function itself, any subsequent calls don't share that state and instead cause new bookkeeping variables to be created. This results in parallel calls to the checker (calls tocheck
while a call togroup
is active).The text was updated successfully, but these errors were encountered: