From 5997072f691024e0e5afd78c002c0871b1cbd6a6 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 20 Aug 2024 11:05:49 -0400 Subject: [PATCH] [flow] Remove CI_MAX_WORKERS option Noticed this from #30707. This was vestigial from from circleci and now that we're on GH actions I think we should be able to remove this option altogether. ghstack-source-id: 78e8b0243b1e1484ffaad820987ae3679a7374bf Pull Request resolved: https://github.com/facebook/react/pull/30753 --- scripts/flow/config/flowconfig | 1 - scripts/flow/createFlowConfigs.js | 5 ----- 2 files changed, 6 deletions(-) diff --git a/scripts/flow/config/flowconfig b/scripts/flow/config/flowconfig index b2032e0dadcbf..46e7b6e969690 100644 --- a/scripts/flow/config/flowconfig +++ b/scripts/flow/config/flowconfig @@ -33,7 +33,6 @@ untyped-type-import=error [options] -%CI_MAX_WORKERS% munge_underscores=false # Substituted by createFlowConfig.js: diff --git a/scripts/flow/createFlowConfigs.js b/scripts/flow/createFlowConfigs.js index c1e8474160247..7ff68cce5b03a 100644 --- a/scripts/flow/createFlowConfigs.js +++ b/scripts/flow/createFlowConfigs.js @@ -107,11 +107,6 @@ function writeConfig( }); const config = configTemplate - .replace( - '%CI_MAX_WORKERS%\n', - // On CI, we seem to need to limit workers. - process.env.CI ? 'server.max_workers=4\n' : '', - ) .replace('%REACT_RENDERER_FLOW_OPTIONS%', moduleMappings.trim()) .replace('%REACT_RENDERER_FLOW_IGNORES%', ignoredPaths.join('\n')) .replace('%FLOW_VERSION%', flowVersion);