Skip to content

Commit

Permalink
Flow: remove max_workers setting (#25349)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kassens authored Sep 29, 2022
1 parent 8ee4f52 commit abd7bcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/flow/config/flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
untyped-type-import=error

[options]
server.max_workers=4
%CI_MAX_WORKERS%
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
esproposal.optional_chaining=enable
Expand Down
5 changes: 5 additions & 0 deletions scripts/flow/createFlowConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ function writeConfig(renderer, rendererInfo, isServerSupported) {
});

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%',
`
Expand Down

0 comments on commit abd7bcd

Please sign in to comment.