Hi Lup, It sounds like a good plan. Let's use it as a starting point then we finetune it.
Thanks for looking into it Best regards Alin On Thu, 17 Oct 2024, 08:10 Lee, Lup Yuen, <lu...@appkaki.com> wrote: > Hi All: We have an ultimatum to reduce (drastically) our usage of GitHub > Actions. Or our Continuous Integration will halt totally in Two Weeks. > Here's what I'll implement within 24 hours for `nuttx` and `nuttx-apps` > repos: > > (1) When we submit or update a Complex PR that affects All Architectures > (Arm, RISC-V, Xtensa, etc): CI Workflow shall run only half the jobs. > Previously CI Workflow will run `arm-01` to `arm-14`, now we will run only > `arm-01` to `arm-07`. (This will reduce GitHub Cost by 32%) > > (2) When the Complex PR is Merged: CI Workflow will still run all jobs > `arm-01` to `arm-14` > > (3) For NuttX Admins: We shall have only Four Scheduled Merge Jobs per day. > Which means I shall quickly cancel any Merge Jobs that appear. Then at > 00:00 / 06:00 / 12:00 / 18:00 UTC: I shall restart the Latest Merge Job > that I cancelled. (This will reduce GitHub Cost by 17%) > > (4) macOS and Windows Jobs (msys2 / msvc): They shall be totally disabled > until we find a way to manage their costs. (GitHub charges 10x premium for > macOS runners, 2x premium for Windows runners!) > > We have done an Analysis of CI Jobs over the past 24 hours: > > - Many CI Jobs are Incomplete: We waste GitHub Runners on jobs that > eventually get superseded and cancelled > > - When we Half the CI Jobs: We reduce the wastage of GitHub Runners > > - Scheduled Merge Jobs will also reduce wastage of GitHub Runners, since > most Merge Jobs don't complete (only 1 completed yesterday) > > Please check out the analysis below. And let's discuss further in this > NuttX Issue. Thanks! > > https://github.com/apache/nuttx/issues/14376 > > Lup > > > >> ---------- Forwarded message --------- > >> From: Daniel Gruno <humbed...@apache.org> > >> Date: Wed, Oct 16, 2024 at 12:08 PM > >> Subject: [WARNING] All NuttX builds to be turned off by October 30th > >> UNLESS... > >> To: <priv...@nuttx.apache.org> > >> Cc: ASF Infrastructure <priv...@infra.apache.org> > >> > >> > >> Hello again, NuttX folks. > >> This is a formal notice that your CI builds are far exceeding the > >> maximum resource use set out by our CI policies[1]. As you are currently > >> exceeding your limits by more than 300%[2] and have not shown any signs > >> of decreasing, we will be disabling GitHub Actions for your project on > >> October 30th unless you manage to get the usage under control and below > >> the established limits of 25 full-time runners in a single week. > >> > >> If you have any further questions, feel free to reach out to us at > >> priv...@infra.apache.org > >> > >> With regards, > >> Daniel on behalf of ASF Infra. > >> > >> > >> [1] https://infra.apache.org/github-actions-policy.html > >> [2] https://infra-reports.apache.org/#ghactions&project=nuttx > >> > > >