Replace ErrorContains checks with Error checks before running upgrade downgrade#16688
Merged
GuptaManan100 merged 3 commits intovitessio:mainfrom Sep 2, 2024
Merged
Conversation
…ks to Error checks Signed-off-by: Manan Gupta <manan@planetscale.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Manan Gupta <manan@planetscale.com>
harshit-gangal
approved these changes
Sep 2, 2024
Member
harshit-gangal
left a comment
There was a problem hiding this comment.
There could be a possible use of EqualError as well.
Let's discourage that for end to end test.
Signed-off-by: Manan Gupta <manan@planetscale.com>
Contributor
Author
|
Good point, I updated the PR to also change |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #16688 +/- ##
==========================================
- Coverage 68.95% 68.93% -0.02%
==========================================
Files 1565 1565
Lines 201530 201556 +26
==========================================
- Hits 138957 138943 -14
- Misses 62573 62613 +40 ☔ View full report in Codecov by Sentry. |
systay
approved these changes
Sep 2, 2024
GuptaManan100
added a commit
to planetscale/vitess
that referenced
this pull request
Sep 3, 2024
… downgrade (vitessio#16688) Signed-off-by: Manan Gupta <manan@planetscale.com>
GuptaManan100
added a commit
to planetscale/vitess
that referenced
this pull request
Sep 3, 2024
… downgrade (vitessio#16688) Signed-off-by: Manan Gupta <manan@planetscale.com>
GuptaManan100
added a commit
to planetscale/vitess
that referenced
this pull request
Sep 3, 2024
… downgrade (vitessio#16688) Signed-off-by: Manan Gupta <manan@planetscale.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
This PR replaces the
ErrorContainschecks to just check for anErrorinstead while running upgrade downgrade tests. This is required because we don't guarantee that errors will be the same across different vitess version.The workings of the changes can be seen in the workflow run https://github.com/vitessio/vitess/actions/runs/10630690740/job/29470087067?pr=16688 in the
Convert ErrorContains to Error checksstep. I am copying a snippet so that it can be seen directly here -This change is required so that we can get this CI check to work https://github.com/vitessio/vitess/actions/runs/10488116666/job/29052695413?pr=16619. This works in conjunction with #16672 that fixes some anti-patterns in the test.
Related Issue(s)
Checklist
Deployment Notes