summaryrefslogtreecommitdiffhomepage
path: root/kokoro
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2019-05-03 11:20:12 -0700
committerShentubot <shentubot@google.com>2019-05-03 11:21:22 -0700
commit3f3e3a63033f87dd42076423661b62c04d10c15f (patch)
tree07273107138b0fcde054748337d0b9fa0b08ccd0 /kokoro
parent458fe955a74bca6c33cb321901d771cf146f5cc6 (diff)
gvisor/kokoro: save runsc logs
PiperOrigin-RevId: 246542315 Change-Id: Ia9ba2bc104e0af3277d3b6102122c13d320ea802
Diffstat (limited to 'kokoro')
-rw-r--r--kokoro/continuous.cfg2
-rw-r--r--kokoro/presubmit.cfg1
-rwxr-xr-xkokoro/run_tests.sh3
3 files changed, 6 insertions, 0 deletions
diff --git a/kokoro/continuous.cfg b/kokoro/continuous.cfg
index a834db198..8da47736a 100644
--- a/kokoro/continuous.cfg
+++ b/kokoro/continuous.cfg
@@ -7,5 +7,7 @@ action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
+ regex: "**/outputs.zip"
+ regex: "**/runsc-logs.tar.gz"
}
}
diff --git a/kokoro/presubmit.cfg b/kokoro/presubmit.cfg
index 2d8ab76d6..8da47736a 100644
--- a/kokoro/presubmit.cfg
+++ b/kokoro/presubmit.cfg
@@ -8,5 +8,6 @@ action {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
+ regex: "**/runsc-logs.tar.gz"
}
}
diff --git a/kokoro/run_tests.sh b/kokoro/run_tests.sh
index 08f678e39..c5c6a7780 100755
--- a/kokoro/run_tests.sh
+++ b/kokoro/run_tests.sh
@@ -183,6 +183,9 @@ upload_test_artifacts() {
find -L "bazel-testlogs" -name "test.xml" -o -name "test.log" -o -name "outputs.zip" |
tar --create --files-from - --transform 's/test\./sponge_log./' |
tar --extract --directory ${KOKORO_ARTIFACTS_DIR}
+ if [[ -d "/tmp/${RUNTIME}/logs" ]]; then
+ tar --create --gzip "--file=${KOKORO_ARTIFACTS_DIR}/runsc-logs.tar.gz" -C /tmp/ ${RUNTIME}/logs
+ fi
}
# Finish runs at exit, even in the event of an error, and uploads all test