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

Alter tests to reuse cluster components #8276

Merged
merged 29 commits into from
Jul 8, 2021

Conversation

GuptaManan100
Copy link
Member

@GuptaManan100 GuptaManan100 commented Jun 7, 2021

Description

This PR alters the vtorc tests to reuse the cluster components to speed them up. It also adds an additional test that checks for the failure case of circular replication. i.e. Primary and replica are replicating from each other.

Before the PR
BeforeChange

After the changes
AfterChange

The test time goes from almost 7 minutes to almost 4 minutes which is a 42.8% decrease in runtime.

Related Issue(s)

Checklist

  • Tests were added or are not required
  • Documentation was added or is not required

@GuptaManan100 GuptaManan100 marked this pull request as ready for review June 17, 2021 17:27
@GuptaManan100 GuptaManan100 marked this pull request as draft June 21, 2021 15:23
Copy link
Contributor

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work! Some nits inside

go/test/endtoend/cluster/vtorc_process.go Outdated Show resolved Hide resolved
go/test/endtoend/cluster/vttablet_process.go Outdated Show resolved Hide resolved
go/vt/vtctl/vtctl.go Outdated Show resolved Hide resolved
@GuptaManan100 GuptaManan100 marked this pull request as ready for review July 7, 2021 11:43
Copy link
Contributor

@shlomi-noach shlomi-noach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! 🚀

Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the reduction in test run time :)

go/vt/wrangler/tablet.go Outdated Show resolved Hide resolved
Signed-off-by: GuptaManan100 <[email protected]>
@harshit-gangal harshit-gangal merged commit ce04df8 into vitessio:main Jul 8, 2021
@harshit-gangal harshit-gangal deleted the vtorc-test-rewrite branch July 8, 2021 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants