Skip to content

Commit

Permalink
*: skip some more tests under race
Browse files Browse the repository at this point in the history
These tests failed in this [invocation](https://tanzanite.cluster.engflow.com/invocations/default/648eced9-d131-48a0-b24e-7bc73e12ae0a).

Epic: CRDB-8308
Release note: None
  • Loading branch information
rickystewart committed Dec 12, 2023
1 parent 08c0e5e commit c1778b7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pkg/ccl/backupccl/restore_span_covering_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql"
"github.com/cockroachdb/cockroach/pkg/sql/execinfrapb"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/util/ctxgroup"
"github.com/cockroachdb/cockroach/pkg/util/encoding"
"github.com/cockroachdb/cockroach/pkg/util/hlc"
Expand Down Expand Up @@ -722,6 +723,8 @@ func sanityCheckFileIterator(

//lint:ignore U1000 unused
func runTestRestoreEntryCover(t *testing.T, numBackups int) {
skip.UnderRace(t, "probable OOM")

r, _ := randutil.NewTestRand()
ctx := context.Background()
tc, _, _, cleanupFn := backupRestoreTestSetup(t, singleNode, 1, InitManualReplication)
Expand Down
2 changes: 2 additions & 0 deletions pkg/ccl/importerccl/ccl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ func TestMultiRegionExportImportRoundTrip(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t, "probable OOM")

validateNumRows := func(sqlDB *gosql.DB, tableName string, expected int) {
res := sqlDB.QueryRow(fmt.Sprintf(`SELECT count(*) FROM %s`, tableName))
require.NoError(t, res.Err())
Expand Down
1 change: 1 addition & 0 deletions pkg/ccl/serverccl/statusccl/tenant_status_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ func TestTenantCannotSeeNonTenantStats(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
skip.UnderStressWithIssue(t, 113984)
skip.UnderRace(t, "may OOM")

ctx := context.Background()
testCluster := serverutils.StartCluster(t, 3 /* numNodes */, base.TestClusterArgs{
Expand Down
2 changes: 2 additions & 0 deletions pkg/kv/kvserver/loqrecovery/server_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ func TestRetrieveApplyStatus(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t, "probable OOM")

ctx := context.Background()

tc, _, _ := prepTestCluster(t, 5)
Expand Down
7 changes: 4 additions & 3 deletions pkg/server/application_api/sql_stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func TestStatusAPITransactions(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t, "test is very slow/may OOM")
skip.UnderDeadlock(t, "test is very slow under deadlock")

testCluster := serverutils.StartCluster(t, 3, base.TestClusterArgs{})
Expand Down Expand Up @@ -514,7 +515,7 @@ func TestStatusAPICombinedStatementsWithFullScans(t *testing.T) {
if skip.Stress() {
additionalTimeout = additionalTimeoutUnderStress
}
skip.UnderStressRace(t, "test is too slow to run under race")
skip.UnderRace(t, "test is too slow to run under race")

// Aug 30 2021 19:50:00 GMT+0000
aggregatedTs := int64(1630353000)
Expand Down Expand Up @@ -691,7 +692,7 @@ func TestStatusAPICombinedStatements(t *testing.T) {
defer log.Scope(t).Close(t)

// Resource-intensive test, times out under stress.
skip.UnderStressRace(t, "expensive tests")
skip.UnderRace(t, "expensive tests")

// Aug 30 2021 19:50:00 GMT+0000
aggregatedTs := int64(1630353000)
Expand Down Expand Up @@ -864,7 +865,7 @@ func TestStatusAPIStatementDetails(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
// The liveness session might expire before the stress race can finish.
skip.UnderStressRace(t, "expensive tests")
skip.UnderRace(t, "expensive tests")

// Aug 30 2021 19:50:00 GMT+0000
aggregatedTs := int64(1630353000)
Expand Down
2 changes: 2 additions & 0 deletions pkg/sql/sqlstats/persistedsqlstats/datadriven_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ func TestSQLStatsDataDriven(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderRace(t)

stubTime := &stubTime{}
injector := newRuntimeKnobsInjector()

Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/sqlstats/persistedsqlstats/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestSQLStatsWithMultipleIdxRec(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.UnderStressRace(t, "expensive tests")
skip.UnderRace(t, "expensive tests")

fakeTime := stubTime{
aggInterval: time.Hour,
Expand Down

0 comments on commit c1778b7

Please sign in to comment.