Skip to content

serverccl: conditionally apply DevOffset in TestServerStartupGuardrails#100701

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/server-startup-guardrails-fix
Apr 5, 2023
Merged

serverccl: conditionally apply DevOffset in TestServerStartupGuardrails#100701
craig[bot] merged 1 commit intocockroachdb:masterfrom
renatolabs:rc/server-startup-guardrails-fix

Conversation

@renatolabs
Copy link
Copy Markdown

When overwriting versions for that test, we were unconditionally applying clusterversion.DevOffset to all versions. While that works on master, it makes the test break when it runs on a release branch (where no offsetting happens). In this commit, we check whether binary versions are offset, and only add the DevOffset if they are.

Unfortunately, we can't reference versions by key in this test as it references versions from two releases ago.

Informs: #100685

Epic: none

Release note: None

When overwriting versions for that test, we were unconditionally
applying `clusterversion.DevOffset` to all versions. While that works
on master, it makes the test break when it runs on a release
branch (where no offsetting happens). In this commit, we check whether
binary versions are offset, and only add the DevOffset if they are.

Unfortunately, we can't reference versions by key in this test as it
references versions from two releases ago.

Informs: cockroachdb#100685

Epic: none

Release note: None
@renatolabs renatolabs requested a review from a team as a code owner April 5, 2023 14:14
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@renatolabs renatolabs requested a review from knz April 5, 2023 14:14
Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@knz knz added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label Apr 5, 2023
@renatolabs
Copy link
Copy Markdown
Author

Failure is flake tracked elsewhere (#92540).

TFTR!

bors r=knz

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 5, 2023

Timed out.

@knz
Copy link
Copy Markdown
Contributor

knz commented Apr 5, 2023

bors r=knz

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 5, 2023

Build succeeded:

@craig craig bot merged commit 2428a0b into cockroachdb:master Apr 5, 2023
@renatolabs renatolabs deleted the rc/server-startup-guardrails-fix branch April 28, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants