Skip to content

Conversation

Copy link

Copilot AI commented Dec 12, 2025

GitHub Actions uses MySQL 8.0.44 which doesn't support the utf8mb3_uca1400_ai_ci collation that MariaDB (used in docker-compose) generates in schema.rb. This causes db:schema:load to fail with "Unknown collation" error.

Changes

  • .github/workflows/spec.yml: Replace system MySQL with MariaDB service container matching docker-compose image (registry.opensuse.org/opensuse/mariadb:latest)
  • config/database.yml.example: Add DB_HOST environment variable support for CI database host configuration

This ensures database system parity between local development and CI environments.

Original prompt

I want to fix the spec error in here: https://github.com/SUSE/hackweek/actions/runs/20169953065/job/57902744298?pr=1840

I believe the problem is that docker-compose uses latest mariadb while the gha uses mysql


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

Copilot AI changed the title [WIP] Fix spec error caused by database inconsistency Fix spec failure: align CI database with docker-compose (MariaDB) Dec 12, 2025
Copilot AI requested a review from moio December 12, 2025 14:53
@moio moio marked this pull request as ready for review December 12, 2025 15:16
Co-authored-by: moio <250541+moio@users.noreply.github.com>
Signed-off-by: Silvio Moioli <silvio@moioli.net>
@moio moio force-pushed the copilot/fix-spec-error-mariadb branch from 1f42c2d to f1ba235 Compare December 12, 2025 15:17
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