Skip to content

Commit e49aed3

Browse files
committed
claude: Add debugging and timeout to fix hanging workflows
- Add verbose output to pg_upgrade commands for better debugging - Add --retain flag to keep upgrade logs for troubleshooting - Add 10-minute timeout to upgrade steps to prevent indefinite hanging - Add echo statements to show progress during upgrades
1 parent b73b5d5 commit e49aed3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
"
138138
139139
- name: Run upgrade from ${{ matrix.test.from }} to ${{ matrix.test.to }}
140+
timeout-minutes: 10
140141
run: |
141142
# Create directories for the upgrade
142143
mkdir -p test-data/${{ matrix.test.to }}

docker-upgrade-multi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,24 @@ perform_upgrade() {
5656
cd /var/lib/postgresql
5757

5858
# Run pg_upgrade check first
59+
echo "Running pg_upgrade --check..."
5960
$PGBINNEW/pg_upgrade \
6061
--old-bindir="$PGBINOLD" \
6162
--new-bindir="$PGBINNEW" \
6263
--old-datadir="$PGDATAOLD" \
6364
--new-datadir="$PGDATANEW" \
64-
--check
65+
--check \
66+
--verbose
6567

6668
# If check passes, run the actual upgrade
69+
echo "Running pg_upgrade..."
6770
$PGBINNEW/pg_upgrade \
6871
--old-bindir="$PGBINOLD" \
6972
--new-bindir="$PGBINNEW" \
7073
--old-datadir="$PGDATAOLD" \
71-
--new-datadir="$PGDATANEW"
74+
--new-datadir="$PGDATANEW" \
75+
--verbose \
76+
--retain
7277

7378
# Run post-upgrade tests
7479
echo "Running post-upgrade sanity tests..."

0 commit comments

Comments
 (0)