Skip to content

clusterversion: prep 23.1 release branch and initialize 23.2 development#99128

Merged
craig[bot] merged 4 commits intocockroachdb:masterfrom
celiala:mint-23.1-and-start-23.2
Mar 23, 2023
Merged

clusterversion: prep 23.1 release branch and initialize 23.2 development#99128
craig[bot] merged 4 commits intocockroachdb:masterfrom
celiala:mint-23.1-and-start-23.2

Conversation

@celiala
Copy link
Copy Markdown
Collaborator

@celiala celiala commented Mar 21, 2023

As part of the 23.1 stability period tasks, this PR preps the 23.1 release branch and initializes 23.2 development, as per this release runbook: Prep Release and Define Start of Development for Next Release.

This PR will contain 4 commits:

commit backported when
1. Set developmentBranch to false soon after branch cut / before selecting beta.1 candidate
2. Update version.txt to alpha.8 (next release) soon after branch cut / before selecting beta.1 this week's alpha.8 candidate
3. Mint the previous release should be final backport before the final RC / before selecting final RC candidate
4. Define the start of 23.2 development and placeholder key (not backported)

Release note: none.
Epic: REL-283

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@celiala celiala force-pushed the mint-23.1-and-start-23.2 branch 2 times, most recently from dc16a46 to 86b239f Compare March 21, 2023 19:03
@celiala celiala marked this pull request as ready for review March 21, 2023 19:08
@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 21, 2023

For 22.2 we did this a bit incrementally. Looking at the pieces, I think this is what should be done for 23.1 (also put into this runbook).

Some open questions to still address:

  1. what to set for pkg/build/version.txt: for master? to backport to the release-23.1 branch?
  2. what should we be doing here for BinaryVersionKey (if anything)? maybe @healthy-pod

For 1, I think maybe this should happen:

  • for release-23.1 branch: pkg/build/version.txt value becomes beta.1 (although if we still have release blockers then this should be alpha.8)
  • for master branch: we won't be able to add the v23.2-alpha.00000000 tag onto master until we've initialized tests for 23.2 development. however, since we don't plan to release from master after the branch cut, maybe it's okay to keep version.txt as-is until the v23.2-alpha.00000000 tag is in place

@healthy-pod
Copy link
Copy Markdown
Contributor

what should we be doing here for BinaryVersionKey (if anything)? maybe @healthy-pod

I think we should change this to V23_2 but I will let someone else confirm. cc @dt

