fix: Circle CI OOM error when building #651 #655
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Related issue: #651
Build sequentially in CI to avoid OOM error caused by default build parallelization in Circle CI medium Docker instance.
Another fix option discussed: change the resource type on the Circle CI Docker instance to one with more RAM. Removing parallelization allows us to avoid switching resource types and CI plans without much difference in build time.
Implementation strategy and design decisions
Instruct lerna to limit build concurrency to 1 vs. lerna's default, which is based on the underlying CPU & core count.
Examples with steps to reproduce them
Repeatedly re-run build in CircleCI. Observe consistently successful build vs. previous intermittent failures.
Checklist
yarn test
yarn docs
and there were no errors when generating the HTML siteOpen questions
At a later point, provisioning more build resources and re-introducing build parallelization may be prudent. But right now, our build times are short and we do not have a large number of packages to parallelize.