You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a repo with some tests that run against MySQL and Postgres. The tests against Postgres always pass. The tests against MySQL randomly (50% chance i'd say) throw a driver: bad connection error. The error occurs both on one-off queries and transactions.
The interesting thing is that I can only reproduce in GitHub actions, never locally. What this means is that I don't know how to isolate the problem. Is it Github Actions? Docker on Github Actions? MySQL driver? MySQL db? My own code?
Issue description
I have a repo with some tests that run against MySQL and Postgres. The tests against Postgres always pass. The tests against MySQL randomly (50% chance i'd say) throw a
driver: bad connection
error. The error occurs both on one-off queries and transactions.The interesting thing is that I can only reproduce in GitHub actions, never locally. What this means is that I don't know how to isolate the problem. Is it Github Actions? Docker on Github Actions? MySQL driver? MySQL db? My own code?
Example code
https://github.com/miparnisari/openfga. You can fork it and make commits to main to trigger the tests.
Error log
In a read:
In a transaction:
Configuration
Driver version (or git SHA): v1.8.1
Go version: 1.22.6
Server version: MySQL 8
Server OS: The issue happens on Ubuntu 22.04.4 (Github Actions).
The text was updated successfully, but these errors were encountered: