Skip to content
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

roachtest: simplify name resolution in new restore roachtests #98087

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

msbutler
Copy link
Collaborator

@msbutler msbutler commented Mar 6, 2023

Previously, restore roachtest name resolution was a bit convoluted: it could either be observed by calling a field in the restoreSpec, but only if getRuntimeSpecs() had been called, or by manually constructing it before hand. This patch simplifies name resolution: the roachtest writer now simply calls initTestName() to set the name after restoreSpec initialization, and then gets the name via restoreSpec.testName.

Epic: none

Release note: None

@msbutler msbutler requested a review from lidorcarmel March 6, 2023 20:27
@msbutler msbutler requested a review from a team as a code owner March 6, 2023 20:27
@msbutler msbutler self-assigned this Mar 6, 2023
@msbutler msbutler requested review from smg260 and renatolabs and removed request for a team, smg260 and renatolabs March 6, 2023 20:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, restore roachtest name resolution was a bit convoluted: it could
either be observed by calling a field in the restoreSpec, but only if
getRuntimeSpecs() had been called, or by manually constructing it before hand.
This patch simplifies name resolution: the roachtest writer now simply
calls initTestName() to set the name after restoreSpec initialization, and then
gets the name via restoreSpec.testName.

Epic: none

Release note: None
@msbutler msbutler force-pushed the butler-roachtest-refactor branch from 4943163 to 10801f9 Compare March 6, 2023 20:54
Copy link
Contributor

@lidorcarmel lidorcarmel left a comment

Choose a reason for hiding this comment

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

makes sense and lgtm.

@msbutler
Copy link
Collaborator Author

msbutler commented Mar 6, 2023

Tftr!

bors r=lidorcarmel

@craig
Copy link
Contributor

craig bot commented Mar 6, 2023

Build succeeded:

@craig craig bot merged commit 2afe786 into cockroachdb:master Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants