Internal change.

PiperOrigin-RevId: 296972565
This commit is contained in:
Brad Burlage
2020-02-24 14:22:32 -08:00
committed by gVisor bot
parent c37b196455
commit ededa90d07
6 changed files with 60 additions and 2 deletions
+10
View File
@@ -4,3 +4,13 @@ env_vars {
key: "RUNTIME_TEST_NAME"
value: "go1.12"
}
action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
regex: "**/runsc"
regex: "**/runsc.*"
}
}
+10
View File
@@ -4,3 +4,13 @@ env_vars {
key: "RUNTIME_TEST_NAME"
value: "java11"
}
action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
regex: "**/runsc"
regex: "**/runsc.*"
}
}
+10
View File
@@ -4,3 +4,13 @@ env_vars {
key: "RUNTIME_TEST_NAME"
value: "nodejs12.4.0"
}
action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
regex: "**/runsc"
regex: "**/runsc.*"
}
}
+10
View File
@@ -4,3 +4,13 @@ env_vars {
key: "RUNTIME_TEST_NAME"
value: "php7.3.6"
}
action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
regex: "**/runsc"
regex: "**/runsc.*"
}
}
+10
View File
@@ -4,3 +4,13 @@ env_vars {
key: "RUNTIME_TEST_NAME"
value: "python3.7.3"
}
action {
define_artifacts {
regex: "**/sponge_log.xml"
regex: "**/sponge_log.log"
regex: "**/outputs.zip"
regex: "**/runsc"
regex: "**/runsc.*"
}
}
+10 -2
View File
@@ -70,7 +70,9 @@ function collect_logs() {
for d in `find -L "bazel-testlogs" -name 'shard_*_of_*' | xargs dirname | sort | uniq`; do
junitparser merge `find $d -name test.xml` $d/test.xml
cat $d/shard_*_of_*/test.log > $d/test.log
ls -l $d/shard_*_of_*/test.outputs/outputs.zip && zip -r -1 $d/outputs.zip $d/shard_*_of_*/test.outputs/outputs.zip
if ls -l $d/shard_*_of_*/test.outputs/outputs.zip 2>/dev/null; then
zip -r -1 "$d/outputs.zip" $d/shard_*_of_*/test.outputs/outputs.zip
fi
done
find -L "bazel-testlogs" -name 'shard_*_of_*' | xargs rm -rf
# Move test logs to Kokoro directory. tar is used to conveniently perform
@@ -90,7 +92,13 @@ function collect_logs() {
echo " gsutil cp gs://gvisor/logs/${KOKORO_BUILD_ARTIFACTS_SUBDIR}/${archive} /tmp"
echo " https://storage.cloud.google.com/gvisor/logs/${KOKORO_BUILD_ARTIFACTS_SUBDIR}/${archive}"
fi
tar --create --gzip --file="${KOKORO_ARTIFACTS_DIR}/${archive}" -C "${RUNSC_LOGS_DIR}" .
time tar \
--verbose \
--create \
--gzip \
--file="${KOKORO_ARTIFACTS_DIR}/${archive}" \
--directory "${RUNSC_LOGS_DIR}" \
.
fi
fi
fi