From 26e87b43972d819c8c010443bf5d92f32df15fd9 Mon Sep 17 00:00:00 2001 From: knj Date: Mon, 12 Sep 2022 09:23:26 +0200 Subject: [PATCH] add artifacts fr sanitizer job and print out command lines better --- .gitlab-ci.yml | 10 ++++++++-- ci/run_scheduled_sanitizer_test.py | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6fae39e855..10a68952bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -468,9 +468,15 @@ sanitizer-test-on-main-scheduled: - if: $SANITIZER_TEST_IN_FMT && $SANITIZER_TEST_OUT_FMTS && $SANITIZER_TEST_TESTS script: - *print-common-info - - echo "Running scheduled sanitizer" - - echo " $SANITIZER_TEST_IN_FMT && $SANITIZER_TEST_OUT_FMTS && $SANITIZER_TEST_TESTS " + - echo "Running scheduled sanitizer tests $SANITIZER_TEST_TESTS for input format $SANITIZER_TEST_IN_FMT and output format(s) $SANITIZER_TEST_OUT_FMTS" + - python3 ci/run_scheduled_sanitizer_test.py $SANITIZER_TEST_IN_FMT $SANITIZER_TEST_OUT_FMTS --tests $SANITIZER_TEST_TESTS + artifacts: + name: "sanitizer-test-results-and-error_pattern-$SANITIZER_TEST_IN_FMT-in-$SANITIZER_TEST_OUT_FMTS-out" + when: always + paths: + - ep_015.g192 + - "./*/logs" # --------------------------------------------------------------- diff --git a/ci/run_scheduled_sanitizer_test.py b/ci/run_scheduled_sanitizer_test.py index 7c8f53aff8..073f9f70bf 100644 --- a/ci/run_scheduled_sanitizer_test.py +++ b/ci/run_scheduled_sanitizer_test.py @@ -60,7 +60,8 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True) "--oc", *out_formats, ] - print(cmd_no_fec) + + print("======== Script command line WITHOUT plc: ========\n{}".format(" ".join(cmd_no_fec))) proc = subprocess.Popen(cmd_no_fec, stdout=subprocess.PIPE, stderr=subprocess.PIPE) for c in iter(lambda: proc.stdout.read(1), b""): @@ -89,7 +90,7 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True) fi.unlink() cmd_fec = cmd_no_fec + ["--decoder_only", "-f", EP_FILE] - print(cmd_fec) + print("======== Script command line WITH plc: ========\n{}".format(" ".join(cmd_no_fec))) proc = subprocess.Popen(cmd_fec, stdout=subprocess.PIPE, stderr=subprocess.PIPE) for c in iter(lambda: proc.stdout.read(1), b""): -- GitLab