-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Examples: Correct VTAdmin Discovery File Path And Add Check #12415
Merged
mattlord
merged 5 commits into
vitessio:release-16.0
from
planetscale:examples_vtadmin_discovery_fix
Feb 22, 2023
Merged
Examples: Correct VTAdmin Discovery File Path And Add Check #12415
mattlord
merged 5 commits into
vitessio:release-16.0
from
planetscale:examples_vtadmin_discovery_fix
Feb 22, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Matt Lord <mattalord@gmail.com>
mattlord
added
Component: VTAdmin
VTadmin interface
Component: Examples
Forwardport to: main
This will forward port the PR to the main branch
labels
Feb 21, 2023
vitess-bot
bot
added
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
labels
Feb 21, 2023
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
notfelineit
approved these changes
Feb 21, 2023
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.
Nice, love the added check 🥳
mattlord
removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
labels
Feb 21, 2023
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
GuptaManan100
approved these changes
Feb 22, 2023
mattlord
added a commit
that referenced
this pull request
Feb 22, 2023
…12415) (#12430) * Examples: correct VTAdmin discovery file path and add check Signed-off-by: Matt Lord <mattalord@gmail.com> * Remove jq dependency Signed-off-by: Matt Lord <mattalord@gmail.com> * vtadmin examples scripts hardcode localhost Signed-off-by: Matt Lord <mattalord@gmail.com> * Fix errant expectation Signed-off-by: Matt Lord <mattalord@gmail.com> * Adjust healthy shard indicator Signed-off-by: Matt Lord <mattalord@gmail.com> --------- Signed-off-by: Matt Lord <mattalord@gmail.com> Co-authored-by: Matt Lord <mattalord@gmail.com>
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Component: Examples
Component: VTAdmin
VTadmin interface
Forwardport to: main
This will forward port the PR to the main branch
Type: Bug
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
VTAdmin failing to discover the Vitess cluster in the local examples was reported in the Vitess Slack.
This was caused by the relative path usage missed as part of the refactoring done in: #12239
And this was easily missed because there was no check done to confirm proper discovery and thus the local examples CI tests did not fail.
In this PR we correct the static discovery file path AND add a check to ensure that the discovery was successful and if not, we exit with an error (which would cause the tests to fail).
Related Issue(s)
Checklist