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

chore(ci): refactor to make conditional checks more robust #11558

Closed
wants to merge 1 commit into from

Conversation

Josh-Walker-GM
Copy link
Collaborator

@Josh-Walker-GM Josh-Walker-GM commented Sep 14, 2024

This is a bit of an experiment so expect a couple follow ups and some general churn on this area of code or indeed for this to all just get binned.

The issue we have is that we have required checks for PRs. GitHub requires these checks to run and pass before allowing you to merge (members with permission can of course override but yuck). The issue is that we want to only run a subset of CI based on what changes - e.g. we don't care about code testing if it's just a docs update. However, to meet the GitHub requirement we need a job with that name to run.

Currently we follow some now removed GitHub advice to have a duplicate job with the same name and conditionally either run the job that actually does the tests or the job that simply passes.

It's not possible to have a step within a job short circuit and pass the full job early.

This is still WIP but not marked as draft so I can see what GitHub thinks about merging with the required checks.

@Josh-Walker-GM Josh-Walker-GM added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels Sep 14, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the chore milestone Sep 14, 2024
@Josh-Walker-GM Josh-Walker-GM self-assigned this Sep 14, 2024
@Josh-Walker-GM Josh-Walker-GM force-pushed the jgmw/chore-ci-rework-conditional-logic branch 9 times, most recently from b436d76 to f7b7274 Compare September 15, 2024 00:19
@Josh-Walker-GM Josh-Walker-GM force-pushed the jgmw/chore-ci-rework-conditional-logic branch from f7b7274 to 57aff2d Compare September 15, 2024 00:28
@Josh-Walker-GM Josh-Walker-GM marked this pull request as ready for review September 15, 2024 00:37
@Josh-Walker-GM
Copy link
Collaborator Author

I don't think this actually changes anything.

@Josh-Walker-GM Josh-Walker-GM deleted the jgmw/chore-ci-rework-conditional-logic branch September 15, 2024 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:chore This PR is a chore (means nothing for users)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant