Skip to content

fix(ci): stabilize database and peer readiness - #56

Merged
xiaoland merged 3 commits into
mainfrom
fix/schema-restore-readiness
Aug 13, 2026
Merged

xiaoland merged 3 commits into
mainfrom
fix/schema-restore-readiness

Conversation

@xiaoland

@xiaoland xiaoland commented Aug 13, 2026 •

Copy link
Copy Markdown
Member

Main admission and the follow-up preview exposed two readiness races.

  • The exported database contract restore used pg_isready, which could succeed against PostgreSQL's temporary initialization server before the target database and final TCP listener existed. It now waits by executing SELECT 1 through the exact TCP/database path used by restore.
  • Heroku release completion does not mean the core process has started and registered its Peer. The existing convergence budget now covers registration, config projection, and publication of the exact live capability snapshot.

Validation:

  • git diff --check
  • pdm run pytest tests/deployment/test_configure_peer_runtime.py -q
  • pdm run pre-commit run --files .github/workflows/ci.yml scripts/configure_peer_runtime.py
  • PR container and preview workflows provide the authoritative end-to-end reproduction

@xiaoland xiaoland changed the title fix(ci): wait for restorable database fix(ci): stabilize database and peer readiness Aug 13, 2026
@xiaoland
xiaoland marked this pull request as ready for review August 13, 2026 15:50
@xiaoland
xiaoland merged commit 619235d into main Aug 13, 2026
7 checks passed
@xiaoland
xiaoland deleted the fix/schema-restore-readiness branch August 31, 2026 14:01

This branch was previously deployed

1 inactive deployment
preview — 6a639d29 Deployed Aug 13, 2026 by xiaoland via Delete Heroku preview #124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant