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

Merged
merged 5 commits into from
Jan 3, 2025

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.

@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
.mergify.yml Outdated
- 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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Frankly not sure even need that since branch protection rules SHOULD cover these. IF we have branch rules set ;)

Reduces duplication since the queue_conditions would happen before merge_conditions.
@jasonmcintosh jasonmcintosh added the ready to merge Approved and ready for a merge label Jan 3, 2025
@mergify mergify bot added the auto merged Merged automatically by a bot label Jan 3, 2025
Copy link
Contributor

mergify bot commented Jan 3, 2025

This pull request has been removed from the queue for the following reason: pull request branch update failed.

The pull request can't be updated

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.

If you want to requeue this pull request, you need to post a comment with the text: @mergifyio requeue

@jasonmcintosh jasonmcintosh merged commit 3f43ac2 into spinnaker:master Jan 3, 2025
23 of 25 checks passed
@jasonmcintosh jasonmcintosh deleted the updateMergifyConfig branch January 3, 2025 19:52
@jasonmcintosh
Copy link
Member Author

@Mergifyio backport release-1.36.x release-1.35.x release-1.34.x release-1.33.x

Copy link
Contributor

mergify bot commented Jan 3, 2025

backport release-1.36.x release-1.35.x release-1.34.x release-1.33.x

✅ Backports have been created

@jasonmcintosh
Copy link
Member Author

Can backport more if we really really need, but that should cover a good chunk back.

mergify bot pushed a commit that referenced this pull request Jan 3, 2025
…ses (#6321)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)
mergify bot pushed a commit that referenced this pull request Jan 3, 2025
…ses (#6321)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)
mergify bot pushed a commit that referenced this pull request Jan 3, 2025
…ses (#6321)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)
mergify bot pushed a commit that referenced this pull request Jan 3, 2025
…ses (#6321)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)
mergify bot added a commit that referenced this pull request Jan 3, 2025
…ses (#6321) (#6326)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)

Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request Jan 3, 2025
…ses (#6321) (#6327)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)

Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request Jan 3, 2025
…ses (#6321) (#6328)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)

Co-authored-by: Jason <jason.mcintosh@armory.io>
mergify bot added a commit that referenced this pull request Jan 3, 2025
…ses (#6321) (#6329)

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

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)

Co-authored-by: Jason <jason.mcintosh@armory.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.37
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants