-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Show stack traces in the remote repo contents cache with --verbose_failures
#27970
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
Conversation
…ailures` Makes it easier to debug issues with this experimental feature and also matches the behavior of remote execution/caching.
|
FYI @keith |
|
@bazel-io fork 9.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to improve debugging for the remote repository contents cache by showing stack traces with --verbose_failures. The implementation correctly propagates the verboseFailures flag. However, there is a logical error in maybeGetStackTrace which causes it to show the stack trace when --verbose_failures is off and only the message when it's on, which is the opposite of the intended behavior. I've provided a comment with a fix for this.
src/main/java/com/google/devtools/build/lib/remote/RemoteRepoContentsCacheImpl.java
Outdated
Show resolved
Hide resolved
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
src/main/java/com/google/devtools/build/lib/bazel/repository/RepositoryFetchFunction.java
Outdated
Show resolved
Hide resolved
…ailures` Makes it easier to debug issues with this experimental feature and also matches the behavior of remote execution/caching. Work towards bazelbuild#27965 Closes bazelbuild#27970. PiperOrigin-RevId: 853238791 Change-Id: Id46ccbb105d93fd17114fab13b086d0b46139fb4
…erbose_failures` (#28179) Makes it easier to debug issues with this experimental feature and also matches the behavior of remote execution/caching. Work towards #27965 Closes #27970. PiperOrigin-RevId: 853238791 Change-Id: Id46ccbb105d93fd17114fab13b086d0b46139fb4 Commit fc5f160 Co-authored-by: Fabian Meumertzheim <[email protected]>
Makes it easier to debug issues with this experimental feature and also matches the behavior of remote execution/caching.
Work towards #27965