Skip to content

Commit

Permalink
Auto merge of #124175 - Kobzol:ci-dynamic-job, r=pietroalbini
Browse files Browse the repository at this point in the history
CI: dynamic jobs

This PR modifies our CI workflows to be dynamic. This means that when a GitHub event is generated, we will run a Python script (`calculate-job-matrix.py`), which decides which CI jobs should be generated. These jobs are defined in `src/ci/github-actions/jobs.yml`).

This should provide a few benefits:
- Once the migration to dynamic jobs is complete, we shouldn't need `expand-yaml-anchors` anymore.
- The job table on PRs (and also the left job column on auto/try builds) should be much cleaner and contain only the jobs that are actually relevant/executed.
- It should be much easier to support dynamic try builds, i.e. to run an arbitrary CI job on a try build.

See [this Zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/job.20matrix.20re-ordered.20PR.20list) for more context.

r? `@ghost`
  • Loading branch information
bors committed Apr 24, 2024
2 parents 29a56a3 + 2632c61 commit e7da0fa
Show file tree
Hide file tree
Showing 5 changed files with 572 additions and 1,002 deletions.
Loading

0 comments on commit e7da0fa

Please sign in to comment.