Commit c846eb93 authored by TYAGIRIS's avatar TYAGIRIS
Browse files

Merge branch 'main' into 698-Fix-SBA-MSAN-issue-properly

parents ea21fcf5 0dfdd419
Loading
Loading
Loading
Loading
Loading
+54 −5
Original line number Diff line number Diff line
@@ -12,6 +12,13 @@ variables:
  EXIT_CODE_FAIL: 1
  PROCESSING_SCRIPTS_BIN_DIR: "/test-bin"
  TESTS_DIR_CODEC_BE_ON_MR: "tests/codec_be_on_mr_nonselection"
  MANUAL_PIPELINE_TYPE:
    description: "Type for the manual pipeline run. Use 'test-be-release' to run BE test against release codec."
    value: 'default'
    options:
      - 'default'
      - 'test-be-release'


default:
  interruptible: true # Make all jobs by default interruptible
@@ -143,6 +150,8 @@ stages:
      when: never
    - if: $CI_PIPELINE_SOURCE == 'trigger' # Don't run triggered pipeline by default
      when: never
    - if: $MANUAL_PIPELINE_TYPE == 'test-be-release' # Skip all the normal jobs when testing manually against release codec
      when: never
    - when: on_success

.rules-merge-request:
@@ -326,15 +335,20 @@ codec-smoke-test:
    - .rules-merge-request
  timeout: "10 minutes"
  stage: test
  needs: ["build-codec-linux-cmake"]
  needs: ["build-codec-linux-cmake", "build-codec-linux-make", "build-codec-instrumented-linux", "build-codec-sanitizers-linux"]
  script:
    - *print-common-info
    # LTV update needed as ltv ISM metadata files are used
    - *update-ltv-repo
    - bash ci/smoke_test.sh
    ### analyze for failures
    - if cat smoke_test_output.txt | grep -c "failed"; then echo "Smoke test without PLC failed"; exit 1; fi
    - if cat smoke_test_output_plc.txt | grep -c "failed"; then echo "Smoke test with PLC failed"; exit 1; fi
    - if cat smoke_test_output_jbm_noEXT.txt | grep -c "failed"; then echo "Smoke test JBM part failed"; exit 1; fi
    - if cat smoke_test_output_hrtf.txt | grep -c "failed"; then echo "Smoke test with external hrtf files failed"; exit 1; fi
    - if ! [ -s smoke_test_output.txt ] || ! [ -s smoke_test_output_plc.txt ] || ! [ -s smoke_test_output_jbm_noEXT.txt ] || ! [ -s smoke_test_output_hrtf.txt ]; then echo "Error in smoke test"; exit 1; fi
    - ret_val=0
    - if cat smoke_test_output.txt | grep -c "failed"; then echo "Smoke test without PLC failed"; ret_val=1; fi
    - if cat smoke_test_output_plc.txt | grep -c "failed"; then echo "Smoke test with PLC failed"; ret_val=1; fi
    - if cat smoke_test_output_jbm_noEXT.txt | grep -c "failed"; then echo "Smoke test JBM part failed"; ret_val=1; fi
    - if cat smoke_test_output_hrtf.txt | grep -c "failed"; then echo "Smoke test with external hrtf files failed"; ret_val=1; fi
    - exit $ret_val
  artifacts:
    name: "mr-$CI_MERGE_REQUEST_IID--sha-$CI_COMMIT_SHORT_SHA--stage-$CI_JOB_STAGE--results"
    expire_in: 1 week
@@ -1034,6 +1048,40 @@ codec-comparison-on-main-push:
    reports:
      junit: report-junit.xml


# ---------------------------------------------------------------
# Manual jobs
# ---------------------------------------------------------------

test-be-to-release:
  stage: test
  tags:
    - ivas-windows
  resource_group: ivas-be-to-release-test-resource
  timeout: "20 minutes"
  rules:
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == 'test-be-release'
  script:

    - echo "$CI_COMMIT_BRANCH"
    - MSBuild.exe .\Workspace_msvc\Workspace_msvc.sln /property:Configuration=Debug /p:Platform=win32 /m | tee -variable winoutdata
    - $winoutdata | Out-File $BUILD_OUTPUT -Encoding Utf8
    - ("& python ci/check_for_warnings.py '$BUILD_OUTPUT'") | Invoke-Expression
    - ("exit $LASTEXITCODE") | Invoke-Expression

    # path to release candidate refs defined in config.toml

    - echo "Placeholder for BE test to release script"
    - mkdir logs

  artifacts:
    name: "test-be-to-release--sha-$CI_COMMIT_SHORT_SHA--results"
    when: always
    expire_in: 1 week
    paths:
      - logs/
    expose_as: "test-be-to-release results"

