Skip to content

Commit

Permalink
46: Fixed log_level in api calls missing (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneKress79789 authored Aug 1, 2023
1 parent 2d6a535 commit 6226cc5
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 7 deletions.
23 changes: 23 additions & 0 deletions doc/changes/changes_1.4.0.md
Original file line number Diff line number Diff line change
@@ -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
14 changes: 11 additions & 3 deletions exasol_script_languages_container_ci/lib/ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,30 @@ 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,
source_docker_tag_prefix=commit_sha,
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(
force_rebuild=rebuild,
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()
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
5 changes: 4 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
6 changes: 5 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_security_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion exasol_script_languages_container_ci/lib/ci_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)


Expand Down

0 comments on commit 6226cc5

Please sign in to comment.