Skip to content

Commit

Permalink
Merge #100785
Browse files Browse the repository at this point in the history
100785: kvserver: skip replicate queue tests under metamorphic builds r=AlexTalks a=AlexTalks

This modifies `TestReplicateQueueDecommissioningNonVoters` to be skipped specifically under metamorphic builds because this may enable mux range feeds, which are not currently working in these test builds (#100783). Once this issue is resolved and the test can work successfully with mux range feeds, this check should be removed.

Fixes: #99207

Release note: None

Co-authored-by: Alex Sarkesian <[email protected]>
  • Loading branch information
craig[bot] and AlexTalks committed Apr 14, 2023
2 parents 05c5f29 + 8481c26 commit d50149d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kv/kvserver/replicate_queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ func TestReplicateQueueDecommissioningNonVoters(t *testing.T) {
defer log.Scope(t).Close(t)
skip.UnderRace(t, "takes a long time or times out under race")
skip.UnderDeadlockWithIssue(t, 94383)
skip.UnderMetamorphicWithIssue(t, 99207)

ctx := context.Background()

Expand Down
12 changes: 12 additions & 0 deletions pkg/testutils/skip/skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,18 @@ func UnderMetamorphic(t SkippableTest, args ...interface{}) {
}
}

// UnderMetamorphicWithIssue skips this test during metamorphic runs, which are
// tests run with the metamorphic build tag, logging the given issue ID as the
// reason.
func UnderMetamorphicWithIssue(t SkippableTest, githubIssueID int, args ...interface{}) {
t.Helper()
if util.IsMetamorphicBuild() {
t.Skip(append([]interface{}{fmt.Sprintf(
"disabled under metamorphic. issue: https://github.com/cockroachdb/cockroach/issues/%d", githubIssueID,
)}, args...))
}
}

// UnderNonTestBuild skips this test if the build does not have the crdb_test
// tag.
func UnderNonTestBuild(t SkippableTest) {
Expand Down

0 comments on commit d50149d

Please sign in to comment.