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(promo): record failure message for Argo CD Application #2179

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

hiddeco
Copy link
Contributor

@hiddeco hiddeco commented Jun 19, 2024

This addresses #2162, which unlike the issue indicates, never actually worked in any Kargo version.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
@hiddeco hiddeco requested a review from a team as a code owner June 19, 2024 13:09
@hiddeco hiddeco changed the title fix(promo): record failure msg for Argo CD App fix(promo): record failure message for Argo CD Application Jun 19, 2024
Copy link

netlify bot commented Jun 19, 2024

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

Name Link
🔨 Latest commit 8369945
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/6672d87b0235b90008adbe5b
😎 Deploy Preview https://deploy-preview-2179.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 Jun 19, 2024

Codecov Report

Attention: Patch coverage is 30.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 46.31%. Comparing base (f211d9e) to head (8369945).
Report is 6 commits behind head on main.

Files Patch % Lines
internal/controller/promotion/argocd.go 30.00% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2179      +/-   ##
==========================================
- Coverage   46.37%   46.31%   -0.06%     
==========================================
  Files         242      242              
  Lines       16737    16763      +26     
==========================================
+ Hits         7761     7763       +2     
- Misses       8606     8629      +23     
- Partials      370      371       +1     

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

@@ -156,6 +157,16 @@ func (a *argoCDMechanism) Promote(
logger.Info(err.Error())
}
if phase.Failed() {
// Record the reason for the failure if available.
if app.Status.OperationState != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This piggybacks on the fact that we short-circuit. In the initial version, I collected the messages together with the phases. But this grew into something unnecessarily complex and over-engineered, which I would like to avoid as long as we do not need it.

@krancour
Copy link
Member

which unlike the issue indicates, never actually worked in any Kargo version.

My apologies on that. I think the memory of seeing error messages surface in the status and the UI fooled me into believing I'd seen the same of failure messages.

@krancour krancour added this to the v0.8.0 milestone Jun 19, 2024
@hiddeco hiddeco added this pull request to the merge queue Jun 19, 2024
Merged via the queue into akuity:main with commit cc9f958 Jun 19, 2024
22 of 24 checks passed
@hiddeco hiddeco deleted the promotion-failure-msg branch June 19, 2024 15:11
rbreeze pushed a commit that referenced this pull request Jun 24, 2024
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
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.

2 participants