# ---------------------------------------------------------------
# Scheduled jobs on main
# ---------------------------------------------------------------
@@ -1288,6 +1336,7 @@ coverage-test-on-main-scheduled:
  timeout: 2 hours
  script:
    - *print-common-info
    - *update-ltv-repo
    - make GCOV=1 -j
    - cp IVAS_rend IVAS_rend_ref # Copy exec to be able to run renderer script
    - python3 tests/create_short_testvectors.py
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ def main():

    result_dict = dict()
    # run first part in parallel
    with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:
    with concurrent.futures.ThreadPoolExecutor() as executor:
        executor.map(
            run_file, README_FILES_PARALLEL, BIN_PATHS, [result_dict] * len(README_FILES_PARALLEL)
        )
+20 −14
Original line number Diff line number Diff line
@@ -42,19 +42,24 @@ def run_condition(eval_cmd, diff_cmd, id_count):
    cmd = subprocess.run(eval_cmd.split(), capture_output=True, text=True, check=True)

    # diff
    diff_success = 1
    diff_fails = ''
    if ';' in diff_cmd:
        # JBM cases
        diff_cmd1, diff_cmd2 = diff_cmd.split(';')
        cmd1 = subprocess.run(diff_cmd1.split(), capture_output=True, text=True, check=True)
        cmd2 = subprocess.run(diff_cmd2.split(), capture_output=True, text=True, check=True)
        diff_success = cmd1.returncode + cmd2.returncode
        cmd1 = subprocess.run(diff_cmd1.split(), stdout=subprocess.DEVNULL, check=False)
        cmd2 = subprocess.run(diff_cmd2.split(), stdout=subprocess.DEVNULL, check=False)
        if cmd1.returncode != 0:
            diff_fails += f'{diff_cmd1}\n'
        if cmd2.returncode != 0:
            diff_fails += f'{diff_cmd2}\n'
    else:
        cmd = subprocess.run(diff_cmd.split(), capture_output=True, text=True, check=True)
        diff_success = cmd.returncode
    if diff_success == 0:
        return None
        cmd = subprocess.run(diff_cmd.split(), stdout=subprocess.DEVNULL, check=False)
        if cmd.returncode != 0:
            diff_fails += f'{diff_cmd}\n'
    if diff_fails:
        return diff_fails
    else:
        return f'[{str(id_count).rjust(3)}] FAIL: {" ".join(eval_cmd)}\n            {diff_cmd}\n'
        return None


def environment_is_correct(paths):
@@ -116,6 +121,7 @@ if __name__ == '__main__':
                    if os.path.exists(tmp_dir):
                        shutil.rmtree(tmp_dir)
                    os.makedirs(tmp_dir)
                line = line.replace('testv', f'{test_vec_dir}/testv')
                line = line if tmp_dir is None else line.replace(
                    '$TMP/', f'{tmp_dir}/')
                if '$CUT_DEC_BIN' in line:
@@ -138,11 +144,11 @@ if __name__ == '__main__':

    results = [r.get() for r in results if r.get()]
    if results:
        print(f'\n{len(results)} test conditions failed:')
        print('\n'.join(results))
        print(f'\n --- {len(results)} test conditions failed ---')
        print(''.join(results))
        with open('failed.txt', 'w') as f:
            print(f'\n{len(results)} test conditions failed:', file=f)
            print('\n'.join(results), file=f)
            print(f' --- {len(results)} test conditions failed ---', file=f)
            print(''.join(results), file=f)
        sys.exit(1)
    else:
        print('\n *** All tests passed! ***')
+224 −45
Original line number Diff line number Diff line
@@ -949,18 +949,42 @@
                    16400,
                    24400,
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        },
@@ -1139,13 +1163,46 @@
            "mono": false,
            "bitrates": {
                "wb": [
                    48000
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    48000
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    48000
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        },
@@ -1176,6 +1233,10 @@
            "mono": false,
            "bitrates": {
                "wb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
@@ -1187,6 +1248,10 @@
                    512000
                ],
                "swb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
@@ -1198,6 +1263,7 @@
                    512000
                ],
                "fb": [
                    32000,
                    48000,
                    64000,
                    80000,
@@ -1242,18 +1308,42 @@
                    16400,
                    24400,
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    32000,
                    48000
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        },
@@ -1285,13 +1375,46 @@
            "mono": false,
            "bitrates": {
                "wb": [
                    48000
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    48000
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    48000
                    32000,
                    48000,
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        },
@@ -1323,18 +1446,46 @@
            "mono": false,
            "bitrates": {
                "wb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    80000
                    64000,
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    32000,
                    48000,
                    64000,
                    80000
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        },
@@ -1366,18 +1517,46 @@
            "mono": false,
            "bitrates": {
                "wb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "swb": [
                    13200,
                    16400,
                    24400,
                    32000,
                    48000,
                    64000,
                    80000
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ],
                "fb": [
                    32000,
                    48000,
                    64000,
                    80000
                    80000,
                    96000,
                    128000,
                    192000,
                    256000,
                    384000,
                    512000
                ]
            }
        }
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ cp -R ../Makefile $targetdir
cp -R ../CMakeLists.txt $targetdir
cp -R ../Workspace_msvc $targetdir
if [ $INCLUDE_SPLIT -eq 0 ]; then
    strip_split_rendering.sh $targetdir
    ./strip_split_rendering.sh $targetdir
fi

# back up #ifdef-list
Loading