Skip to content

Fix PostgreSQL 18 compatibility in hono-drizzle workflow#885

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/fix-github-actions-failure
Closed

Fix PostgreSQL 18 compatibility in hono-drizzle workflow#885
Copilot wants to merge 3 commits intomainfrom
copilot/fix-github-actions-failure

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 15, 2026

PostgreSQL 18 Docker images changed storage structure to use version-specific directories at /var/lib/postgresql/{version} instead of directly in /var/lib/postgresql/data. This broke migrations with ECONNREFUSED errors.

Changes

  • Update volume mounts: Changed from /var/lib/postgresql/data to /var/lib/postgresql in compose.yml
  • Add health checks: Added pg_isready checks with 5s intervals to both database services
  • Add readiness wait: Added workflow step to wait for both containers to report healthy before running migrations
healthcheck:
  test: ["CMD-SHELL", "pg_isready -U postgres"]
  interval: 5s
  timeout: 5s
  retries: 5

Reference: docker-library/postgres#1259


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 15, 2026 12:16
- Update volume mount from /var/lib/postgresql/data to /var/lib/postgresql
- Add healthcheck to both database services
- Add workflow step to wait for database to be ready before running migrations

Co-authored-by: kimutyam <1275636+kimutyam@users.noreply.github.com>
Use exact count check for healthy containers to ensure both databases are ready

Co-authored-by: kimutyam <1275636+kimutyam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix GitHub Actions failure for PostgreSQL 17.7 Fix PostgreSQL 18 compatibility in hono-drizzle workflow Feb 15, 2026
Copilot AI requested a review from kimutyam February 15, 2026 12:22
@kimutyam kimutyam closed this Feb 15, 2026
@kimutyam kimutyam deleted the copilot/fix-github-actions-failure branch February 15, 2026 12:38
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.

2 participants