Use docker compose in CI to match local dev workflow#1857
Open
moio wants to merge 3 commits intoSUSE:masterfrom
Open
Use docker compose in CI to match local dev workflow#1857moio wants to merge 3 commits intoSUSE:masterfrom
moio wants to merge 3 commits intoSUSE:masterfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker compose run, using the exact same MariaDB container and app image that developers use locallyspec.ymlandnext-rails.ymlworkflowsactions/checkoutfrom v2 to v4Context
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 composedirectly.Test plan
Specsworkflow passes on this PRNext Rails Specworkflow still triggers correctly onnext-railsbranches🤖 Generated with Claude Code