ci: drop redundant MySQL service container #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci-drop-mysql-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When two CI runs land concurrently on the runner, the second one fails at "Set up job" with:
This was blocking every concurrent PR (first seen on PR #10, commit
5f1261ba).Root cause
The MySQL service container in both the
testandcoveragejobs bound port3307:3306on the runner host — a static allocation that only one job can hold at a time. The container was dead weight:internal/db/db_test.gousestestcontainers-goto spin up its own MySQL 8 instance per test runBOOKSHELF_DSNenv var the workflow setFix
Remove the
services:block and theBOOKSHELF_DSNenv var from both thetestandcoveragejobs. Tests continue to get a real MySQL database via testcontainers — nothing changes for test behaviour, only the port contention goes away.86675f1b9ae9f78d0842