Skip to content

Commit

Permalink
[FLINK-19699][e2e] Upload coredumps and jvm crash debugging informati…
Browse files Browse the repository at this point in the history
…on as well for e2e tests
  • Loading branch information
rmetzger committed Oct 21, 2020
1 parent 6974e22 commit c8c93c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flink-end-to-end-tests/run-nightly-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ if [ ! -z "$TF_BUILD" ] ; then
export ARTIFACTS_DIR="${END_TO_END_DIR}/artifacts"
mkdir -p $ARTIFACTS_DIR || { echo "FAILURE: cannot create log directory '${ARTIFACTS_DIR}'." ; exit 1; }

function run_on_exit {
collect_coredumps $(pwd) $ARTIFACTS_DIR
compress_logs
}

# compress and register logs for publication on exit
function compress_logs {
echo "COMPRESSING build artifacts."
Expand All @@ -48,7 +53,7 @@ if [ ! -z "$TF_BUILD" ] ; then
tar -zcvf compressed-archive-dir/${COMPRESSED_ARCHIVE} -C $ARTIFACTS_DIR .
echo "##vso[task.setvariable variable=ARTIFACT_DIR]$(pwd)/compressed-archive-dir"
}
on_exit compress_logs
on_exit run_on_exit
fi

FLINK_DIR="`( cd \"$FLINK_DIR\" && pwd -P)`" # absolutized and normalized
Expand Down

0 comments on commit c8c93c5

Please sign in to comment.