dwyl / learn-travis

:sunglasses: A quick Travis CI (Continuous Integration) Tutorial for Node.js developers
MIT License
1.24k stars 348 forks source link

🤦‍♂️ Builds have been temporarily disabled for private and public repositories ... #67

Open nelsonic opened 2 years ago

nelsonic commented 2 years ago

Just been informed by Travis-CI that Builds are "temporarily disabled" ... (so our PRs are not being tested...)

image

Builds have been temporarily disabled for private and public repositories due to a negative credit balance. 
Please go to the Plan page to replenish your credit balance.

https://app.travis-ci.com/organizations/dwyl/plan image

And yet when I scroll down to the "Usage" section, this is what I see 4,330 Credits Used:

image

This is a Bug on Travis-CI because we clearly have not burned through the 10,000 Credits for the month. But more than that, it's a myopic policy change on Travis-CI's part to cap open source build time. Obviously they have to make money and we aren't paying them anything so it's their choice. But it's really silly because the bigger Open Source projects/orgs who need more than 10,000 Credits will inevitably migrate to use GitHub Actions or GitLab CI instead and they will rapidly lose market share!

1k build minutes might feel like a lot if you only have a handful of projects or don't update them very often. But if you have a project that takes 5 mins to build & test and your CI runs on each commit on a Pull Request, it will only take 200 commits in a month to reach that level. Again that might feel like a big number, but it's not.

There are people who easily average 200 commits/month ... https://git.io/top And there are projects that get regular Pull Requests that will rapidly exhaust 1k build minutes in a month. Imagine a project like Flutter that gets 200+ PRs per month: https://github.com/flutter/flutter/pulls and has to test on all the Operating Systems and Devices ... no chance they could use Travis-CI.

Todo

This looks like a good starting point for Elixir: https://github.com/APB9785/phxBB/blob/master/.github/workflows/elixir.yml

nelsonic commented 2 years ago

Cirrus CI could also be an option: https://cirrus-ci.org/features/ no monthly limit of minutes: 💭 image

nelsonic commented 2 years ago

Example of Node.js project updated to GitHub Actions: https://github.com/dwyl/javascript-todo-list-tutorial/pull/35

nelsonic commented 2 years ago

The legacy Travis-CI build is blocking merging on one of our PRs: https://github.com/dwyl/useful/pull/10

image

The GitHub Actions/Workflows Elixir CI is passing: https://github.com/dwyl/useful/runs/6250359429?check_suite_focus=true image

So at this point Travis-CI is a nuisance. 🤦‍♂️ They have broken their "Open Source is Always Free" promise and removed it from their site. 😢 Given that both GitHub and GitLab include "free" CI now, I feel that it's time we disable Travis-CI.

https://github.com/organizations/dwyl/settings/installations/358412

image

Pulling the trigger ...

image

Yes, it sucks! But I'm just treating this as an Ex Girlfriend and just Moving On! Cue the Break-up songs playlist ...

nelsonic commented 2 years ago

https://github.com/organizations/dwyl/settings/installations image

This is a good lesson in not overly relying on a "Free" service... Maybe we'll write it up some time. 📝