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(promotion): wait for open pull request #2451

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Aug 21, 2024

This addresses the immediate issue (fixes #2450), by ensuring the Phase of the Promotion is set to Running for as long as a pull request is open.

However, I do feel this is the result of us not taking a defensive approach when composing the Phase the Promotion is in, by assuming a Promotion to be Successful (in multiple places) until we are told it isn't.

The less error prone approach would be to assume the opposite, but this is arguably much more difficult to achieve.

This addresses the immediate issue, by ensuring the Phase of the
Promotion is set to Running for as long as a pull request is open.

However, I do feel this is the result of us not taking a defensive
approach when composing the Phase the Promotion is in, by assuming
a Promotion to be Successful (in multiple places) until we are told
it isn't.

The less error prone approach would be to assume the opposite, but
this is arguably much more difficult to achieve.

Signed-off-by: Hidde Beydals <[email protected]>
Copy link

netlify bot commented Aug 21, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit 7aaf673
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/66c5c643d5227a0008c2b4c4
😎 Deploy Preview https://deploy-preview-2451.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 48.44%. Comparing base (7aa7889) to head (7aaf673).
Report is 1 commits behind head on main.

Files Patch % Lines
internal/controller/promotion/pullrequest.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2451      +/-   ##
==========================================
- Coverage   48.44%   48.44%   -0.01%     
==========================================
  Files         246      246              
  Lines       17724    17726       +2     
==========================================
  Hits         8587     8587              
- Misses       8711     8713       +2     
  Partials      426      426              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@krancour krancour added this to the v0.8.6 milestone Aug 21, 2024
@hiddeco hiddeco added this pull request to the merge queue Aug 21, 2024
Merged via the queue into akuity:main with commit bab3322 Aug 21, 2024
27 of 28 checks passed
@hiddeco hiddeco deleted the fix-pr-mechanism branch August 21, 2024 16:37
github-actions bot pushed a commit that referenced this pull request Aug 21, 2024
Signed-off-by: Hidde Beydals <[email protected]>
(cherry picked from commit bab3322)
@akuitybot
Copy link

Successfully created backport PR for release-0.8:

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

Successfully merging this pull request may close these issues.

pullRequest promotions no longer wait for PRs to close/merge
3 participants