Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Economize our Cirrus CI builds #2101

Merged
merged 1 commit into from
Aug 20, 2023
Merged

Conversation

asomers
Copy link
Member

@asomers asomers commented Aug 20, 2023

Cirrus CI is eliminating unlimited free open source builds. Open source projects will now be limited to about 16,000 CPU-minutes per month. Tweak our CI configuration to reduce its demands:

  • Eliminate the FreeBSD 12 x86_64, iOS x86_64, macOS x86_64, and Linux powerpc builds. They weren't providing a useful amount of test coverage.
  • Reduce each task to 1 CPU and 2 GB of RAM (but 4 GB for OSX). Our build rarely uses more than a single CPU anyway.
  • Split the tasks up into two groups. The first group of 8 builds contains broad coverage. Most build failures will be caught by one of these tasks. The second group of 29 tasks will only run after the first group completes.

https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/

Cirrus CI is eliminating unlimited free open source builds.  Open source
projects will now be limited to about 16,000 CPU-minutes per month.
Tweak our CI configuration to reduce its demands:

* Eliminate the FreeBSD 12 x86_64, iOS x86_64, macOS x86_64, and Linux
  powerpc builds.  They weren't providing a useful amount of test
  coverage.
* Reduce each task to 1 CPU (except for OSX, where we can't).  Our build
  rarely uses more than a single CPU anyway.
* Split the tasks up into two groups.  The first group of 8 builds
  contains broad coverage.  Most build failures will be caught by one of
  these tasks.  The second group of 29 tasks will only run after the
  first group completes.

https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/
@asomers
Copy link
Member Author

asomers commented Aug 20, 2023

Based on the cumulative build time, I think this PR will reduce each build's CPU-minutes by about 2.3x.

@asomers asomers merged commit 2d18d63 into nix-rust:master Aug 20, 2023
35 checks passed
@asomers asomers deleted the cirrus-economize branch August 20, 2023 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant