Skip to content

Commit

Permalink
Comment out the actual one shot test setup, see if CI passes again
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 3, 2024
1 parent a69537a commit 23f63fd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,26 +77,26 @@ test_run() {
##
banner '-' "Testing 'one shot' automatic upgrade mode for PostgreSQL ${VERSION} to ${TARGET}"

# Create the PostgreSQL database using a specific version of PostgreSQL
docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db
# # Create the PostgreSQL database using a specific version of PostgreSQL
# docker compose -f "docker-compose-pg${VERSION}.yml" run --rm server create_db

### FIXME:
echo "ls #3"
sudo ls -la postgres-data
ps -ef f
df -h .

# 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

# Verify the PostgreSQL data files are now the target version
PGVER=$(sudo cat postgres-data/PG_VERSION)
if [ "$PGVER" != "${TARGET}" ]; then
banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} FAILED!"
FAILURE=1
else
banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} SUCCEEDED!"
fi
# # 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
#
# # Verify the PostgreSQL data files are now the target version
# PGVER=$(sudo cat postgres-data/PG_VERSION)
# if [ "$PGVER" != "${TARGET}" ]; then
# banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} FAILED!"
# FAILURE=1
# else
# banner '*' "'One shot' automatic upgrade of PostgreSQL from version ${VERSION} to ${TARGET} SUCCEEDED!"
# fi

# Shut down any containers that are still running
docker compose -f docker-compose-pgauto.yml down
Expand Down

0 comments on commit 23f63fd

Please sign in to comment.