Skip to content

Conversation

@bazel-io
Copy link
Member

PiperOrigin-RevId: 846883855
Change-Id: I8c34491974574704155cf888b3ef1d1ccf60195a

Commit 44b6457

PiperOrigin-RevId: 846883855
Change-Id: I8c34491974574704155cf888b3ef1d1ccf60195a
@bazel-io bazel-io added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Dec 22, 2025
@bazel-io bazel-io requested a review from a team as a code owner December 22, 2025 19:05
@bazel-io bazel-io added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions labels Dec 22, 2025
@iancha1992 iancha1992 enabled auto-merge December 22, 2025 19:06
iancha1992 referenced this pull request Dec 22, 2025
PiperOrigin-RevId: 846883855
Change-Id: I8c34491974574704155cf888b3ef1d1ccf60195a
Copy link

@gemini-code-assist gemini-code-assist bot left a 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 introduces a mechanism to inform the ImportantOutputHandler about stdout/stderr files that are too large to be displayed on the console. This ensures these files are treated as important outputs and are accessible, which is particularly useful in remote execution scenarios. The changes involve adding a new method to the ImportantOutputHandler interface, plumbing the maxStdoutErrBytes option from UiOptions down to the SkyframeActionExecutor, and implementing the logic to check output sizes and notify the handler. The changes look solid, but I have one suggestion to improve logging in an exception handler.

logger.atWarning().withCause(e).log(
"Failure informing important output handler of stdout/stderr");
} catch (InterruptedException e) {
logger.atInfo().log("Informing important output handler of stdout/stderr");

Choose a reason for hiding this comment

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

high

The log message for the InterruptedException is misleading. It should state that the operation was interrupted. Also, logging this at INFO level might be too low for an interruption. For consistency with the IOException handler, consider using WARNING and including the exception cause.

Suggested change
logger.atInfo().log("Informing important output handler of stdout/stderr");
logger.atWarning().withCause(e).log("Interrupted while informing important output handler of stdout/stderr");

@justinhorvitz
Copy link
Contributor

This isn't relevant for bazel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants