diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 81e3d0a3d601d6dbf451343a34f97d208cd5e424..0356477d0cbc7cc72e84c588a4f5c110b3ba9de9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ variables: # note: GitLab cannot reference variables defined by users in the include ref:, we need to use a YAML anchor for this # see https://docs.gitlab.com/ci/yaml/includes/#use-variables-with-include for more information - IVAS_CODEC_CI_REF: &IVAS_CODEC_CI_REF main + IVAS_CODEC_CI_REF: &IVAS_CODEC_CI_REF reduce-console-log # If you need to set some config variable only in a local branch, then add an overwrite here # One example is DISABLE_HRTF - this will be set on a branch which is about to be merged and will be removed in a subsequent second MR # this is more easily done directly here in the child repo diff --git a/ci/setup_pages.py b/ci/setup_pages.py index dbb63c7521ec9202d0bd1544ea41f4f98c209ba2..bf4179502416729453eb0f04e3a3afa2d6c921fd 100755 --- a/ci/setup_pages.py +++ b/ci/setup_pages.py @@ -182,11 +182,10 @@ def curl_for_artifacts(job_id: int, project_id: int, exdir: str): "--output", ARTIFACTS, ] - print(cmd) subprocess.run(cmd, check=True) # check for valid archive (if not, it is likely a 404 page, then display that) - cmd = ["unzip", "-t", ARTIFACTS] + cmd = ["unzip", "-t", "-qq", ARTIFACTS] try: subprocess.run(cmd, check=True) except subprocess.CalledProcessError: @@ -195,7 +194,7 @@ def curl_for_artifacts(job_id: int, project_id: int, exdir: str): raise subprocess.CalledProcessError(-1, "Unzip check failed") # do the actual unzipping - cmd = ["unzip", ARTIFACTS, "-d", exdir] + cmd = ["unzip", "-q", ARTIFACTS, "-d", exdir] subprocess.run(cmd, check=True) diff --git a/pytest.ini b/pytest.ini index c52e1b7bbd61cd023d4045454868c4f916853f4f..98d8d181a000f1a8bb0c3d894740c6a5d979d3e4 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,7 +1,7 @@ # pytest.ini # note: per convention, this file is placed in the root directory of the repository [pytest] -addopts = --tb=short -n auto -v +addopts = --tb=short -n auto -ra # Write captured system-out log messages to JUnit report. junit_logging = system-out # Do not capture log information for passing tests to JUnit report. diff --git a/tests/create_short_testvectors.py b/tests/create_short_testvectors.py index 8b889c974fdbb55eb9c60b786ea8643a8f79369e..b280b53e8612b1b5624760f72bededfa9b60f8f5 100755 --- a/tests/create_short_testvectors.py +++ b/tests/create_short_testvectors.py @@ -37,6 +37,7 @@ Create short (5sec) testvectors. import argparse import sys import logging +import os from pathlib import Path from cut_pcm import cut_samples @@ -112,7 +113,7 @@ def create_short_testvectors( out_file = TEST_VECTOR_DIR.joinpath(f.stem + suffix + f.suffix) num_channels = audiofile.get_wav_file_info(f)["channels"] - logging.info(f"{str(f)} -> {out_file}") + logging.debug(f"{str(f)} -> {out_file}") if not dry: cut_samples(f, out_file, num_channels, CUT_FROM, f"{cut_len}", GAIN) @@ -167,6 +168,8 @@ if __name__ == "__main__": assert not (args.use_ltv and args.ltv_dir is None) logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s") + if os.environ.get("IVAS_CI_PYTHON_LOG_LEVEL") == "DEBUG": + logging.basicConfig(level=logging.DEBUG, format="%(levelname)s: %(message)s") sys.exit( create_short_testvectors(