From 73751ed45683457a0d3433ff6817b44405bce090 Mon Sep 17 00:00:00 2001 From: Ivan Nikolaev-Axenov Date: Fri, 30 May 2025 11:35:05 +0300 Subject: [PATCH] debug fix --- clr_test/db-updater/Dockerfile | 2 ++ clr_test/run_test_docker_containers.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/clr_test/db-updater/Dockerfile b/clr_test/db-updater/Dockerfile index ae342a8dc..d4a806dd0 100644 --- a/clr_test/db-updater/Dockerfile +++ b/clr_test/db-updater/Dockerfile @@ -4,4 +4,6 @@ ADD combined_update_ddl.sql /init.sql RUN apk add --update --no-cache postgresql-client +RUN ls + CMD [ "sh", "-c", "psql -U clearing -h db -p 5432 -d clearing -f init.sql" ] \ No newline at end of file diff --git a/clr_test/run_test_docker_containers.py b/clr_test/run_test_docker_containers.py index 3f5501972..e0611b80b 100644 --- a/clr_test/run_test_docker_containers.py +++ b/clr_test/run_test_docker_containers.py @@ -111,6 +111,7 @@ def stop_docker_compose() -> None: def combine_ddl_updates_into_file(): + logging.info(f"Combining DDLs...") pattern = re.compile(r'updateDDL_(\d+)\.(\d+)\.sql$') files = [] @@ -130,6 +131,8 @@ def combine_ddl_updates_into_file(): content = infile.read().rstrip('\n') outfile.write(content + '\n\n') + logging.info(f"Result: {os.listdir(f'{CLR_TEST_DIR}/db-updater')}") + def main() -> None: folders = [i for i in sorted(os.listdir(DATA_ROOT_DIR)) if re.search("\\d{1,}.\\d{1,}.*", i)]