Skip to content

Commit

Permalink
Merge #104601
Browse files Browse the repository at this point in the history
104601: upgrademanager: deflake TestConcurrentMigrationAttempts r=rafiss a=rafiss

fixes #101021

This test was flaky since due to a pretty edge-casey interaction with the upgrade that adds the system.job_info table. It does not seem worth debugging that interaction further, since the purpose of this test is to test the concurrency of the upgrade framework, not any specific upgrade. In fact, the only reason this test uses "real" upgrades is due to a limitation in the `MakeTestingClusterSettingsWithVersions` function.

So instead, we'll just change the test so it doesn't run that problematic upgrade.

Release note: None

Co-authored-by: Rafi Shamim <[email protected]>
  • Loading branch information
craig[bot] and rafiss committed Jun 8, 2023
2 parents cfeb47c + 6b9ec05 commit 84e7dd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion pkg/upgrade/upgrademanager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ go_test(
"//pkg/sql/isql",
"//pkg/testutils",
"//pkg/testutils/serverutils",
"//pkg/testutils/skip",
"//pkg/testutils/sqlutils",
"//pkg/testutils/testcluster",
"//pkg/upgrade",
Expand Down
4 changes: 1 addition & 3 deletions pkg/upgrade/upgrademanager/manager_external_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql/execinfra"
"github.com/cockroachdb/cockroach/pkg/sql/isql"
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
"github.com/cockroachdb/cockroach/pkg/testutils/testcluster"
"github.com/cockroachdb/cockroach/pkg/upgrade"
Expand Down Expand Up @@ -323,11 +322,10 @@ func TestConcurrentMigrationAttempts(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)

skip.WithIssue(t, 101021, "flaky test")
// We're going to be migrating from the BinaryMinSupportedVersion to imaginary future versions.
current := clusterversion.TestingBinaryMinSupportedVersion
versions := []roachpb.Version{current}
for i := int32(1); i <= 5; i++ {
for i := int32(1); i <= 4; i++ {
v := current
v.Internal += i * 2
versions = append(versions, v)
Expand Down

0 comments on commit 84e7dd8

Please sign in to comment.