Commit 49703087 authored by Jan Kiene's avatar Jan Kiene
Browse files

add new jobs

parent f0f70b0c
Loading
Loading
Loading
Loading
Loading
+92 −15
Original line number Diff line number Diff line
@@ -165,16 +165,21 @@ stages:
.activate-Werror-linux: &activate-Werror-linux
  - sed -i.bak "s/^# \(CFLAGS += -Werror\)/\1/" Makefile

.rules-pytest-short:
.rules-pytest-to-ref-short:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == "pytest-compare"
    - if: $CI_PIPELINE_SOURCE == 'push' && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # only have MR pipelines for MRs to main
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never
    - if: $CI_PIPELINE_SOURCE == 'schedule'
      when: never

.rules-pytest-to-main-short:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" # only have MR pipelines for MRs to main
    - if: $CI_PIPELINE_SOURCE == 'push'
      when: never

.rules-pytest-long:
  rules:
    - if: $PYTEST_MLD_LONG # Set by scheduled pipeline
@@ -500,13 +505,85 @@ build-codec-linux-instrumented-make:
    - make -j

# ---------------------------------------------------------------
# Short test jobs 
# Short test jobs that run in merge request pipelines
# ---------------------------------------------------------------

### jobs that test fx encoder -> flt decoder
ivas-pytest-compare_to_main-enc:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_DECODER_PATH=./IVAS_dec_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=1.0
  <<: *ivas-pytest-on-merge-request-anchor

ivas-pytest-compare_to_main-enc-lev-10:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_DECODER_PATH=./IVAS_dec_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=0.3162
  <<: *ivas-pytest-on-merge-request-anchor

ivas-pytest-compare_to_main-enc-lev+10:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_DECODER_PATH=./IVAS_dec_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=3.162
  <<: *ivas-pytest-on-merge-request-anchor

### jobs that test flt encoder -> fx decoder
ivas-pytest-compare_to_main-short-dec:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_ENCODER_PATH=./IVAS_cod_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=1.0
  <<: *ivas-pytest-on-merge-request-anchor

ivas-pytest-compare_to_main-short-lev-10:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_ENCODER_PATH=./IVAS_cod_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=0.3162
  <<: *ivas-pytest-on-merge-request-anchor

ivas-pytest-compare_to_main-short-dec-lev+10:
  extends:
    - .rules-pytest-to-main-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
    - DUT_ENCODER_PATH=./IVAS_cod_ref
    - TEST_SUITE="$SHORT_TEST_SUITE"
    - LEVEL_SCALING=3.162
  <<: *ivas-pytest-on-merge-request-anchor

# ---------------------------------------------------------------
# Short test jobs for running from web interface or schedule
# ---------------------------------------------------------------

### jobs that test fx encoder -> flt decoder
ivas-pytest-compare-enc:
ivas-pytest-compare_to_ref-enc:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux
  before_script:
    - USE_LTV=0
@@ -515,9 +592,9 @@ ivas-pytest-compare-enc:
    - LEVEL_SCALING=1.0
  <<: *ivas-pytest-anchor

ivas-pytest-compare-enc-lev-10:
ivas-pytest-compare_to_ref-enc-lev-10:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux    
  before_script:
    - USE_LTV=0
@@ -526,9 +603,9 @@ ivas-pytest-compare-enc-lev-10:
    - LEVEL_SCALING=0.3162
  <<: *ivas-pytest-anchor

ivas-pytest-compare-enc-lev+10:
ivas-pytest-compare_to_ref-enc-lev+10:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux    
  before_script:
    - USE_LTV=0
@@ -562,9 +639,9 @@ ivas-pytest-enc-usan:
  <<: *ivas-pytest-sanitizers-anchor
  
### jobs that test flt encoder -> fx decoder
ivas-pytest-compare_main-short-dec:
ivas-pytest-compare_to_ref-short-dec:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux    
  before_script:
    - USE_LTV=0
@@ -573,9 +650,9 @@ ivas-pytest-compare_main-short-dec:
    - LEVEL_SCALING=1.0
  <<: *ivas-pytest-anchor
  
ivas-pytest-compare_main-short-lev-10:
ivas-pytest-compare_to_ref-short-lev-10:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux    
  before_script:
    - USE_LTV=0  
@@ -584,9 +661,9 @@ ivas-pytest-compare_main-short-lev-10:
    - LEVEL_SCALING=0.3162
  <<: *ivas-pytest-anchor
  
ivas-pytest-compare_main-short-dec-lev+10:
ivas-pytest-compare_to_ref-short-dec-lev+10:
  extends:
    - .rules-pytest-short
    - .rules-pytest-to-ref-short
    - .test-job-linux    
  before_script:
    - USE_LTV=0