Skip to content

roachtest: simplify name resolution in new restore roachtests#98087

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-roachtest-refactor
Mar 6, 2023
Merged

roachtest: simplify name resolution in new restore roachtests#98087
craig[bot] merged 1 commit intocockroachdb:masterfrom
msbutler:butler-roachtest-refactor

Conversation

@msbutler
Copy link
Copy Markdown
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 renatolabs and smg260 and removed request for a team, renatolabs and smg260 March 6, 2023 20:27
@cockroach-teamcity
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

msbutler commented Mar 6, 2023

Tftr!

bors r=lidorcarmel

@craig
Copy link
Copy Markdown
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