Skip to content

version skipping WIP#113695

Closed
RaduBerinde wants to merge 1 commit intocockroachdb:masterfrom
RaduBerinde:version-skipping
Closed

version skipping WIP#113695
RaduBerinde wants to merge 1 commit intocockroachdb:masterfrom
RaduBerinde:version-skipping

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

clusterversion: cockroach versions cleanup

This commit cleans up the code and constants in
cockroach_versions.go:

  • we separate out the "dev offset" code and improve the
    documentation;
  • we replace the key-to-version slice with a table (array). This
    makes the declaration much cleaner and makes the lookup easier.
  • we replace ByKey() with a method, to make the call site less
    messy; e.g. clusterversion.ByKey(clusterversion.V23_2) becomes
    clusterversion.V23_2.Version();
  • we deprecate BinaryMinSupportedVersionKey in favor of MinSupported;
  • we deprecate BinaryVersionKey in favor of Latest;
  • we remove roachpb.Version "constants" in favor of using the
    Version() method.

Informs: #112629
Release note: None

WIP

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Nov 2, 2023

Your pull request contains more than 1000 changes. It is strongly encouraged to split big PRs into smaller chunks.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Currently the code allows upgrading from TWO previous releases (23.1
and 23.2); however, for now we only want to allow skipping a version
experimentally.

This commit changes the cli code to set the minimum supported version
to `PreviousRelease` by default, or to `MinSupported` when a special
env var is used.

Epic: none
Release note: None
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.

2 participants