mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user