Skip to content

chore: point the integration tests at 127.0.0.1, not the compose service - #88

Merged
tyrsson merged 1 commit into
2.0.xfrom
chore/phpunit-db-host
Oct 1, 2026
Merged

tyrsson merged 1 commit into
2.0.xfrom
chore/phpunit-db-host

Conversation

@tyrsson

@tyrsson tyrsson commented Sep 29, 2026

Copy link
Copy Markdown
Member

phpunit.xml.dist defaulted the MySQL host env var to the compose service name (mysql), which only resolves inside a compose network. The fleet host value is 127.0.0.1, the address compose publishes on 3306.

webware-ci.json already supplies 127.0.0.1 to CI, so this changes local runs only - where the service-name default made the integration tests fail to connect.

phpunit.xml.dist defaulted the MySQL host env var to the compose service name, which only resolves inside a compose network. The host value the fleet settled on is 127.0.0.1, the address compose publishes on 3306.

webware-ci.json already supplies 127.0.0.1 to CI, so this changes local runs only, where the service-name default made the integration tests fail to connect.

Signed-off-by: Joey Smith <jsmith@webinertia.net>
@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tyrsson tyrsson self-assigned this Oct 1, 2026
@tyrsson tyrsson added the enhancement New feature or request label Oct 1, 2026
@tyrsson
tyrsson merged commit ad1cfd9 into 2.0.x Oct 1, 2026
12 checks passed
@tyrsson
tyrsson deleted the chore/phpunit-db-host branch October 1, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant