opencrvs / opencrvs-core

A global solution to civil registration
https://www.opencrvs.org
Other
79 stars 58 forks source link

Client tests fail randomly due to "tinypool" #7254

Open naftis opened 2 days ago

naftis commented 2 days ago

https://github.com/opencrvs/opencrvs-core/actions/runs/9679409583/job/26706927180?pr=7253#step:12:102

Error: Unexpected message from Worker: { taskId: 83, result: undefined, error: null }
    at WorkerInfo.onMessage (file:///home/runner/work/opencrvs-core/opencrvs-core/node_modules/tinypool/dist/esm/index.js:522:21)

Randomly the tests fail due to this tinypool error in vitest.

naftis commented 2 days ago

https://github.com/vitest-dev/vitest/pull/4172 pool: 'forks' which might help fix this is first supported in v1.0.0 https://github.com/vitest-dev/vitest/pull/3925 parallel child_process first supported in v0.34.7 helps configuring the pool: 'forks' in a different way. https://github.com/vitest-dev/vitest/pull/5047 pool: 'forks' is going to be the default in v2.0.0