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

Speedup new vttestserver tests #8229

Merged
merged 3 commits into from
Jun 2, 2021

Conversation

mcronce
Copy link

@mcronce mcronce commented Jun 1, 2021

Description

The tests added in #8177 substantially increases the time required to run that test suite (on the order of 20-40 seconds) because of all the additional spinup/teardown cycles; this combines the new tests into a single spinup/teardown cycle. It reduces readability a bit (IMO) but given the amount of time it saves, I think it's a worthwhile trade.

Related Issue(s)

#8177

Checklist

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

Deployment Notes

N/A

@mcronce mcronce marked this pull request as draft June 1, 2021 18:41
…nd TestDDLModes() into a single TestForiegnKeysAndDDLModes() to reduce the number of cluster spinup/teardown cycles we need to do

Signed-off-by: Mike Cronce <mc@planetscale.com>
@mcronce mcronce force-pushed the speedup-new-vttestserver-tests branch from 32d5835 to 771128d Compare June 1, 2021 18:41
Mike Cronce added 2 commits June 1, 2021 14:51
…): Why did I have semicolons in these SET queries?

Signed-off-by: Mike Cronce <mc@planetscale.com>
…): Cleanup meaningless assignments

Signed-off-by: Mike Cronce <mc@planetscale.com>
@mcronce mcronce marked this pull request as ready for review June 1, 2021 20:06
@mcronce mcronce requested review from deepthi and dkhenry June 1, 2021 20:06
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.

LGTM

@systay systay merged commit b7f9e56 into vitessio:main Jun 2, 2021
@systay systay deleted the speedup-new-vttestserver-tests branch June 2, 2021 05:08
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.

None yet

4 participants