Skip to content

[9.1.0] Add short_uncached and detailed_uncached options to --test_summary (#28341)#29263

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
iancha1992:cp28341
Apr 15, 2026
Merged

[9.1.0] Add short_uncached and detailed_uncached options to --test_summary (#28341)#29263
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
iancha1992:cp28341

Conversation

@iancha1992
Copy link
Copy Markdown
Member

These options exclude cached test results from the summary.

With short (default)

vscode ➜ /workspaces/bazel/bazel (uncached-test-summary-options) $ bazel-bin/src/bazel test //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests --test_filter=shortUncachedOption_allPassed
INFO: Analyzed target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
Target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests up-to-date:
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests.jar
INFO: Elapsed time: 0.770s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
//src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (cached) PASSED in 2.8s

Executed 0 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.

With short_uncached

vscode ➜ /workspaces/bazel/bazel (uncached-test-summary-options) $ bazel-bin/src/bazel test //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests --test_filter=shortUncachedOption_allPassed --test_summary=short_uncached
INFO: Analyzed target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
Target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests up-to-date:
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests.jar
INFO: Elapsed time: 0.264s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action

Executed 0 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.

Resolves #28062

RELNOTES: Reporting of cached test results can now be suppressed with --test_summary=short_uncached or --test_summary=detailed_uncached.

Backport of #28290.

Description

Motivation

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Commit 87aad18

…st_summary` (bazelbuild#28341)

These options exclude cached test results from the summary.

With `short` (default)
```
vscode ➜ /workspaces/bazel/bazel (uncached-test-summary-options) $ bazel-bin/src/bazel test //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests --test_filter=shortUncachedOption_allPassed
INFO: Analyzed target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
Target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests up-to-date:
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests.jar
INFO: Elapsed time: 0.770s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action
//src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (cached) PASSED in 2.8s

Executed 0 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
```

With `short_uncached`
```
vscode ➜ /workspaces/bazel/bazel (uncached-test-summary-options) $ bazel-bin/src/bazel test //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests --test_filter=shortUncachedOption_allPassed --test_summary=short_uncached
INFO: Analyzed target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
Target //src/test/java/com/google/devtools/build/lib/runtime:RuntimeTests up-to-date:
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests
  bazel-bin/src/test/java/com/google/devtools/build/lib/runtime/RuntimeTests.jar
INFO: Elapsed time: 0.264s, Critical Path: 0.00s
INFO: 1 process: 1 action cache hit, 1 internal.
INFO: Build completed successfully, 1 total action

Executed 0 out of 1 test: 1 test passes.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
```

Resolves bazelbuild#28062

RELNOTES: Reporting of cached test results can now be suppressed with
`--test_summary=short_uncached` or `--test_summary=detailed_uncached`.

Backport of bazelbuild#28290.
@iancha1992 iancha1992 added this to the 9.1.0 release blockers milestone Apr 9, 2026
@iancha1992 iancha1992 requested a review from meisterT April 9, 2026 23:42
@iancha1992 iancha1992 added team-Configurability platforms, toolchains, cquery, select(), config transitions soft-release-blocker Soft release blockers that are nice to have, but shouldn't block the release if it's the last one. labels Apr 9, 2026
@iancha1992
Copy link
Copy Markdown
Member Author

iancha1992 commented Apr 9, 2026

@Silic0nS0ldier
My apologies, looks like #28341 was accidentally merged to release-9.0.0 after 9.0.0 was released. We'll include this feature in 9.2.0 (or 9.1.0 if another RC is needed).

@iancha1992 iancha1992 removed the request for review from meisterT April 9, 2026 23:48
@Silic0nS0ldier
Copy link
Copy Markdown
Contributor

Ah, good catch. Thabkd.

@Silic0nS0ldier
Copy link
Copy Markdown
Contributor

@iancha1992 I see another release candidate was cut and this is unmerged. Guessing this didn't make it given it's unmerged.

@iancha1992 iancha1992 removed the soft-release-blocker Soft release blockers that are nice to have, but shouldn't block the release if it's the last one. label Apr 15, 2026
@iancha1992 iancha1992 marked this pull request as ready for review April 15, 2026 07:10
@iancha1992 iancha1992 requested a review from a team as a code owner April 15, 2026 07:10
@github-actions github-actions bot added team-Rules-Server Issues for serverside rules included with Bazel awaiting-review PR is awaiting review from an assigned reviewer labels Apr 15, 2026
@iancha1992
Copy link
Copy Markdown
Member Author

@iancha1992 I see another release candidate was cut and this is unmerged. Guessing this didn't make it given it's unmerged.

@Silic0nS0ldier I think we need another RC. Let me check and merge this after confirming. Thank you for the reminder!

@iancha1992 iancha1992 added this pull request to the merge queue Apr 15, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 15, 2026
@iancha1992 iancha1992 added this pull request to the merge queue Apr 15, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 4a15353 Apr 15, 2026
47 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions team-Rules-Server Issues for serverside rules included with Bazel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants