Skip to content

Commit

Permalink
Comment out debugging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
justinclift committed Oct 3, 2024
1 parent 40c5b37 commit 443c3e6
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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!"
Expand All @@ -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
Expand Down

0 comments on commit 443c3e6

Please sign in to comment.