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

sql: reduce job times for randomized syntax change tests #88535

Merged
merged 1 commit into from
Oct 3, 2022

Conversation

fqazi
Copy link
Collaborator

@fqazi fqazi commented Sep 23, 2022

Fixes: #86366
Fixes #87569

Previously, the exponential back off time for randomized syntax change tests was 20 seconds, which was inappropriate for some randomized tests, since transaction retry errors could lead to schema changes taking a really long time. This could cause the test to fail with timeout errors, since we would incorrectly think that connections were hung. To address this, this patch
makes the exponential back off configurable for the purpose of testing.

Release note: None
Release justification: low risk change to improve test stability

Fixes: cockroachdb#86366, cockroachdb#87569

Previously, the exponential back off time for randomized
syntax change tests was 20 seconds, which was inappropriate
for some randomized tests, since transaction retry errors
could lead to schema changes taking a really long time.
This could cause the test to fail with timeout errors,
since we would incorrectly think that connections were
hung. To address this, this patch
makes the exponential back off configurable for the
purpose of testing.

Release note: None
@fqazi fqazi requested review from a team September 23, 2022 02:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @fqazi)

Copy link
Collaborator

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

heads up, the PR had the line

Fixes: #86366, #87569

in order for the issue auto-closing issue to work correctly, the issue numbers have to be on separate lines. i changed it to:

Fixes: #86366
Fixes #87569

@fqazi
Copy link
Collaborator Author

fqazi commented Oct 3, 2022

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 3, 2022

Build succeeded:

@blathers-crl
Copy link

blathers-crl bot commented Oct 3, 2022

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating PR, but backport branch blathers/backport-deprecate-release-22.1.0-88535 is ready: POST https://api.github.com/repos/cockroachdb/cockroach/pulls: 422 Validation Failed [{Resource:PullRequest Field:base Code:invalid Message:}]

Backport to branch 22.1.0 failed. See errors above.


🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@fqazi
Copy link
Collaborator Author

fqazi commented Oct 3, 2022

blathers backport 22.1

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.

sql/tests: TestRandomSyntaxSchemaChangeDatabase failed sql/tests: TestRandomSyntaxSchemaChangeColumn failed
4 participants