Skip to content

Fix database CI failures - #58

Merged
flavorjones merged 1 commit into
masterfrom
fix-database-ci-problems
Mar 20, 2026
Merged

Fix database CI failures#58
flavorjones merged 1 commit into
masterfrom
fix-database-ci-problems

Conversation

@flavorjones

@flavorjones flavorjones commented Mar 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Add health checks to MySQL and Postgres service containers so GitHub Actions waits for them to be ready before running db:setup
  • Set fail-fast: false so all matrix jobs run to completion even if one fails

Test plan

  • Verify MySQL CI job no longer fails with "Lost connection to MySQL server at 'reading initial communication packet'"
  • Verify all three database matrix jobs (sqlite, postgres, mysql) run independently

🤖 Generated with Claude Code

MySQL and Postgres services had no health checks, causing db:setup to
run before the databases were ready to accept connections. Also set
fail-fast: false so all matrix jobs run to completion.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 20, 2026 20:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses intermittent database-related CI failures by ensuring Postgres/MySQL service containers are healthy before Rails DB setup runs, and by making the matrix execute all variants even if one fails.

Changes:

  • Disable matrix fail-fast so sqlite/postgres/mysql jobs complete independently.
  • Add Docker health checks for Postgres and MySQL GitHub Actions service containers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@flavorjones
flavorjones merged commit 9ab63a2 into master Mar 20, 2026
11 checks passed
@flavorjones
flavorjones deleted the fix-database-ci-problems branch March 20, 2026 20:45
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