Skip to content

Commit 30877bb

Browse files
authored
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
1 parent 3304db0 commit 30877bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// unexpectedly, leading to OOM kills.
55
//
66
// SEE thread: https://github.com/coder/coder/pull/483#discussion_r829636583
7-
const maxWorkers = process.env.CI ? 16 : 2
7+
const maxWorkers = 2
88

99
module.exports = {
1010
maxWorkers,

0 commit comments

Comments
 (0)