Skip to content

Use docker compose in CI to match local dev workflow#1857

Open
moio wants to merge 3 commits intoSUSE:masterfrom
moio:align-ci-with-docker-compose
Open

Use docker compose in CI to match local dev workflow#1857
moio wants to merge 3 commits intoSUSE:masterfrom
moio:align-ci-with-docker-compose

Conversation

@moio
Copy link
Member

@moio moio commented Jan 27, 2026

Summary

  • Replace Ubuntu's native MySQL + host Ruby setup in CI with docker compose run, using the exact same MariaDB container and app image that developers use locally
  • Apply to both spec.yml and next-rails.yml workflows
  • Bump actions/checkout from v2 to v4

Context

As discussed in #1840 (comment), CI was using MySQL from Ubuntu packages while the docker-compose setup uses containerized MariaDB from openSUSE. This version mismatch caused collation recognition failures. This PR aligns CI with the local dev workflow by running tests through docker compose directly.

Test plan

  • Verify Specs workflow passes on this PR
  • Verify Next Rails Spec workflow still triggers correctly on next-rails branches

🤖 Generated with Claude Code

moio and others added 3 commits January 27, 2026 09:39
CI was using Ubuntu's native MySQL packages while local development
uses containerized MariaDB from openSUSE via docker-compose. This
version mismatch caused collation recognition failures (eg. from
PR SUSE#1840). Run CI through docker compose so both environments use
the same database engine and container setup.

Ref: SUSE#1840 (comment)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The GHA runner checks out files as uid 1001 (runner), but the
hackweek container runs as uid 1000 (hackweek). chown the workspace
to match the container user before running docker compose.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Feature specs use Chrome headless via Selenium. Docker containers
default to 64MB /dev/shm which causes Chrome tab crashes. Add
shm_size to docker-compose.yml to fix this for both CI and local
docker-compose test runs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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

Comments