mirror of https://github.com/openXC7/prjxray.git
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:
parent
0fd5283c12
commit
af6700a692
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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/"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue