Merge upstream maintenance fencing into group client paging

This commit is contained in:
Hamed Sanaei
2026-12-03 12:10:00 +03:30
32 changed files with 2413 additions and 162 deletions
+20
View File
@@ -85,6 +85,16 @@ jobs:
exit 1
fi
- name: PostgreSQL maintenance fencing and recovery
run: |
set -o pipefail
go test -p=1 . ./internal/database -run '^Test(PostgresCLIWorkFenceSurvivesSessionLoss|PostgresExclusiveRestoreFenceSurvivesSessionLoss|PostgresPendingRestoreRetriesBeforeServing|PostgresRuntimeMaintenanceReacquiresAfterSessionLoss|MaintenanceAcrossProcesses)$' -count=1 -v | tee /tmp/postgres-maintenance.log
passed=$(grep -c -- '^--- PASS' /tmp/postgres-maintenance.log || true)
if [ "$passed" -ne 5 ]; then
echo "expected 5 passing PostgreSQL maintenance tests, got $passed" >&2
exit 1
fi
- name: PostgreSQL inbound add orphan cleanup
run: |
set -o pipefail
@@ -258,6 +268,16 @@ jobs:
exit 1
fi
- name: PostgreSQL database maintenance contention
run: |
set -o pipefail
go test -p=1 . ./internal/database ./internal/web/job -run '^Test(MaintenanceAcrossProcesses|PostgresRuntimeMaintenanceReacquiresAfterSessionLoss|PostgresPendingRestoreRetriesBeforeServing|DatabaseRestoreDrainsAnInFlightNodePoll)$' -count=1 -v | tee /tmp/postgres-maintenance.log
passed=$(grep -c -- '^--- PASS' /tmp/postgres-maintenance.log || true)
if [ "$passed" -ne 4 ]; then
echo "expected 4 passing PostgreSQL database maintenance tests, got $passed" >&2
exit 1
fi
- name: PostgreSQL inbound migration contention
run: |
set -o pipefail