-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clusterversion: create 25.1 version #134750
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v24.3.0-alpha.3 | ||
v25.1.0-alpha.00000000 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,10 +126,10 @@ func processReleaseData(data []Release) map[string]release.Series { | |
continue | ||
} | ||
|
||
// For the purposes of the cockroach_releases file, we are only | ||
// interested in beta and rc pre-releases, as we do not support | ||
// upgrades from alpha releases. | ||
if pre := v.PreRelease(); pre != "" && !strings.HasPrefix(pre, "rc") && !strings.HasPrefix(pre, "beta") { | ||
// For the purposes of the cockroach_releases file, we are only interested | ||
// in rc pre-releases, as we do not support upgrades from alpha or beta | ||
// releases. | ||
if pre := v.PreRelease(); pre != "" && !strings.HasPrefix(pre, "rc") { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice fix/solution 👍🏼 |
||
continue | ||
} | ||
// Skip cloud-only releases, because the binaries are not yet publicly available. | ||
|
@@ -322,7 +322,7 @@ func releaseName(name string) string { | |
} | ||
|
||
func generateRepositoriesFile(versions ...string) error { | ||
client := httputil.NewClientWithTimeout(15 * time.Second) | ||
client := httputil.NewClientWithTimeout(45 * time.Second) | ||
cfgKeys := map[string]string{ | ||
"CONFIG_LINUX_AMD64": "linux-amd64", | ||
"CONFIG_LINUX_ARM64": "linux-arm64", | ||
|
@@ -334,6 +334,7 @@ func generateRepositoriesFile(versions ...string) error { | |
versionToCfgToHash[v] = make(map[string]string) | ||
for cfgKey, cfg := range cfgKeys { | ||
url := fmt.Sprintf("https://binaries.cockroachdb.com/cockroach-v%s.%s.tgz", v, cfg) | ||
fmt.Printf("getting %s\n", url) | ||
resp, err := client.Get(context.Background(), url) | ||
if err != nil { | ||
return fmt.Errorf("could not download cockroach release: %w", err) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,10 +39,6 @@ func Test_processReleaseData(t *testing.T) { | |
Predecessor: "22.2", | ||
Withdrawn: []string{"23.1.0"}, | ||
}, | ||
"23.2": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to confirm, this removal/cleanup is more related to advancing (mostly to clarify for when we refer to this for the next release cycle/task) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just a test for the updated releases code, which we updated to ignore beta builds. This test runs against fixed data, the versions should be considered fictitious. |
||
Latest: "23.2.0-beta.1", | ||
Predecessor: "23.1", | ||
}, | ||
} | ||
require.Equal(t, expectedReleaseData, processReleaseData(data)) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ var testPredecessorMapping = map[string]*clusterupgrade.Version{ | |
"24.1": clusterupgrade.MustParseVersion("v23.2.4"), | ||
"24.2": clusterupgrade.MustParseVersion("v24.1.1"), | ||
"24.3": clusterupgrade.MustParseVersion("v24.2.2"), | ||
"25.1": clusterupgrade.MustParseVersion("v24.3.0"), | ||
} | ||
|
||
//go:embed testdata/test_releases.yaml | ||
|
@@ -244,7 +245,7 @@ func Test_choosePreviousReleases(t *testing.T) { | |
arch: vm.ArchAMD64, | ||
numUpgrades: 3, | ||
enableSkipVersion: true, | ||
expectedReleases: []string{"23.2.4", "24.1.1", "24.2.2"}, | ||
expectedReleases: []string{"23.1.17", "23.2.4", "24.1.1"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. x-referencing note from MinSupport bump comment (for when we do this task for the next cycle), that this change is a result of the randomized sequence of versions that the test decides on with that seed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, and it's all based on the testPredecessorMapping (not the actual release data) |
||
}, | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for keeping the runbook up-to-date!