Commit 824b379e authored by Jan Kiene's avatar Jan Kiene
Browse files

introduce anchor for sanitizers

parent 91a89e48
Loading
Loading
Loading
Loading
Loading
+35 −26
Original line number Diff line number Diff line
@@ -229,6 +229,38 @@ stages:
      junit:
        - report-junit.xml
          

.ivas-pytest-sanitizers-anchor: &ivas-pytest-sanitizers-anchor:
  stage: test
  needs: ["build-codec-linux-make"]
  timeout: "90 minutes"
  rules:
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'schedule' && $IVAS_PYTEST_MSAN
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == "msan-stv"
  script:
    - *print-common-info
    - *update-scripts-repo
    - *remove-unsupported-testcases
    - *setup-codec
    - make clean
    - make -j CLANG=$CLANG_NUM
    - testcase_timeout=900
    - python3 -m pytest $SHORT_TEST_SUITE -v --update_ref 1 -m create_ref --html=report.html --self-contained-html --junit-xml=report-junit.xml --testcase_timeout $testcase_timeout --ref_encoder_path ./IVAS_cod_ref --ref_decoder_path ./IVAS_dec
  artifacts:
    name: "ivas-pytest-dec-msan--sha-$CI_COMMIT_SHORT_SHA--results"
    when: always
    expire_in: "2 weeks"
    paths:
      - report-junit.xml
      - report.html
    reports:
      junit:
        - report-junit.xml

# ---------------------------------------------------------------
# Build jobs
# ---------------------------------------------------------------
@@ -321,32 +353,9 @@ ivas-pytest-mld-dec-lev+10:
ivas-pytest-dec-msan:
  extends:
    - .test-job-linux
  rules:
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'schedule' && $IVAS_PYTEST_MSAN
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == "msan-stv"
  script:
    - *print-common-info
    - *update-scripts-repo
    - *remove-unsupported-testcases
    - *setup-codec
    - make clean
    - make -j CLANG=1
    - testcase_timeout=900
    - python3 -m pytest $SHORT_TEST_SUITE -v --update_ref 1 -m create_ref --html=report.html --self-contained-html --junit-xml=report-junit.xml --testcase_timeout $testcase_timeout --ref_encoder_path ./IVAS_cod_ref --ref_decoder_path ./IVAS_dec
  artifacts:
    name: "ivas-pytest-dec-msan--sha-$CI_COMMIT_SHORT_SHA--results"
    when: always
    expire_in: "2 weeks"
    paths:
      - report-junit.xml
      - report.html
    reports:
      junit:
        - report-junit.xml
  before_script:
    - CLANG_NUM=1
  <<: *ivas-pytest-sanitizers-anchor

# ---------------------------------------------------------------
# Long test jobs