Skip to content
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

EndtoEnd test cases in Go migrated from Python #5513

Merged
merged 43 commits into from
Dec 10, 2019

Conversation

ajeetj
Copy link
Contributor

@ajeetj ajeetj commented Dec 5, 2019

Below are the list of tests that we have migrated so far.

  • Keyspace tests
  • mysqlctl tests
  • sharded tests
  • tabletmanager tests
    • commands
    • custom rule
    • lock unlock
    • qps
    • health check
    • security policy
  • vtgate tests
    • buffer
    • schema
    • sequence
    • transaction
    • vschema
  • improvement in clusterTest

@ajeetj ajeetj requested a review from sougou as a code owner December 5, 2019 15:53
@deepthi
Copy link
Member

deepthi commented Dec 6, 2019

rebase will fix the unit test. Not sure why cluster_endtoend is failing.

@morgo
Copy link
Contributor

morgo commented Dec 9, 2019

@ajeetj can you move the obsolete python tests to shard 5 in test/config.json? That way we can track what has migrated. Although I would like to delete them pretty soon if the Go tests are stable.

@ajeetj
Copy link
Contributor Author

ajeetj commented Dec 9, 2019

@ajeetj can you move the obsolete python tests to shard 5 in test/config.json? That way we can track what has migrated. Although I would like to delete them pretty soon if the Go tests are stable.

@morgo Yes will do that today. I am planning a separate PR for that. Do you think we should put in this PR itself?

@morgo
Copy link
Contributor

morgo commented Dec 9, 2019

I think it is easier for reviewers to see the old files disabled in the same PR. That way it's easy to understand it's a 1:1 replacement, and not a subset.

@ajeetj
Copy link
Contributor Author

ajeetj commented Dec 9, 2019

@systay Address your comment

@morgo Updated the config.json file. Unit tests are failing after I pushed my changes. Can you re-run them? (I do not have access to rerun)

@sougou Can you please review this PR?

@sougou
Copy link
Contributor

sougou commented Dec 9, 2019

Looking good. I'll merge once you fix the DCO.

rafael and others added 11 commits December 10, 2019 13:21
* Adds support for VStream to start from filename:pos and not gtid sets.
* Adds support for statement based replication streams (this should only be used
  in the context of mysql streamer, it is not safe for tablet vreplicaiton).
* Adds support to run vstream from mysql directly

Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* Adds binary to run vtshovel.
* At the moment only working in ephemeral mode (i.e no data is persisted back to
  vrsettings).
* vtshovel only works for statement based replication right now. This is due to
  now having a good way to have a schema loader. We will itereate on this.

Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* At the moment we only support erpel user. Passing source conn params around
was adding unnecessary complexity.
* This cleans up that and makes it more explicit that only erepl user is
supported. In the future we will add more flexibility in terms of what kind of
users can be configured for external vreplication streams

Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* Fix typo in some comments.
* Make VReplicator private again. This change is no longer needed. Originally we
wanted "vtshovel" to be an external process. Given that this now hooks into the
existent engine, there is no need to make this public.

Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Morgan Tocker <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
saurabh408 and others added 23 commits December 10, 2019 13:21
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
TabletManager remaining test cases in GO
Signed-off-by: Ajeet jain <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* moved sql start to non-blocking mode

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* tabletmanager lock unlock table test case

Signed-off-by: Ajeet jain <[email protected]>

Signed-off-by: Arindam Nayak <[email protected]>
* converted vtctld_test.py to go

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* migrated one of testcase from schema.py to schema_test.go

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* converted tabletmanager test cases to go

Signed-off-by: Ajeet jain <[email protected]>

Signed-off-by: Arindam Nayak <[email protected]>
* ported testcase of keyspace_test.py

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* Converted sharded test from py to go

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: saurabh <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
TabletManager remaining test cases in GO
Signed-off-by: Ajeet jain <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
* moved sql start to non-blocking mode

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Ajeet jain <[email protected]>

* readme for go endtoend test cases

Signed-off-by: Ajeet jain <[email protected]>

* Update README.md

Signed-off-by: Arindam Nayak <[email protected]>
Signed-off-by: Arindam Nayak <[email protected]>
@ajeetj
Copy link
Contributor Author

ajeetj commented Dec 10, 2019

Looking good. I'll merge once you fix the DCO.

@sougou DCO is fixed.
Can you please merge this PR?

@morgo morgo merged commit 6439799 into vitessio:master Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants