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

Always run eamxx workflows on PRs #3100

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

bartgol
Copy link
Contributor

@bartgol bartgol commented Nov 6, 2024

Jobs can be skipped if paths touched are non-eamxx, but at least they will appear on PR checks. This makes branch protection rules easier to implement, since we can set eamxx checks as REQUIRED (since they will always be there)

@bartgol bartgol requested review from jgfouca and mahf708 November 6, 2024 16:52
@bartgol bartgol self-assigned this Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch 2 times, most recently from 0420238 to d2e869b Compare November 6, 2024 17:06
mahf708
mahf708 previously approved these changes Nov 6, 2024
.github/workflows/eamxx-sa-testing.yml Outdated Show resolved Hide resolved
.github/workflows/eamxx-sa-testing.yml Outdated Show resolved Hide resolved
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch from d2e869b to 096ef56 Compare November 6, 2024 17:15
mahf708
mahf708 previously approved these changes Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch 18 times, most recently from 97f5d30 to a4f4a42 Compare November 6, 2024 21:47
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch from c06fed2 to add709c Compare November 6, 2024 23:22
@bartgol bartgol added CI: workflow change approved Allow testing of PRs that alter a worfklow file and removed CI: workflow change approved Allow testing of PRs that alter a worfklow file labels Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch from add709c to e415048 Compare November 6, 2024 23:23
@bartgol bartgol added CI: workflow change approved Allow testing of PRs that alter a worfklow file and removed CI: workflow change approved Allow testing of PRs that alter a worfklow file labels Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch 3 times, most recently from 3193196 to 9b551ab Compare November 6, 2024 23:35
@bartgol bartgol removed the CI: skip eamxx-all Skip all eamxx testing for this PR label Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch 3 times, most recently from b376a57 to 22692a5 Compare November 6, 2024 23:46
@bartgol bartgol added CI: workflow change approved Allow testing of PRs that alter a worfklow file and removed CI: workflow change approved Allow testing of PRs that alter a worfklow file labels Nov 6, 2024
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch 9 times, most recently from fda2ea8 to 5da234f Compare November 7, 2024 00:12
* Remove check-skip-labels action
* For each eamxx workflow
  * Run a "pre-process" jobs on ubuntu-latest to
    - retrieve labels
    - check touched files
    Then, add skip logic to other jobs to avoid running unnecessarily
    if certain labels are found or touched files are irrelevant
@bartgol bartgol force-pushed the bartgol/workflows/always-run-eamxx-workflows branch from 5da234f to 9b3ae78 Compare November 7, 2024 00:13
@bartgol
Copy link
Contributor Author

bartgol commented Nov 7, 2024

@mahf708 I think the current version is the best I could do. It does the job, and we may even use it down the road to avoid starting the jobs if the triggering user does not have the necessary permissions.

The down side (super minor) is that we add an extra check to the PR for each workflow.

Copy link
Contributor

@mahf708 mahf708 left a comment

Choose a reason for hiding this comment

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

🎉

@bartgol bartgol merged commit 48dbbfb into master Nov 7, 2024
18 checks passed
@bartgol bartgol deleted the bartgol/workflows/always-run-eamxx-workflows branch November 7, 2024 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: workflow change approved Allow testing of PRs that alter a worfklow file testing workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants