VReplication: Get workflowFlavorVtctl endtoend testing working properly again#15636
Merged
deepthi merged 3 commits intovitessio:mainfrom Apr 4, 2024
Merged
Conversation
Signed-off-by: Matt Lord <mattalord@gmail.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
|
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 <mattalord@gmail.com>
Signed-off-by: Matt Lord <mattalord@gmail.com>
mattlord
commented
Apr 4, 2024
| // 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, |
Member
Author
There was a problem hiding this comment.
This is a copy of what tstWorkflowExec() was prior to #15579
rohit-nayak-ps
approved these changes
Apr 4, 2024
deepthi
approved these changes
Apr 4, 2024
vitess-bot
pushed a commit
that referenced
this pull request
Apr 4, 2024
…ly again (#15636) Signed-off-by: Matt Lord <mattalord@gmail.com>
frouioui
approved these changes
Apr 4, 2024
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
After #15579 the tests that used functions in the
resharding_workflows_v2_testfile (primarilytstWorkflowExec()) and supported two client flavors —vtctl[client]andvtctld[client], doing both or choosing one randomly — were really usingvtctldclientin 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 thecurrentWorkflowTypetoMoveTablesso the command did aReshardinstead as that's the default. For example, I noticed that theTestFKWorkflowtest (which is executed in thevreplication_cellaliasworkflow) 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 beingvtctlandvtctldhere (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