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

fix(mergify): Mergify config needs adjusting for latest mergify releases #6321

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jasonmcintosh
Copy link
Member

Couple of changes & new features:

  • Moved the check-success conditions up. NOTE: We're NOT checking the integration tests - and probably should be on these. I didn't change that open to doing so
  • Added an auto update a PR with latest changes from head rule. This would help keep PRs up-to-date
  • An auto merge back ports rule. This way back ports from mergify will auto merge post passing build checks.
  • Added a reviewer count check as well

@jasonmcintosh
Copy link
Member Author

To note I see this as mostly the same that should be applied across ALL spinnaker projects.. Post-discussion here, will create additional PRs.

@dbyron-sf
Copy link
Contributor

Any links to mergify docs/announcements about the changes?

@jasonmcintosh
Copy link
Member Author

https://changelog.mergify.com/ they've got a LARGE changelog. https://docs.mergify.com/configuration/file-format/#queue-rules has some of this including some of the deprecated fields that are going away.

- status-success=build
merge_method: squash
queue_conditions:
- check-success=build
Copy link
Member Author

Choose a reason for hiding this comment

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

One bizarre thing: I couldn't find the previous "status-success" field anyplace in mergify docs...

Copy link
Member Author

Choose a reason for hiding this comment

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

Mergifyio/mergify#2039 only place I found which had me wondering if something was "off" for a long time :(

@jasonmcintosh
Copy link
Member Author

Added the it-test checks. Matrix builds.. apparently cause major headaches for mergify :(

@jasonmcintosh
Copy link
Member Author

Additionally can test any flows, conditions, etc. via their simulator: https://dashboard.mergify.com/workflow-automation?repository=clouddriver&login=spinnaker

.mergify.yml Outdated Show resolved Hide resolved
- check-success=it-test
merge_conditions:
- check-success=build
- check-success=it-test
Copy link
Member Author

Choose a reason for hiding this comment

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

I WILL note - mergify obeys/automatically checks branch protection rules, aka... if we set these in the branch protection rules IN THEORY that should take care of all of this vs. needing to set in the mergify config. These let you adjust and work with branch protection rules, so if we wanted to tweak for additional checks or other stuff we can... I've not seen our branch protection rules to compare though.

conditions:
- status-success=build
merge_method: squash
queue_conditions:
Copy link
Contributor

Choose a reason for hiding this comment

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

From https://docs.mergify.com/configuration/file-format/#queue-rules it looks like we don't need to duplicate queue_conditions in merge_conditions. From https://docs.mergify.com/merge-queue/setup/#configuring-the-merge-queue-rules it looks like we only need one. I'd probably stick with queue_conditions and ditch merge_conditions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants