-
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
[release-19.0] Backport testing for new semi-sync plugin #15806
[release-19.0] Backport testing for new semi-sync plugin #15806
Conversation
There are upgrade / downgrade tests that run against a newer version from `main` on the `release-19.0` branch. That means those have the new plugin loaded and these endtoend tests need to be able to check both also for the `release-19.0` branch. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
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
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-19.0 #15806 +/- ##
================================================
- Coverage 67.45% 67.45% -0.01%
================================================
Files 1560 1560
Lines 192777 192777
================================================
- Hits 130041 130040 -1
- Misses 62736 62737 +1 ☔ View full report in Codecov by Sentry. |
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.
In general, we deal with upgrade/downgrade tests by writing code that is conditional on the binary version. This implementation is fine though because it will actually work on older versions of Vitess/MySQL as well.
@@ -669,30 +680,60 @@ func assertNodeCount(t *testing.T, result string, want int) { | |||
assert.Equal(t, want, got) | |||
} | |||
|
|||
// CheckDBvar checks the db var | |||
func CheckDBvar(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, variable string, status string) { | |||
func CheckSemisyncEnabled(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { |
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.
func CheckSemisyncEnabled(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { | |
func CheckSemiSyncEnabled(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { |
} | ||
|
||
// CheckDBstatus checks the db status | ||
func CheckDBstatus(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, variable string, status string) { | ||
func CheckSemisyncStatus(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { |
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.
func CheckSemisyncStatus(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { | |
func CheckSemiSyncStatus(ctx context.Context, t *testing.T, tablet *cluster.Vttablet, enabled bool) { |
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
Added to #15804 since it's causing issues there too and we want to merge that one anyway. |
There are upgrade / downgrade tests that run against a newer version from
main
on therelease-19.0
branch. That means those have the new plugin loaded and these endtoend tests need to be able to check both also for therelease-19.0
branch.Related Issue(s)
See also the failures in #15804
Checklist