Limit failure logging to output, but ensure that full logs are available.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2020-10-08 09:36:42 -07:00
parent 0fd5283c12
commit af6700a692
8 changed files with 13 additions and 11 deletions

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/artix7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-artix7/"

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/kintex7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-kintex7/"

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-continuous-db-zynq7/"

View File

@ -28,7 +28,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/%(part)s/**"
strip_prefix: "github/symbiflow-prjxray-%(kokoro_type)s-db-%(part)s/"

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/artix7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-artix7/"

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/kintex7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-kintex7/"

View File

@ -16,7 +16,7 @@ action {
# Whole directories
# regex: "**/build/**" - Currently kokoro dies on number of artifacts.
regex: "**/build/*.log"
regex: "**/logs/**"
regex: "**/logs_*/**"
# The database
regex: "**/database/zynq7/**"
strip_prefix: "github/symbiflow-prjxray-presubmit-db-zynq7/"

View File

@ -645,11 +645,11 @@ def run_fuzzer(fuzzer_name, fuzzer_dir, fuzzer_logdir, logger, will_retry):
--------------------------------------------------------------------------
!Failed! @ {time_end} with exit code: {retcode}
--------------------------------------------------------------------------
- STDOUT: -
- STDOUT (see {stdout_fname} for full log):
--------------------------------------------------------------------------
{stdout_log}
--------------------------------------------------------------------------
- STDERR: -
- STDERR (see {stderr_fname} for full log):
--------------------------------------------------------------------------
{stderr_log}
--------------------------------------------------------------------------
@ -657,8 +657,10 @@ def run_fuzzer(fuzzer_name, fuzzer_dir, fuzzer_logdir, logger, will_retry):
--------------------------------------------------------------------------
""",
retcode=retcode,
stdout_log=open(fuzzer_stdout).read(),
stderr_log=open(fuzzer_stderr).read(),
stdout_fname=fuzzer_stdout,
stdout_log='\n'.join(last_lines(open(fuzzer_stdout), 1000)),
stderr_fname=fuzzer_stderr,
stderr_log='\n'.join(last_lines(open(fuzzer_stderr), 1000)),
time_end=time_end.isoformat())
else:
# Log the last 100 lines of a successful run