Skip to content

Commit

Permalink
Merge #128796
Browse files Browse the repository at this point in the history
128796: sqlproxyccl: skip TestFailedConnection under stress r=jeffswenson a=jeffswenson

This test occasionally flakes under stress. I've been unable to reproduce the flake. The nature of the test asserting on counters and error messages makes it difficult to make the test more robust by inserting retries.

Fixes: #125741

Co-authored-by: Jeff Swenson <[email protected]>
  • Loading branch information
craig[bot] and jeffswenson committed Sep 9, 2024
2 parents d57f74e + cff3e69 commit 50ab1fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ccl/sqlproxyccl/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ go_test(
"//pkg/testutils",
"//pkg/testutils/datapathutils",
"//pkg/testutils/serverutils",
"//pkg/testutils/skip",
"//pkg/testutils/sqlutils",
"//pkg/testutils/testcluster",
"//pkg/util/leaktest",
Expand Down
6 changes: 6 additions & 0 deletions pkg/ccl/sqlproxyccl/proxy_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/datapathutils"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
"github.com/cockroachdb/cockroach/pkg/util/log"
Expand Down Expand Up @@ -640,6 +641,11 @@ func TestFailedConnection(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

// This test is asserting against specific counter values and error messages.
// The counter assertions make it difficult to insert retries and the test
// flakes once a month under stress.
skip.UnderStress(t)

ctx := context.Background()
te := newTester()
defer te.Close()
Expand Down

0 comments on commit 50ab1fe

Please sign in to comment.