forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachprod: don't pollute logs with verbose ssh logs
I added verbose logging in cockroachdb#37483 but made the poor decision to spew it to stderr when the command exited nonzero. As a consequence, many test failures are now obfuscated by high-verbosity ssh logs. Change the behavior so that the error message is wrapped with a path to the logs. We grab the contents of `~/.roachprod` in CI, so we'll be able to access the logs in the artifacts (`roachprod_state`). ``` $ ./bin/roachprod ssh tobias-test -- echo hi hi $ ls ~/.roachprod/debug/ $ ./bin/roachprod ssh tobias-test -- false Error: ssh verbose log retained in /Users/tschottdorf/.roachprod/debug/ssh_35.231.83.24_2019-05-20T12:53:49Z: exit status 1 $ ls ~/.roachprod/debug/ ssh_35.231.83.24_2019-05-20T12:53:49Z ``` Touches cockroachdb#36963. Release note: None
- Loading branch information
Showing
4 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters