Skip to content

Commit

Permalink
Add an additional attempt to get a heap histogram since jmap on Bazel…
Browse files Browse the repository at this point in the history
… CI appears to be flaky in connecting to the JVM.

PiperOrigin-RevId: 182118581
  • Loading branch information
janakdr authored and Copybara-Service committed Jan 16, 2018
1 parent d087df0 commit 2b876c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/test/shell/integration/discard_graph_edges_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ genrule(name = 'action${i}',
srcs = [':action${iminus}'],
outs = ['histo.${i}'],
local = 1,
# Try to get a histogram three times because of Bazel CI flakiness.
cmd = 'server_pid=\$\$(cat $server_pid_file) ; ' +
'$javabase/bin/jmap -histo:live \$\$server_pid > ' +
'\$(location histo.${i}) ' +
'for i in 1 2 3 ; do' +
' $javabase/bin/jmap -histo:live \$\$server_pid > ' +
' \$(location histo.${i}) && break ;' +
'done ' +
'|| echo "server_pid in genrule: \$\$server_pid"'
)
EOF
Expand Down
3 changes: 1 addition & 2 deletions src/test/shell/integration/discard_graph_edges_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,7 @@ function test_packages_cleared_implicit_noincrementality_data() {
BUILD_FLAGS="$old_build_flags"
}

# Flaky on ci: https://ci.bazel.build/job/bazel-tests/1710/
function DISABLED_test_actions_deleted_after_execution_nobatch_keep_analysis () {
function test_actions_deleted_after_execution_nobatch_keep_analysis () {
readonly local old_startup_flags="$STARTUP_FLAGS"
STARTUP_FLAGS="--nobatch"
readonly local old_build_flags="$BUILD_FLAGS"
Expand Down

0 comments on commit 2b876c1

Please sign in to comment.