Deflake test_build_fail_terse_summary.
The flakiness results from an actual race condition that makes it indeterminate whether CompletionFunction is called for the tests that depend on an artifact that fails to build.
As far as I understand, it should not be, since it depends on a SkyValue in error in a --nokeep_going build; however, according to the comment in AbstractParallelEvaluator.Evaluate.run() ("there is a race-like opportunity for the error to be used"), it's a known quirk of Skyframe.
printf-style debugging supports this theory: on flakes, CompletionFunction and AggregatingTestListener.targetComplete()) are called, on successful test runs, they are not.
Is sadness.
RELNOTES: None.
PiperOrigin-RevId: 253178762
diff --git a/src/test/shell/integration/test_test.sh b/src/test/shell/integration/test_test.sh
index 924abe9..54f3a54 100755
--- a/src/test/shell/integration/test_test.sh
+++ b/src/test/shell/integration/test_test.sh
@@ -143,7 +143,7 @@
&& fail "expected failure" || :
expect_not_log 'NO STATUS'
expect_log 'testsrc'
- expect_log 'were skipped'
+ expect_log '[1-9] w[a-z]* skipped'
}
# Regression test for b/67463263: Tests that spawn subprocesses must not block