From 30877bb71f8111e8bf9f633aeb47a4e07b306b99 Mon Sep 17 00:00:00 2001 From: G r e y Date: Thu, 14 Apr 2022 12:23:16 -0400 Subject: [PATCH] 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 --- site/jest.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/jest.config.js b/site/jest.config.js index 3effb20d6a..e53c2d01d0 100644 --- a/site/jest.config.js +++ b/site/jest.config.js @@ -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,