Skip to content

Commit 3f56f27

Browse files
fweikertmbland
authored andcommitted
Reduce shell test flakiness.
We've seen an increasing number of flakes due to a) transient network issues and b) the fact that a subset of CI workers has an /etc/bazel.bazelrc file. This change addresses both issues by disabling bzlmod (thus avoiding any requests to BCR) and by filtering out irrelevant log entries. PiperOrigin-RevId: 638217146 Change-Id: I525a3abcdc824a40aba602d57b0b51f51c94a695
1 parent f143bf4 commit 3f56f27

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/shell/integration/bazel_command_log_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ function strip_lines_from_bazel_cc() {
4646
-e '/^WARNING: The startup option --host_javabase is deprecated; prefer --server_javabase.$/d' \
4747
-e '/^WARNING: The home directory is not defined, no home_rc will be looked for.$/d' \
4848
-e '/^WARNING: ignoring JAVA_TOOL_OPTIONS in environment.$/d' \
49+
-e '/^WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:$/d' \
50+
-e '/^\/etc\/bazel.bazelrc$/d' \
4951
-e '/Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release/d' \
5052
-e '/^E[0-9]* /d' \
5153
$TEST_log)

0 commit comments

Comments
 (0)