forked from bazelbuild/bazel
-
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.
TestRunnerAction
now produces a TestResult
when test lifecycle fa…
…ils at runtime. Test execution entails running the target's test binary, and even if the binary has been successfully built, the build tool may encounter failures when spawning the test executable process. Previously this scenario did not produce a TestResult or TestSummary BEP event; this is now fixed. Similarly fixed is the scenario where execution fails after spawning the test process successfully. The exception-handling logic that needed fixing is entirely within `TestRunnerAction` which contains the general-purpose logic for the lifecycle of a test. In order to report actual `INCOMPLETE` test results in these circumstances we do need to extend existing `TestStrategy` implementations to create concrete implementations of `TestAttemptResult`. RELNOTES: Tests that fail to create or complete their `TestAttemptContinuation` by throwing an `ExecException` will report an `INCOMPLETE` status. Previously, Bazel would fail to report any status for the test attempt. PiperOrigin-RevId: 426455101
- Loading branch information
1 parent
5c4422e
commit 64ac2a8
Showing
8 changed files
with
419 additions
and
96 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
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
Oops, something went wrong.