Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: aggregate success results into a single job #288

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

CBenoit
Copy link
Member

@CBenoit CBenoit commented Jun 26, 2024

This greatly simplifies the terraform configuration, because we only have to require the "Success" status check. It’s simpler than listing all the checks in terraform which can be sometimes problematic:

  • We need to list all the job names generated using matrix
  • We need to open a PR in infrastructure-as-code AND to deploy the change when we change / add / remove a job

Here, we just list the required jobs directly as dependencies of the success job, without having to modify multiple repositories. Job dependencies also does not use the job names, but the job "key", so there is much less things to enumerate. Less error prone overall.

This greatly simplifies the terraform configuration, because we only
have to require the "Success" status check. It’s simpler than listing
all the checks in terraform which can be sometimes problematic:

- We need to list all the job names generated using `matrix`
- We need to open a PR in infrastructure-as-code AND to deploy the
  change when we change / add / remove a job

Here, we just list the required jobs directly as dependencies of the
`success` job, without having to modify multiple repositories. Job
dependencies also does not use the job names, but the job "key", so
there is much less things to enumerate. Less error prone overall.
@CBenoit CBenoit requested review from a team as code owners June 26, 2024 04:14
@CBenoit CBenoit enabled auto-merge (squash) June 26, 2024 04:15
@CBenoit CBenoit merged commit dce7a3c into master Jun 26, 2024
11 checks passed
@CBenoit CBenoit deleted the ci-aggregate-results branch June 26, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants