-
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
VReplication: Get workflowFlavorVtctl endtoend testing working properly again #15636
VReplication: Get workflowFlavorVtctl endtoend testing working properly again #15636
Conversation
Signed-off-by: Matt Lord <[email protected]>
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 @@
## main #15636 +/- ##
=======================================
Coverage 68.13% 68.13%
=======================================
Files 1556 1556
Lines 194984 194984
=======================================
+ Hits 132849 132856 +7
+ Misses 62135 62128 -7 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Matt Lord <[email protected]>
Signed-off-by: Matt Lord <[email protected]>
// tstWorkflowExecVtctl executes a MoveTables or Reshard workflow command using | ||
// vtctlclient. It should operate exactly the same way as tstWorkflowExec, but | ||
// using the legacy client. | ||
func tstWorkflowExecVtctl(t *testing.T, cells, workflow, sourceKs, targetKs, tables, action, tabletTypes, |
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 is a copy of what tstWorkflowExec()
was prior to #15579
…ly again (#15636) Signed-off-by: Matt Lord <[email protected]>
… working properly again (#15636) (#15667) Signed-off-by: Matt Lord <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
… working properly again (#15636) (#15666) Signed-off-by: Matt Lord <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Matt Lord <[email protected]>
Description
After #15579 the tests that used functions in the
resharding_workflows_v2_test
file (primarilytstWorkflowExec()
) and supported two client flavors —vtctl[client]
andvtctld[client]
, doing both or choosing one randomly — were really usingvtctldclient
in both cases.And when the flavor was
vtctl[client]
— both before AND after #15579 — some of the tests failed every time as they did not properly set thecurrentWorkflowType
toMoveTables
so the command did aReshard
instead as that's the default. For example, I noticed that theTestFKWorkflow
test (which is executed in thevreplication_cellalias
workflow) failed every time that the flavor wasvtctl
(the flavor being chosen randomly in that test). This was papered over by our auto retry and the fact that these workflows completed pretty quickly. You can see that test and workflow passing in this PR with the flavor beingvtctl
andvtctld
here (run 11 times in a row): https://github.com/vitessio/vitess/actions/runs/8546382449/job/23416629462?pr=15636This PR corrects both issues so that these tests are properly testing both flavors as expected.
I wanted to backport this to back to v18 as that's where #15579 was backported to, and these are ONLY test/CI changes.
Related Issue(s)
Checklist