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 pipeline gate rerunning #1854

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Fix pipeline gate rerunning #1854

merged 1 commit into from
Feb 5, 2025

Conversation

michaeljguarino
Copy link
Member

This logic was actually backwards, causing pipelines to repromo gates continuously until satisfied. the correct logic is to only reopen them if they haven't yet been opened during the promotion. Also added a test (which wasn't done originally for this to cut corners).

Test Plan

unit tests

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.

@michaeljguarino michaeljguarino added the bug-fix This pull request fixes a bug label Feb 5, 2025
@michaeljguarino michaeljguarino requested a review from a team February 5, 2025 03:44
@michaeljguarino michaeljguarino force-pushed the pipeline-job-rerun branch 2 times, most recently from 5d5549c to 13672f4 Compare February 5, 2025 15:02
Copy link
Member

Choose a reason for hiding this comment

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

Should it be removed? Does it open PRs too often?

This logic was actually backwards, causing pipelines to repromo gates continuously until satisfied.  the correct logic is to only reopen them if they haven't yet been opened during the promotion.  Also added a test (which wasn't done originally for this to cut corners).
@michaeljguarino michaeljguarino merged commit 0110063 into master Feb 5, 2025
8 checks passed
@michaeljguarino michaeljguarino deleted the pipeline-job-rerun branch February 5, 2025 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix This pull request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants