-
Notifications
You must be signed in to change notification settings - Fork 6
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 glooctl check test flake #10615
Fix glooctl check test flake #10615
Conversation
Issues linked to changelog: |
Visit the preview URL for this PR (updated for commit 4757ecc): https://gloo-edge--pr10615-fix-glooctl-check-te-ze2483zb.web.app (expires Fri, 21 Feb 2025 18:42:33 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 77c2b86e287749579b7ff9cadb81e099042ef677 |
if len(metrics) == 0 { | ||
fmt.Println("No xds metrics to check") | ||
} else { | ||
fmt.Println("OK") | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will break glooctl output types right? I think we do that in the out of sync but this will make it always escape the output formats
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. How about now?
Description
This PR excludes the xds-metrics check from glooctl check runs in the e2e glooctl check tests suite to fix enterprise tests that are flaking due to an Envoy bug.
An in-depth explanation and additional context can be found here.
Testing steps
I verified this fix by running the failing enterprise tests on my local and seeing them pass consistently with the fix.
Additional changes
I also made a small improvement to the user-facing
glooctl check
output.If the deployments are not all healthy, the previous output would include:
With this change, it will instead include:
If the check has no issues, it will include:
With an open source installation, it will instead include:
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature works