Skip to content

Commit abd7bcd

Browse files
authored
Flow: remove max_workers setting (#25349)
This was added back in #17880 to make CI pass for an unrelated change. This limits the max worker setting to CI environments as removing the setting completely still seems to break on CircleCI.
1 parent 8ee4f52 commit abd7bcd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scripts/flow/config/flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
untyped-type-import=error
4040

4141
[options]
42-
server.max_workers=4
42+
%CI_MAX_WORKERS%
4343
esproposal.class_static_fields=enable
4444
esproposal.class_instance_fields=enable
4545
esproposal.optional_chaining=enable

scripts/flow/createFlowConfigs.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ function writeConfig(renderer, rendererInfo, isServerSupported) {
4545
});
4646

4747
const config = configTemplate
48+
.replace(
49+
'%CI_MAX_WORKERS%\n',
50+
// On CI, we seem to need to limit workers.
51+
process.env.CI ? 'server.max_workers=4\n' : '',
52+
)
4853
.replace(
4954
'%REACT_RENDERER_FLOW_OPTIONS%',
5055
`

0 commit comments

Comments
 (0)