ci: reduce maxWorkers in jest tests (#1006)

Summary:

When `maxWorkers` is high, there's a bug in `jest` that causes OOM kills.
Unfortunately, CI is experiencing this as well as local. For now, the best solution
is just reducing `maxWorkers`.

Resolves: #1004
This commit is contained in:
G r e y
2022-04-14 12:23:16 -04:00
committed by GitHub
parent 3304db08dd
commit 30877bb71f
+1 -1
View File
@@ -4,7 +4,7 @@
// unexpectedly, leading to OOM kills.
//
// SEE thread: https://github.com/coder/coder/pull/483#discussion_r829636583
const maxWorkers = process.env.CI ? 16 : 2
const maxWorkers = 2
module.exports = {
maxWorkers,