Repository navigation
CI Add GHA aggregate job - #33508
CI Add GHA aggregate job#33508
Conversation
|
Thanks for the PR! Can you explain what your last commit does. It doesn't really seem necessary and introduce unrelated changes. Can you also explain how you tested your changes? |
|
Thanks for the review! The last commit adds the allowed-failures parameter to the re-actors/alls-green step in the all-tests job. During testing of the workflow on my fork, I observed that the free-threaded and scipy-dev jobs were sometimes skipped depending on the workflow conditions. Since these jobs are optional in the CI matrix, the aggregator job was failing because alls-green treats skipped jobs as failures by default. Adding: How I tested the changes
Please let me know if you would prefer a different approach to handle optional jobs or if the aggregator should only depend on required jobs instead. |
|
Can you use Please also revert your unrelated changes, for example changing single quotes in double quotes or removing spaces. The diff should only be the addition of the |
|
Thanks for the suggestion! I updated the configuration to use I also reverted unrelated formatting changes so that the diff only contains the Please let me know if anything else should be adjusted. |
| check-job-statuses: | ||
| name: Check all job statuses | ||
| runs-on: ubuntu-latest | ||
| if: always() |
There was a problem hiding this comment.
We should probably restrict this to only run in the main repo as well. I keep getting errors emails from my fork because other (required) jobs are skipped there by default.
| if: always() | |
| if: always() && github.repository == 'scikit-learn/scikit-learn' |
@sauravyadav1008, would you be interested in adding this in a follow-up PR?
There was a problem hiding this comment.
Thanks, that makes sense. I can add this in a follow-up PR.
Fixes #33438
This PR adds an aggregating GitHub Actions job (
all-tests) to summarize thestatus of all unit test related jobs in the CI workflow.
The goal is to provide a single stable CI check that can be used as a required
status check instead of relying on multiple individual job names, which can be
brittle if jobs are renamed.
The new job depends on the following jobs:
The
all-testsjob uses there-actors/alls-greenGitHub Action to aggregatethe results of these jobs. The job succeeds only if all required jobs succeed
and fails if any of them fail. Skipped jobs are handled correctly by the action.
This provides a single aggregated CI status that can be used as a required
check for pull requests.
I used AI assistance for:
Please let me know if the set of dependent jobs should be adjusted or if the
aggregating job should be placed in a different workflow.