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 glooctl check test flake #10615

Merged
merged 5 commits into from
Feb 14, 2025
Merged

Conversation

arianaw66
Copy link

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:

Checking Proxies... Skipping due to an error in checking deployments
Skipping due to an error in checking deployments

With this change, it will instead include:

Checking Proxies... Skipping due to an error in checking deployments
Checking xds metrics... Skipping due to an error in checking deployments

If the check has no issues, it will include:

Checking Proxies... OK
Checking xds metrics... OK

With an open source installation, it will instead include:

Checking Proxies... OK
Checking xds metrics... No xds metrics to check

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/6619

Copy link

github-actions bot commented Feb 14, 2025

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

Comment on lines 55 to 59
if len(metrics) == 0 {
fmt.Println("No xds metrics to check")
} else {
fmt.Println("OK")
}
Copy link
Collaborator

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

Copy link
Author

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?

@soloio-bulldozer soloio-bulldozer bot merged commit 108c680 into main Feb 14, 2025
20 checks passed
@soloio-bulldozer soloio-bulldozer bot deleted the fix_glooctl-check_test-flake branch February 14, 2025 19:59
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.

3 participants