Merge pull request #786 from antmicro/vivado_logs

infra: Collect Vivado logs into tgz archive
This commit is contained in:
litghost 2019-04-18 14:32:32 -07:00 committed by GitHub
commit 7f9cab1569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 20 additions and 2 deletions

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -53,11 +53,22 @@ echo "----------------------------------------"
# - 074 completes in ~60 minutes
# which is well before the 05x INT fuzzers complete.
export MAX_VIVADO_PROCESS=$((CORES/2 < 20 ? CORES/2 : 20))
set -x
set -x +e
script --return --flush --command "make -j $CORES MAX_VIVADO_PROCESS=$MAX_VIVADO_PROCESS" -
set +x
DATABASE_RET=$?
set +x -e
echo "----------------------------------------"
# Collect the Vivado logs into one tgz archive
echo "Collecting Vivado logs"
find . -name vivado.log | xargs tar -czvf vivado.tgz
echo "----------------------------------------"
if [[ $DATABASE_RET != 0 ]] ; then
echo "A failure occurred during Database build."
exit $DATABASE_RET
fi
# Check there is nothing to do after running...
echo
if [ $(make --dry-run | grep -v 'Nothing to be done' | wc -l) -gt 0 ]; then

View File

@ -15,6 +15,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"

View File

@ -12,6 +12,7 @@ action {
regex: "**/diff.patch"
regex: "**/*result*.xml"
regex: "**/*sponge_log.xml"
regex: "**/fuzzers/vivado.tgz"
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"