I don't think we will bump min supported version but it might help to update tenantCreationMinSupportedVersionKey so we don't have to bump it every time min supported version changes (doesn't need to be in this PR). cc @ajstorm

diff --git a/pkg/sql/tenant_creation.go b/pkg/sql/tenant_creation.go
index f3d41fa8690..44c193400e1 100644
--- a/pkg/sql/tenant_creation.go
+++ b/pkg/sql/tenant_creation.go
@@ -43,10 +43,6 @@ import (
 	"github.com/cockroachdb/redact"
 )
 
-const (
-	tenantCreationMinSupportedVersionKey = clusterversion.V22_2
-)
-
 // CreateTenant implements the tree.TenantOperator interface.
 func (p *planner) CreateTenant(
 	ctx context.Context, parameters string,
@@ -159,8 +155,8 @@ func (p *planner) createTenantInternal(
 		// Use the previous major version to create the tenant and bootstrap it
 		// just like the previous major version binary would, using hardcoded
 		// initial values.
-		tenantVersion.Version = clusterversion.ByKey(tenantCreationMinSupportedVersionKey)
-		bootstrapVersionOverride = tenantCreationMinSupportedVersionKey
+		tenantVersion.Version = clusterversion.ByKey(clusterversion.BinaryMinSupportedVersionKey)
+		bootstrapVersionOverride = clusterversion.BinaryMinSupportedVersionKey
 	} else {
 		// The cluster is running the latest version.
 		// Use this version to create the tenant and bootstrap it using the host

@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 21, 2023

I think we should change this to V23_2 but I will let someone else confirm. cc @dt

This makes sense to me. I'll advance BinaryVersionKey to V23_2, as part of this commit: clusterverion: start 23.2 dev versions clusterversion: define 23.2 placeholder key

for pkg/build/version.txt

For version.txt, I'll set this to v23.1.0-alpha.8 [will add to commit that get backported this week]:

  • We have enough release blockers (https://go.crdb.dev/23-1-blockers) where an alpha feels more realistic than a beta for this week.
  • I think this master version.txt can stay at v23.1.0-alpha.8 until we've initialized tests and tagged master with v23.2-alpha.00000000

it might help to update tenantCreationMinSupportedVersionKey ...(doesn't need to be in this PR).

ack :)

@celiala celiala changed the title clusterversion: mint 23.1 clusterversion: prep 23.1 release branch and set 23.2 development branc Mar 21, 2023
@celiala celiala changed the title clusterversion: prep 23.1 release branch and set 23.2 development branc clusterversion: prep 23.1 release branch and set 23.2 development branch Mar 21, 2023
@renatolabs
Copy link
Copy Markdown

although if we still have release blockers then this should be alpha.8

Just to confirm if I understand it right: do we release another alpha (off of release-23.1) depending on the status/amount of release blockers?

I think this master version.txt can stay at v23.1.0-alpha.8 until we've initialized tests and tagged master with v23.2-alpha.00000000

Makes sense to me. At that point, we'd update version.txt to be 23.2-alpha.00000000 as well, yes?

@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 21, 2023

Just to confirm if I understand it right: do we release another alpha (off of release-23.1) depending on the status/amount of release blockers?

Correct/exactly, i.e.:

  • once we cut the release branch, we should no longer select 23.1 candidate SHAs off of master
  • what we end up calling the 23.1 candidate SHA depends on blocker status (if we still have release-blockers, we should all it an alpha. but still select the SHA from release-23.1)

Makes sense to me. At that point, we'd update version.txt to be 23.2-alpha.00000000 as well, yes?

Yes. We should add a task in the initialized tests for 23.2 development runbook to update version.txt to be 23.2-alpha.00000000 at the same time we add the tag to master (I'm happy to do this if no one else gets to it first).

@celiala celiala changed the title clusterversion: prep 23.1 release branch and set 23.2 development branch clusterversion: prep 23.1 release branch and initialize 23.2 development branch Mar 21, 2023
@celiala celiala changed the title clusterversion: prep 23.1 release branch and initialize 23.2 development branch clusterversion: prep 23.1 release branch and initialize 23.2 development Mar 21, 2023
@celiala celiala force-pushed the mint-23.1-and-start-23.2 branch from 86b239f to 71be248 Compare March 21, 2023 20:48
@celiala celiala requested a review from a team as a code owner March 21, 2023 20:52
@celiala celiala force-pushed the mint-23.1-and-start-23.2 branch 2 times, most recently from e0e747e to f5e5888 Compare March 21, 2023 23:21
@celiala celiala requested a review from a team as a code owner March 21, 2023 23:21
@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 21, 2023

flake - Bazel Essential CI (Cockroach) UnusedLint: "Error in fail: generate_build_file.ts failed". retriggering.

@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 22, 2023

TFTRs!

bors r=dt,rail

@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 22, 2023

bors r-

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 22, 2023

Canceled.

@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 22, 2023

bors r=dt,rail

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 22, 2023

Canceled.

celiala added 3 commits March 22, 2023 06:12
This sets developmentBranch to false for the release branch.
We plan to backport this commit as soon as the branch is cut.

Release note: none.
Epic: REL-283
next release is v23.1.0-alpha.8.
To also be backported to release-23.1 branch.

Release note: none.
Epic: REL-283.
This mints the release branch as 23.1.
This will be the final backport for the final 23.1 RC.

Release note: none.
Epic: REL-283
@celiala celiala force-pushed the mint-23.1-and-start-23.2 branch from e23b9e1 to cd9fccd Compare March 22, 2023 13:39
@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 22, 2023

failing due to this: #99238

=== RUN   TestCCLLogic_multi_region_show
    test_log_scope.go:161: test logs captured to: /artifacts/tmp/_tmp/f13500f29c3025cd2940e1d8c6d1d42b/logTestCCLLogic_multi_region_show1689673478
    test_log_scope.go:79: use -show-logs to present logs inline
    logic.go:1470: range ID 63 end key not split

@celiala celiala force-pushed the mint-23.1-and-start-23.2 branch from cd9fccd to df0f96c Compare March 22, 2023 20:36
@celiala
Copy link
Copy Markdown
Collaborator Author

celiala commented Mar 23, 2023

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 23, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants