From 443c3e67089d8e9204c9a38a9a2fc4d9d479d988 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Thu, 3 Oct 2024 21:06:44 +1000 Subject: [PATCH] Comment out debugging stuff --- test.sh | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/test.sh b/test.sh index e06ddaa..065289b 100755 --- a/test.sh +++ b/test.sh @@ -37,10 +37,10 @@ test_run() { sudo rm -rf postgres-data fi - ### FIXME: - echo "ls #1" - sudo ls -la postgres-data - ps -ef f +# ### FIXME: +# echo "ls #1" +# sudo ls -la postgres-data +# ps -ef f # Create the PostgreSQL database using a specific version of PostgreSQL docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db @@ -63,14 +63,14 @@ test_run() { # Delete the upgraded PostgreSQL data directory sudo rm -rf postgres-data - ### FIXME: See if this helps - docker system prune -f +# ### FIXME: See if this helps +# docker system prune -f - ### FIXME: - echo "ls #2" - sudo ls -la postgres-data - ps -ef f - df -h . +# ### FIXME: +# echo "ls #2" +# sudo ls -la postgres-data +# ps -ef f +# df -h . ## ## Tests for one shot mode @@ -79,18 +79,18 @@ test_run() { # Create the PostgreSQL database using a specific version of PostgreSQL docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db - sync +# sync # Shut down all of the containers docker compose -f "docker-compose-pg${VERSION}.yml" down --remove-orphans - sync +# sync - ### FIXME: - echo "ls #3" - sudo ls -la postgres-data - ps -ef f - df -h . - docker ps --all +# ### FIXME: +# echo "ls #3" +# sudo ls -la postgres-data +# ps -ef f +# df -h . +# docker ps --all # Run the PostgreSQL container in one shot mode TARGET_TAG="${TARGET}-${FLAVOR}" docker compose -f docker-compose-pgauto.yml run --rm -e PGAUTO_ONESHOT=yes postgres @@ -101,7 +101,7 @@ test_run() { banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} FAILED!" FAILURE=1 - sudo cat postgres-data/pg_upgrade_server.log +# sudo cat postgres-data/pg_upgrade_server.log else banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} SUCCEEDED!" @@ -110,11 +110,11 @@ test_run() { # Shut down any containers that are still running docker compose -f docker-compose-pgauto.yml down - ### FIXME: - echo "ls #4" - sudo ls -la postgres-data - ps -ef f - df -h . +# ### FIXME: +# echo "ls #4" +# sudo ls -la postgres-data +# ps -ef f +# df -h . # If running on CI, delete the Postgres Docker image to avoid space problems if [ -n "$CI" ]; then