Skip to content

spanconfigsqlwatcher: deflake TestSQLWatcherOnEventError#99745

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:deflake-TestSQLWatcherOnEventError
Mar 28, 2023
Merged

spanconfigsqlwatcher: deflake TestSQLWatcherOnEventError#99745
craig[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:deflake-TestSQLWatcherOnEventError

Conversation

@arulajmani
Copy link
Copy Markdown
Collaborator

Previously, this test was setting the no-op checkpoint duration to be
every hour to effectively disable checkpoints. Doing so is integral to
what the test is testing. However, this was a lie, given how util.Every works -- A call to ShouldProcess returns true the very first time.

This patch achieves the original goal by introducing a new testing knob. Previously, the test would fail in < 40 runs locally. Have this running strong for ~1000 runs.

Fixes #76765

Release note: None

Previously, this test was setting the no-op checkpoint duration to be
 every hour to effectively disable checkpoints. Doing so is integral to
what the test is testing. However, this was a lie, given how
`util.Every` works -- A call to `ShouldProcess` returns true the very
first time.

This patch achieves the original goal by introducing a new testing knob.
Previously, the test would fail in < 40 runs locally.  Have this running
strong for ~1000 runs.

Fixes cockroachdb#76765

Release note: None
@arulajmani arulajmani requested a review from irfansharif March 28, 2023 00:13
@arulajmani arulajmani requested a review from a team as a code owner March 28, 2023 00:13
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@arulajmani arulajmani added backport-22.1.x backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only labels Mar 28, 2023
@arulajmani
Copy link
Copy Markdown
Collaborator Author

Thanks!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build failed:

@arulajmani
Copy link
Copy Markdown
Collaborator Author

All flakes, all different, all unrelated.

bors r+

@craig craig bot merged commit 0745cd4 into cockroachdb:master Mar 28, 2023
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 28, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pkg/ccl/spanconfigccl/spanconfigsqlwatcherccl/spanconfigsqlwatcherccl_test: TestSQLWatcherOnEventError failed

3 participants