infra: Rework the artifact capture.

* Should capture logs / build directory output on failure.
 * Should capture the database output on success.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-02-06 11:46:44 +11:00
parent 863621ca14
commit 8d65b6921d
8 changed files with 46 additions and 14 deletions

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/build/**"
regex: "database/artix7/**" regex: "**/logs/**"
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-artix7/"
} }
} }

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/build/**"
regex: "database/kintex7/**" regex: "**/logs/**"
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-kintex7/"
} }
} }

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/build/**"
regex: "database/zynq7/**" regex: "**/logs/**"
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-zynq7/"
} }
} }

View File

@ -5,6 +5,9 @@ timeout_mins: 10
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/logs/**"
regex: "**/build/**"
regex: "**/database/**"
strip_prefix: "github/symbiflow-prjxray-db/"
} }
} }

View File

@ -53,6 +53,7 @@ echo "----------------------------------------"
echo "----------------------------------------" echo "----------------------------------------"
# Check there is nothing to do after running... # Check there is nothing to do after running...
echo
if [ $(make --dry-run | grep -v 'Nothing to be done' | wc -l) -gt 0 ]; then if [ $(make --dry-run | grep -v 'Nothing to be done' | wc -l) -gt 0 ]; then
echo "The following targets need to still run!" echo "The following targets need to still run!"
make --dry-run make --dry-run
@ -60,6 +61,7 @@ echo "----------------------------------------"
echo "Debug output on why they still need to run" echo "Debug output on why they still need to run"
make --dry-run --debug make --dry-run --debug
echo "----------------------------------------" echo "----------------------------------------"
exit 1
else else
echo "All good, nothing more to do!" echo "All good, nothing more to do!"
fi fi
@ -94,4 +96,19 @@ echo "----------------------------------------"
echo "----------------------------------------" echo "----------------------------------------"
# Check the database and fail if it is broken. # Check the database and fail if it is broken.
make checkdb-${XRAY_SETTINGS} #make checkdb-${XRAY_SETTINGS}
# If we get here, then all the fuzzers completed fine. Hence we are
# going to assume we don't want to keep all the build / logs / etc (as
# they are quite large). Thus do a clean to get rid of them.
echo
echo "========================================"
echo " Cleaning up after success"
echo "----------------------------------------"
(
cd fuzzers
echo
echo "Cleaning up so CI doesn't save all the excess data."
make clean
)
echo "----------------------------------------"

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/logs/**"
regex: "database/artix7/**" regex: "**/build/**"
regex: "**/database/artix7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-artix7/"
} }
} }

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/logs/**"
regex: "database/kintex7/**" regex: "**/build/**"
regex: "**/database/kintex7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-kintex7/"
} }
} }

View File

@ -7,8 +7,10 @@ timeout_mins: 4320
action { action {
define_artifacts { define_artifacts {
regex: "**/*result*.xml" regex: "**/*result*.xml"
regex: "**/*.log" regex: "**/logs/**"
regex: "database/zynq7/**" regex: "**/build/**"
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-zynq7/"
} }
} }