Skip to content

roachtest: fix multitenant-upgrade stable to dev opt-in#87826

Closed
dt wants to merge 1 commit intocockroachdb:masterfrom
dt:mt-upgrade-test
Closed

roachtest: fix multitenant-upgrade stable to dev opt-in#87826
dt wants to merge 1 commit intocockroachdb:masterfrom
dt:mt-upgrade-test

Conversation

@dt
Copy link
Copy Markdown
Contributor

@dt dt commented Sep 12, 2022

Fixes #87689.

Release note: none.

@dt dt requested review from ajstorm and ajwerner September 12, 2022 14:25
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Collaborator

@ajstorm ajstorm left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner and @dt)


pkg/cmd/roachtest/tests/multitenant_upgrade.go line 75 at r1 (raw file):

	settings := install.MakeClusterSettings(install.BinaryOption(predecessorBinary), install.SecureOption(true))
	settings.Env = append(settings.Env, "COCKROACH_UPGRADE_TO_DEV_VERSION=true")

Nit: Should this be conditional based on the binary type? Once we drop the dev designation in a release, wouldn't we not need this?

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Sep 12, 2022

wouldn't we not need this?

We will always need this on master; it is always dev. We don't need it on a release branch, but it also doesn't hurt anything to be there -- the test is just saying "look, I know that I might be doing a one-way upgrade here (but I might not) and I'm okay with that; this isn't critical production cluster that shouldn't be tainted". Doesn't seem worth adding more complexity to duplicate the upgrade checks just to decide when we're in the case where we'll hit them or not does it?

@ajstorm
Copy link
Copy Markdown
Collaborator

ajstorm commented Sep 12, 2022 via email

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Sep 14, 2022

My feeling is that we should make the test stop failing so we get the signal we want from it -- that when you know you're doing release to dev upgrades, it works. We don't need to backport to the any current release branch since the current release branches don't think they are a dev versions anyway. That means we have several months to decide if we want to runbook this so that the PR that removes the "is dev" bit on the release branch next time (23.1) also removes the env var.

Copy link
Copy Markdown
Collaborator

@ajstorm ajstorm left a comment

Choose a reason for hiding this comment

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

That all SGTM. Do we want a follow-up issue for this? Or were you thinking that we'd rely on the test failure on 23.1 branch cut to "remind" us?

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner and @dt)

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Sep 16, 2022

Closing in favor of @srosenberg's change in #88005

@dt dt closed this Sep 16, 2022
@dt dt deleted the mt-upgrade-test branch September 19, 2022 19:14
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.

roachtest: multitenant-upgrade failed

3 participants