Commit 88c81036 authored by Jan Kiene's avatar Jan Kiene
Browse files

also archive no-frameloss logs from sanitizer run

parent 70cf2baf
Loading
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -481,21 +481,21 @@ codec-comparison-on-main-push:
    when: always
    paths:
      - ep_015.g192
      - "CLANG*/logs"
      - "CLANG*/logs*"

sanitizer-test-mono:
  extends: .sanitizer-test-template
  rules:
    - if: $IS_SANITIZER_TEST_RUN
  script:
    - python3 ci/run_scheduled_sanitizer_test.py mono mono --tests $SANITIZER_TESTS
#sanitizer-test-mono:
  #extends: .sanitizer-test-template
  #rules:
    #- if: $IS_SANITIZER_TEST_RUN
  #script:
    #- python3 ci/run_scheduled_sanitizer_test.py mono mono --tests $SANITIZER_TESTS

sanitizer-test-stereo:
  extends: .sanitizer-test-template
  rules:
    - if: $IS_SANITIZER_TEST_RUN
      when: delayed
      start_in: 20 minutes
      #when: delayed
      #start_in: 20 minutes
  script:
    - python3 ci/run_scheduled_sanitizer_test.py stereo $OUT_FORMATS_CHANNEL_BASED --tests $SANITIZER_TESTS

+11 −3
Original line number Diff line number Diff line
@@ -93,12 +93,20 @@ def run_check(modes: list, out_formats: list, tests: list, run_fec: bool = True)
    subprocess.call(GENPATT_CMD.split())

    # cleanup to avoid script errors
    # we want "logs" and "dec" subfolders to be empty -> delete and recreate them
    cleanup_folders = ["logs", "dec"]
    # we want "logs" and "dec" subfolders to be empty -> delete "dec" and rename "log"
    # to keep the log files from the first run with no frame losses
    folders_to_delete = ["dec"]
    folders_to_backup = ["logs"]
    for t in tests:
        for fol in cleanup_folders:
        for fol in folders_to_delete:
            for fi in pathlib.Path(t).joinpath(fol).iterdir():
                fi.unlink()
        for fol in folders_to_backup:
            path = pathlib.Path(t).joinpath(fol)
            new_name = path.Path(str(path) + "_noPLC")
            path.rename(new_name)
            # need empty log folder to avoid crashes
            path.mkdir()

    cmd_fec = cmd_no_fec + ["--decoder_only", "-f", EP_FILE]
    print("======== Script command line WITH plc: ========\n{}".format(" ".join(cmd_no_fec)))