Skip to content

Conversation

crenshaw-dev
Copy link
Member

The health check message currently is the message of "whatever condition was observed last," even if the condition health is based on some other condition.

I've changed the health check to quit early if it observes a condition which would make the resource Degraded or Progressing. As a result, it always returns the message most relevant to that condition.

I've updated the test to change the condition order in a way that triggers the bug.

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev crenshaw-dev requested a review from a team as a code owner July 8, 2025 15:08
Copy link

bunnyshell bot commented Jul 8, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.23%. Comparing base (e692a22) to head (2e057bc).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #23691      +/-   ##
==========================================
+ Coverage   60.19%   60.23%   +0.04%     
==========================================
  Files         346      346              
  Lines       59202    59202              
==========================================
+ Hits        35636    35660      +24     
+ Misses      20696    20685      -11     
+ Partials     2870     2857      -13     

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

@rumstead rumstead merged commit 786b24e into argoproj:master Jul 10, 2025
41 of 43 checks passed
@crenshaw-dev
Copy link
Member Author

/cherry-pick release-3.1

@crenshaw-dev
Copy link
Member Author

/cherry-pick release-3.0

@crenshaw-dev crenshaw-dev deleted the fix-crd-health-check-message branch July 10, 2025 13:55
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 10, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 10, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
crenshaw-dev added a commit that referenced this pull request Jul 10, 2025
…23738)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
crenshaw-dev added a commit that referenced this pull request Jul 10, 2025
…23739)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Co-authored-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
enneitex pushed a commit to enneitex/argo-cd that referenced this pull request Aug 24, 2025
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Signed-off-by: enneitex <etienne.divet@gmail.com>
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.

3 participants