ci: reduce load on pr runs - #1815
Ricardo Salveti (ricardosalveti) merged 2 commits into
Conversation
|
Validating the push run via next: https://github.com/qualcomm-linux/meta-qcom/actions/runs/23570319988 |
|
Viswanath Kraleti (@vkraleti) while we have #1418 for introducing weekly, I wanted to first optimize our prs runs by moving a few to nightly, as the current pr load is way too much. |
Introduce a build profile input field to the reusable build-yocto workflow and use it to skip all debug and performance build combinations when performing CI on PRs. This reduces PR turnaround time while keeping full coverage on push and nightly. Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
Migrate most compile_warm_up tasks to the standard compile matrix as gnerating parallel cache with so many combinations provides little incremental cache benefit while consuming a substantial amount of CI resources. This change should also help reducing the initial load on jobs that are known to fail, since the current nodistro and qcom-distro combination is enough to cover most common problems. This change has no impact to the complete set of runs. Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
b309a8a to
d0f686a
Compare
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: checkout | ||
| if: inputs.profile != 'pr' || (matrix.distro.name != 'debug' && matrix.distro.name != 'performance') |
There was a problem hiding this comment.
can you not use github.event_name here , instead of making an additional inputs?
There was a problem hiding this comment.
For pr, yes, but I was thinking that having an extra argument makes it more explicit and also not bound to a potential event rename. We also expect to have a different permutation between nighly / weekly / monthly as well, so that could use the same input variable.
Test run workflowTest jobs for commit d0f686a
All jobs summary
|
Test Results 28 files 28 suites 1h 3m 11s ⏱️ For more details on these failures, see this check. Results for commit d0f686a. |
79f43d9
into
qualcomm-linux:master
Reduce the load on our PR runs by reducing the amount of warm_up runs (for better cache usage) and skipping debug and performance builds.
Debug builds are only consumed from nightly runs and performance has no major difference from the normal build, so an extra run to catch possible issues there is not that useful in the end.