Skip to content

Commit e4fe532

Browse files
craig[bot]iskettaneh
andcommitted
Merge #147634
147634: clusterversion, *: bump MinSupported from v25.1 to v25.2 r=iskettaneh a=iskettaneh Bump MinSupported from v25.1 to v25.2. See individual commits for details. Epic: REL-2848 Release note: None Co-authored-by: Ibrahim Kettaneh <[email protected]>
2 parents 512f3d6 + b56d5d3 commit e4fe532

File tree

89 files changed

+62
-17835
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+62
-17835
lines changed

build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ $exit_status = 0 ]; then
8181
fi
8282

8383
# Generate a corpus for all mixed version variants
84-
for config in local-mixed-25.1 local-mixed-25.2; do
84+
for config in local-mixed-25.2; do
8585
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
8686
//pkg/sql/logictest/tests/$config/... \
8787
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus-mixed \

pkg/BUILD.bazel

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ ALL_TESTS = [
5959
"//pkg/ccl/logictestccl/tests/fakedist-vec-off:fakedist-vec-off_test",
6060
"//pkg/ccl/logictestccl/tests/fakedist:fakedist_test",
6161
"//pkg/ccl/logictestccl/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
62-
"//pkg/ccl/logictestccl/tests/local-mixed-25.1:local-mixed-25_1_test",
6362
"//pkg/ccl/logictestccl/tests/local-mixed-25.2:local-mixed-25_2_test",
6463
"//pkg/ccl/logictestccl/tests/local-read-committed:local-read-committed_test",
6564
"//pkg/ccl/logictestccl/tests/local-repeatable-read:local-repeatable-read_test",
@@ -506,7 +505,6 @@ ALL_TESTS = [
506505
"//pkg/sql/logictest/tests/fakedist-vec-off:fakedist-vec-off_test",
507506
"//pkg/sql/logictest/tests/fakedist:fakedist_test",
508507
"//pkg/sql/logictest/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
509-
"//pkg/sql/logictest/tests/local-mixed-25.1:local-mixed-25_1_test",
510508
"//pkg/sql/logictest/tests/local-mixed-25.2:local-mixed-25_2_test",
511509
"//pkg/sql/logictest/tests/local-schema-locked:local-schema-locked_test",
512510
"//pkg/sql/logictest/tests/local-vec-off:local-vec-off_test",
@@ -525,7 +523,6 @@ ALL_TESTS = [
525523
"//pkg/sql/opt/exec/execbuilder/tests/fakedist-vec-off:fakedist-vec-off_test",
526524
"//pkg/sql/opt/exec/execbuilder/tests/fakedist:fakedist_test",
527525
"//pkg/sql/opt/exec/execbuilder/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
528-
"//pkg/sql/opt/exec/execbuilder/tests/local-mixed-25.1:local-mixed-25_1_test",
529526
"//pkg/sql/opt/exec/execbuilder/tests/local-mixed-25.2:local-mixed-25_2_test",
530527
"//pkg/sql/opt/exec/execbuilder/tests/local-schema-locked:local-schema-locked_test",
531528
"//pkg/sql/opt/exec/execbuilder/tests/local-vec-off:local-vec-off_test",
@@ -599,7 +596,6 @@ ALL_TESTS = [
599596
"//pkg/sql/schemachanger/scpb:scpb_test",
600597
"//pkg/sql/schemachanger/scplan/internal/opgen:opgen_test",
601598
"//pkg/sql/schemachanger/scplan/internal/rules/current:current_test",
602-
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_1:release_25_1_test",
603599
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_2:release_25_2_test",
604600
"//pkg/sql/schemachanger/scplan/internal/scgraph:scgraph_test",
605601
"//pkg/sql/schemachanger/scplan:scplan_test",
@@ -631,7 +627,6 @@ ALL_TESTS = [
631627
"//pkg/sql/sqlitelogictest/tests/fakedist-vec-off:fakedist-vec-off_test",
632628
"//pkg/sql/sqlitelogictest/tests/fakedist:fakedist_test",
633629
"//pkg/sql/sqlitelogictest/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
634-
"//pkg/sql/sqlitelogictest/tests/local-mixed-25.1:local-mixed-25_1_test",
635630
"//pkg/sql/sqlitelogictest/tests/local-mixed-25.2:local-mixed-25_2_test",
636631
"//pkg/sql/sqlitelogictest/tests/local-read-committed:local-read-committed_test",
637632
"//pkg/sql/sqlitelogictest/tests/local-repeatable-read:local-repeatable-read_test",
@@ -964,7 +959,6 @@ GO_TARGETS = [
964959
"//pkg/ccl/logictestccl/tests/fakedist-vec-off:fakedist-vec-off_test",
965960
"//pkg/ccl/logictestccl/tests/fakedist:fakedist_test",
966961
"//pkg/ccl/logictestccl/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
967-
"//pkg/ccl/logictestccl/tests/local-mixed-25.1:local-mixed-25_1_test",
968962
"//pkg/ccl/logictestccl/tests/local-mixed-25.2:local-mixed-25_2_test",
969963
"//pkg/ccl/logictestccl/tests/local-read-committed:local-read-committed_test",
970964
"//pkg/ccl/logictestccl/tests/local-repeatable-read:local-repeatable-read_test",
@@ -2033,7 +2027,6 @@ GO_TARGETS = [
20332027
"//pkg/sql/logictest/tests/fakedist-vec-off:fakedist-vec-off_test",
20342028
"//pkg/sql/logictest/tests/fakedist:fakedist_test",
20352029
"//pkg/sql/logictest/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
2036-
"//pkg/sql/logictest/tests/local-mixed-25.1:local-mixed-25_1_test",
20372030
"//pkg/sql/logictest/tests/local-mixed-25.2:local-mixed-25_2_test",
20382031
"//pkg/sql/logictest/tests/local-schema-locked:local-schema-locked_test",
20392032
"//pkg/sql/logictest/tests/local-vec-off:local-vec-off_test",
@@ -2061,7 +2054,6 @@ GO_TARGETS = [
20612054
"//pkg/sql/opt/exec/execbuilder/tests/fakedist-vec-off:fakedist-vec-off_test",
20622055
"//pkg/sql/opt/exec/execbuilder/tests/fakedist:fakedist_test",
20632056
"//pkg/sql/opt/exec/execbuilder/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
2064-
"//pkg/sql/opt/exec/execbuilder/tests/local-mixed-25.1:local-mixed-25_1_test",
20652057
"//pkg/sql/opt/exec/execbuilder/tests/local-mixed-25.2:local-mixed-25_2_test",
20662058
"//pkg/sql/opt/exec/execbuilder/tests/local-schema-locked:local-schema-locked_test",
20672059
"//pkg/sql/opt/exec/execbuilder/tests/local-vec-off:local-vec-off_test",
@@ -2237,8 +2229,6 @@ GO_TARGETS = [
22372229
"//pkg/sql/schemachanger/scplan/internal/opgen:opgen_test",
22382230
"//pkg/sql/schemachanger/scplan/internal/rules/current:current",
22392231
"//pkg/sql/schemachanger/scplan/internal/rules/current:current_test",
2240-
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_1:release_25_1",
2241-
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_1:release_25_1_test",
22422232
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_2:release_25_2",
22432233
"//pkg/sql/schemachanger/scplan/internal/rules/release_25_2:release_25_2_test",
22442234
"//pkg/sql/schemachanger/scplan/internal/rules:rules",
@@ -2315,7 +2305,6 @@ GO_TARGETS = [
23152305
"//pkg/sql/sqlitelogictest/tests/fakedist-vec-off:fakedist-vec-off_test",
23162306
"//pkg/sql/sqlitelogictest/tests/fakedist:fakedist_test",
23172307
"//pkg/sql/sqlitelogictest/tests/local-legacy-schema-changer:local-legacy-schema-changer_test",
2318-
"//pkg/sql/sqlitelogictest/tests/local-mixed-25.1:local-mixed-25_1_test",
23192308
"//pkg/sql/sqlitelogictest/tests/local-mixed-25.2:local-mixed-25_2_test",
23202309
"//pkg/sql/sqlitelogictest/tests/local-read-committed:local-read-committed_test",
23212310
"//pkg/sql/sqlitelogictest/tests/local-repeatable-read:local-repeatable-read_test",

pkg/backup/backupdest/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ go_test(
5656
"//pkg/ccl",
5757
"//pkg/cloud",
5858
"//pkg/cloud/impl:cloudimpl",
59-
"//pkg/clusterversion",
6059
"//pkg/jobs/jobspb",
6160
"//pkg/security/securityassets",
6261
"//pkg/security/securitytest",

pkg/backup/backupdest/backup_destination_test.go

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ import (
2121
"github.com/cockroachdb/cockroach/pkg/base"
2222
"github.com/cockroachdb/cockroach/pkg/cloud"
2323
_ "github.com/cockroachdb/cockroach/pkg/cloud/impl" // register cloud storage providers
24-
"github.com/cockroachdb/cockroach/pkg/clusterversion"
2524
"github.com/cockroachdb/cockroach/pkg/jobs/jobspb"
2625
"github.com/cockroachdb/cockroach/pkg/security/username"
27-
"github.com/cockroachdb/cockroach/pkg/server"
2826
"github.com/cockroachdb/cockroach/pkg/sql"
2927
"github.com/cockroachdb/cockroach/pkg/util/hlc"
3028
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
@@ -399,118 +397,4 @@ func TestBackupRestoreResolveDestination(t *testing.T) {
399397
}
400398
}
401399

402-
func TestMixedVersionIncrementalSuffixChains(t *testing.T) {
403-
defer leaktest.AfterTest(t)()
404-
defer log.Scope(t).Close(t)
405-
406-
args := base.TestServerArgs{
407-
DefaultTestTenant: base.TestControlsTenantsExplicitly,
408-
}
409-
args.Knobs.Server = &server.TestingKnobs{
410-
ClusterVersionOverride: clusterversion.V25_1.Version(),
411-
DisableAutomaticVersionUpgrade: make(chan struct{}),
412-
}
413-
_, db, tmpdir, cleanup := backuptestutils.StartBackupRestoreTestCluster(
414-
t, backuptestutils.SingleNode, backuptestutils.WithParams(base.TestClusterArgs{
415-
ServerArgs: args,
416-
}),
417-
)
418-
defer cleanup()
419-
fmt.Println(tmpdir)
420-
421-
db.Exec(t, "CREATE TABLE foo (a int)")
422-
db.Exec(t, "BACKUP INTO 'nodelocal://1/backup'")
423-
424-
db.Exec(t, "INSERT INTO foo VALUES (1)")
425-
// Round to nearest millisecond timestamp to avoid precision shenanigans
426-
// between MacOS and Unix.
427-
timeBeforeUpgrade := hlc.Timestamp{WallTime: time.Now().UnixNano() / 1e3 * 1e3}
428-
db.Exec(
429-
t,
430-
fmt.Sprintf(
431-
"BACKUP INTO LATEST IN 'nodelocal://1/backup' AS OF SYSTEM TIME '%s'",
432-
timeBeforeUpgrade.AsOfSystemTime(),
433-
),
434-
)
435-
436-
backups := db.QueryStr(
437-
t,
438-
"SELECT DISTINCT (start_time, end_time) FROM [SHOW BACKUP FROM LATEST IN 'nodelocal://1/backup']",
439-
)
440-
require.Len(t, backups, 2)
441-
442-
pathBeforeIncSuffixFormat := backuputils.JoinURLPath(
443-
"/"+backupbase.DefaultIncrementalsSubdir,
444-
backupbase.DateBasedIntoFolderName,
445-
backupbase.DateBasedIncFolderName,
446-
)
447-
var path string
448-
db.QueryRow(
449-
t,
450-
`SELECT path FROM [SHOW BACKUP FILES FROM LATEST IN 'nodelocal://1/backup']
451-
WHERE backup_type = 'incremental' LIMIT 1`,
452-
).Scan(&path)
453-
// Before 25.2, incremental folder names do not contain the suffix, so the
454-
// next character after the DateBasedIncFolderName should be the end of the
455-
// folder.
456-
require.Equal(t, byte('/'), path[len(pathBeforeIncSuffixFormat)])
457-
458-
db.Exec(t, fmt.Sprintf("SET CLUSTER SETTING version = '%s'", clusterversion.V25_2.Version()))
459-
460-
db.Exec(t, "INSERT INTO foo VALUES (2)")
461-
timeAfterUpgrade := hlc.Timestamp{WallTime: time.Now().UnixNano() / 1e3 * 1e3}
462-
db.Exec(
463-
t,
464-
fmt.Sprintf(
465-
"BACKUP INTO LATEST IN 'nodelocal://1/backup' AS OF SYSTEM TIME '%s'",
466-
timeAfterUpgrade.AsOfSystemTime(),
467-
),
468-
)
469-
470-
db.QueryRow(
471-
t,
472-
`SELECT path FROM [SHOW BACKUP FILES FROM LATEST IN 'nodelocal://1/backup']
473-
WHERE backup_type = 'incremental' ORDER BY PATH DESC LIMIT 1`,
474-
).Scan(&path)
475-
// Before 25.2, incremental folder names do not contain the suffix, so the
476-
// next character after the DateBasedIncFolderName should not be the end of
477-
// the directory.
478-
require.NotEqual(t, byte('/'), path[len(pathBeforeIncSuffixFormat)])
479-
480-
db.Exec(t, "INSERT INTO foo VALUES (3)")
481-
db.Exec(t, "BACKUP INTO LATEST IN 'nodelocal://1/backup'")
482-
backups = db.QueryStr(
483-
t,
484-
"SELECT DISTINCT (start_time, end_time) FROM [SHOW BACKUP FROM LATEST IN 'nodelocal://1/backup']",
485-
)
486-
require.Len(t, backups, 4)
487-
488-
db.Exec(t, "DROP TABLE foo")
489-
db.Exec(
490-
t,
491-
fmt.Sprintf(
492-
"RESTORE TABLE foo FROM LATEST IN 'nodelocal://1/backup' AS OF SYSTEM TIME '%s'",
493-
timeBeforeUpgrade.AsOfSystemTime(),
494-
),
495-
)
496-
rows := db.QueryStr(t, "SELECT a FROM foo")
497-
require.Len(t, rows, 1)
498-
499-
db.Exec(t, "DROP TABLE foo")
500-
db.Exec(
501-
t,
502-
fmt.Sprintf(
503-
"RESTORE TABLE foo FROM LATEST IN 'nodelocal://1/backup' AS OF SYSTEM TIME '%s'",
504-
timeAfterUpgrade.AsOfSystemTime(),
505-
),
506-
)
507-
rows = db.QueryStr(t, "SELECT a FROM foo")
508-
require.Len(t, rows, 2)
509-
510-
db.Exec(t, "DROP TABLE foo")
511-
db.Exec(t, "RESTORE TABLE foo FROM LATEST IN 'nodelocal://1/backup'")
512-
rows = db.QueryStr(t, "SELECT a FROM foo")
513-
require.Len(t, rows, 3)
514-
}
515-
516400
// TODO(pbardea): Add tests for resolveBackupCollection.

pkg/ccl/logictestccl/testdata/logic_test/plpgsql_srf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# LogicTest: !local-mixed-25.1
2-
31
statement ok
42
CREATE TABLE xy (x INT, y INT);
53
INSERT INTO xy VALUES (1, 2), (3, 4), (5, 6);

pkg/ccl/logictestccl/tests/local-mixed-25.1/BUILD.bazel

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)