Commit 960fffa1 authored by Jan Kiene's avatar Jan Kiene
Browse files

check for up to date branch after build of reference

parent 3af8351a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -438,6 +438,7 @@ stages:
    - *get-commits-behind-count
    - |
      if [ $commits_behind_count -ne 0 ]; then
        set +x
        echo -e "Your branch is $commits_behind_count commits behind the target branch, possibly main changed during your pipeline run. Checking bitexactness or testing for regressions now can result in meaningless results. Run\n\t git pull origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME\nto update."
        exit 1
      fi
@@ -451,7 +452,6 @@ stages:
    XML_REPORT: "report--$CI_JOB_NAME--sha-$CI_COMMIT_SHORT_SHA.xml"
    HTML_REPORT: "report--$CI_JOB_NAME--sha-$CI_COMMIT_SHORT_SHA.html"
  script:
    - *check-up-to-date-in-comparison-jobs
    - *print-common-info

    - set -euxo pipefail
@@ -472,6 +472,7 @@ stages:
    - fi

    - *build-and-create-reference-outputs
    - *check-up-to-date-in-comparison-jobs

    - exit_code=0
    - rm -rf .pytest_cache || true
@@ -555,7 +556,6 @@ stages:
    IMAGES_ARTIFACT_NAME: "images_$CI_JOB_NAME"
    SUMMARY_HTML_ARTIFACT_NAME: "summary_$CI_JOB_NAME.html"
  script:
    - *check-up-to-date-in-comparison-jobs
    - *print-common-info

    - set -euxo pipefail
@@ -592,6 +592,7 @@ stages:
    ### run branch first
    # this per default builds the branch and the reference and creates the reference outputs
    - *build-and-create-reference-outputs
    - *check-up-to-date-in-comparison-jobs
    # need to restore cache again
    - *overwrite-pytest-cache-with-artifact
    - python3 -m pytest --tb=no -q $TEST_SUITE -v --keep_files --create_cut --html=$HTML_REPORT_BRANCH --self-contained-html --junit-xml=$XML_REPORT_BRANCH --mld --ssnr --odg --ref_encoder_path $REF_ENCODER_PATH --ref_decoder_path $REF_DECODER_PATH --dut_encoder_path $DUT_ENCODER_PATH --dut_decoder_path $DUT_DECODER_PATH -n auto --testcase_timeout $testcase_timeout || true