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: log Get failures in roachtests #89850

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

renatolabs
Copy link
Contributor

roachprod.Get and roachprod.Put behaved differently when it comes to logging of errors: the former would not log errors found while running scp if there was a file backing the logger, while the latter would.

However, there is no reason for this difference, and it was probably an oversight introduced in an old, really large PR (#74223). This commit makes behavior consistent in both calls and should allow us to see Get errors in logs, especially important in roachtest failures.

Epic: None.

Release note: None.

`roachprod.Get` and `roachprod.Put` behaved differently when it comes
to logging of errors: the former would not log errors found while
running `scp` if there was a file backing the logger, while the latter
would.

However, there is no reason for this difference, and it was probably
an oversight introduced in an old, really large PR (cockroachdb#74223). This
commit makes behavior consistent in both calls and should allow us to
see `Get` errors in logs, especially important in `roachtest`
failures.

Epic: None.

Release note: None.
@renatolabs renatolabs requested a review from a team as a code owner October 12, 2022 19:27
@renatolabs renatolabs requested review from srosenberg and removed request for a team October 12, 2022 19:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

Wow, a one-character fix! Good catch!

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @renatolabs)

@renatolabs
Copy link
Contributor Author

bors r=srosenberg

@craig
Copy link
Contributor

craig bot commented Oct 13, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 13, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Oct 13, 2022

Build succeeded:

@craig craig bot merged commit c09bc70 into cockroachdb:master Oct 13, 2022
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.

3 participants