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

Improvements to CI job generation. #15989

Merged
merged 5 commits into from
Jun 30, 2022
Merged

Conversation

benjyw
Copy link
Sponsor Contributor

@benjyw benjyw commented Jun 29, 2022

  • Refactor out the per-platform job generation.
  • Ensure names are properly platform-qualified.
  • Add a "Merge OK" job that depends on all the other jobs,
    so that branch protection only needs to know about that one,
    instead of an ever changing list of job names.
  • Inject the dep on check_labels automatically, and only
    in PR jobs (cron-triggered jobs don't need this).

@benjyw
Copy link
Sponsor Contributor Author

benjyw commented Jun 29, 2022

Note that the proof of the pudding is in the fact that the generated file diffs are exactly what we expect.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Jun 29, 2022
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Good idea with Merge Ok

- Refactor out the per-platform job generation.
- Ensure names are properly platform-qualified.
- Add a "Merge OK" job that depends on all the other jobs,
  so that branch protection only needs to know about that one,
  instead of an ever changing list of job names.
- Inject the dep on check_labels automatically, and only
  in PR jobs (cron-triggered jobs don't need this).
@benjyw benjyw force-pushed the ci_gen_improvements branch 2 times, most recently from deccf27 to d05e35d Compare June 29, 2022 11:48
@benjyw benjyw merged commit a527c8c into pantsbuild:main Jun 30, 2022
@benjyw benjyw deleted the ci_gen_improvements branch June 30, 2022 16:42
benjyw added a commit to benjyw/pants that referenced this pull request Jul 5, 2022
- Refactor out the per-platform job generation.
- Ensure names are properly platform-qualified.
- Add a "Merge OK" job that depends on all the other jobs,
  so that branch protection only needs to know about that one,
  instead of an ever changing list of job names.
- Inject the dep on check_labels automatically, and only
  in PR jobs (cron-triggered jobs don't need this).
benjyw added a commit that referenced this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants