From 6226cc5e9247530d5ae813da35bc104e6237a765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marlene=20Kre=C3=9F?= Date: Tue, 1 Aug 2023 12:48:08 +0200 Subject: [PATCH] 46: Fixed log_level in api calls missing (#49) --- doc/changes/changes_1.4.0.md | 23 +++++++++++++++++++ .../lib/ci_build.py | 14 ++++++++--- .../lib/ci_export.py | 5 +++- .../lib/ci_push.py | 5 +++- .../lib/ci_security_scan.py | 6 ++++- .../lib/ci_test.py | 4 +++- 6 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 doc/changes/changes_1.4.0.md diff --git a/doc/changes/changes_1.4.0.md b/doc/changes/changes_1.4.0.md new file mode 100644 index 0000000..771d499 --- /dev/null +++ b/doc/changes/changes_1.4.0.md @@ -0,0 +1,23 @@ +# Script-Languages-Container-CI 1.4.0, T.B.D + +T.B.D + +## Summary + +T.B.D + +## Bug Fixes + + - #46: Fixed log_level in SLCT and ITDE api calls + +## Features / Enhancements + +n/a + +## Documentation + +n/a + +## Refactoring + +n/a \ No newline at end of file diff --git a/exasol_script_languages_container_ci/lib/ci_build.py b/exasol_script_languages_container_ci/lib/ci_build.py index b35cecb..494b217 100644 --- a/exasol_script_languages_container_ci/lib/ci_build.py +++ b/exasol_script_languages_container_ci/lib/ci_build.py @@ -34,7 +34,10 @@ def build(self, source_docker_username=docker_user, source_docker_password=docker_password, shortcut_build=False, - workers=7) + workers=7, + log_level="WARNING", + use_job_specific_log_file=True + ) else: slc_image_infos = build(flavor_path=flavor_path, force_rebuild=rebuild, source_docker_repository_name=build_docker_repository, @@ -42,7 +45,10 @@ def build(self, source_docker_username=docker_user, source_docker_password=docker_password, shortcut_build=False, - workers=7) + workers=7, + log_level="WARNING", + use_job_specific_log_file=True + ) logging.info(f"Running command 'build_test_container' with parameters: {locals()}") content = build_test_container_content(test_container_folder) test_container_image_infos = build_test_container( @@ -50,6 +56,8 @@ def build(self, workers=7, test_container_content=content, source_docker_repository_name=build_docker_repository, - source_docker_tag_prefix=commit_sha + source_docker_tag_prefix=commit_sha, + log_level="WARNING", + use_job_specific_log_file=True ) self._printer.print_exasol_docker_images() \ No newline at end of file diff --git a/exasol_script_languages_container_ci/lib/ci_export.py b/exasol_script_languages_container_ci/lib/ci_export.py index 6417e25..ed20d88 100644 --- a/exasol_script_languages_container_ci/lib/ci_export.py +++ b/exasol_script_languages_container_ci/lib/ci_export.py @@ -23,5 +23,8 @@ def export(self, logging.info(f"Running command 'push' with parameters: {locals()}") export_result = export(flavor_path=flavor_path, export_path=export_path, - workers=7) + workers=7, + log_level="WARNING", + use_job_specific_log_file=True + ) self._printer.print_exasol_docker_images() diff --git a/exasol_script_languages_container_ci/lib/ci_push.py b/exasol_script_languages_container_ci/lib/ci_push.py index b90b753..a81dfd5 100644 --- a/exasol_script_languages_container_ci/lib/ci_push.py +++ b/exasol_script_languages_container_ci/lib/ci_push.py @@ -30,5 +30,8 @@ def push(self, target_docker_repository_name=target_docker_repository, target_docker_tag_prefix=target_docker_tag_prefix, target_docker_username=docker_user, - target_docker_password=docker_password) + target_docker_password=docker_password, + log_level="WARNING", + use_job_specific_log_file=True + ) self._printer.print_exasol_docker_images() diff --git a/exasol_script_languages_container_ci/lib/ci_security_scan.py b/exasol_script_languages_container_ci/lib/ci_security_scan.py index dd660a0..d66e1ea 100644 --- a/exasol_script_languages_container_ci/lib/ci_security_scan.py +++ b/exasol_script_languages_container_ci/lib/ci_security_scan.py @@ -20,7 +20,11 @@ def run_security_scan(self, """ logging.info(f"Running command 'security_scan' with parameters {locals()}") - security_scan_result = security_scan(flavor_path=flavor_path, workers=7) + security_scan_result = security_scan(flavor_path=flavor_path, + workers=7, + log_level="WARNING", + use_job_specific_log_file=True + ) logging.info("============= SECURITY REPORT ===========") self._printer.print_file(Path(security_scan_result.report_path)) self._printer.print_exasol_docker_images() diff --git a/exasol_script_languages_container_ci/lib/ci_test.py b/exasol_script_languages_container_ci/lib/ci_test.py index daf69b5..04ad6b4 100644 --- a/exasol_script_languages_container_ci/lib/ci_test.py +++ b/exasol_script_languages_container_ci/lib/ci_test.py @@ -36,7 +36,9 @@ def run(self, test_container_folder=test_container_folder, workers=workers, source_docker_username=docker_username, - source_docker_password=docker_password + source_docker_password=docker_password, + log_level="WARNING", + use_job_specific_log_file=True )