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

roachprod: minor fixes for snapshots #104573

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

srosenberg
Copy link
Member

Support for disk snapshots has been recently added in [1]. This change adds minor fixes which were necessary to run in a different environment which was previously tested. Specifically, several commands were missing --project which resulted in (silent) failures. Error propagation from c.Parallel was signaling an internal error
instead of passing command's error. (Granted, the existing mechanism for error propagation is to be revisited in [2].)

[1] #103757
[2] #104312

Epic: none

Release note: None

Support for disk snapshots has been recently added in [1].
This change adds minor fixes which were necessary to
run in a different environment which was previously tested.
Specifically, several commands were missing `--project`
which resulted in (silent) failures. Error propagation
from `c.Parallel` was signaling an internal error
instead of passing command's error. (Granted, the existing
mechanism for error propagation is to be revisited in [2].)

[1] cockroachdb#103757
[2] cockroachdb#104312

Epic: none

Release note: None
@srosenberg srosenberg requested a review from a team as a code owner June 8, 2023 05:04
@srosenberg srosenberg requested review from herkolategan, renatolabs, irfansharif and a team and removed request for a team June 8, 2023 05:04
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@srosenberg srosenberg requested review from smg260 and removed request for renatolabs and a team June 8, 2023 05:04
Copy link
Contributor

@irfansharif irfansharif left a comment

Choose a reason for hiding this comment

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

The naming validation/trimming LGTM, but the error handling, I was cargo culting from the other uses of c.Parallel. I remember running into more opaque-looking errors when I didn't have it, but I'd have to try it again to be more specific. Perhaps that's what you're alluding to in #104312 but I'm too far from the code to fully understand it. All that's to say I'll defer the real LGTM to wiser folks.

image

@srosenberg
Copy link
Member Author

Perhaps that's what you're alluding to in #104312 but I'm too far from the code to fully understand it. All that's to say I'll defer the real LGTM to wiser folks.

Yep. That's exactly why we want to revisit this (new) API. It has confounded many including the original author :)

@srosenberg
Copy link
Member Author

TFTR!

bors r=irfansharif,herkolategan

@craig
Copy link
Contributor

craig bot commented Jun 9, 2023

This PR was included in a batch that successfully built, but then failed to merge into master. It will not be retried.

Additional information:

{"message":"Changes must be made through a pull request.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@srosenberg
Copy link
Member Author

bors r+ single on

@craig
Copy link
Contributor

craig bot commented Jun 9, 2023

Build succeeded:

@craig craig bot merged commit 6a3646b into cockroachdb:master Jun 9, 2023
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.

4 participants