-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysqldump failing in tests #640
Comments
Having almost the same problem here, caused by the It happens that MariaDB's
Using:
|
Same issue than @bryanjhv here. Is there any workaround? 🤔 Using:
Edit: Anyway I'm thinking why is mysqldump a requirement? IMHO (and from my experience using other migration tools and frameworks) the sql calls should be made from the pop library itself, removing the binary dependency, because right now if you put this app on a container you'll need to install mysqldump in there to be able to run migrations 😕 |
Same issue than @bryanjhv here. Is there any workaround? |
Yeah, adding an option to the hard-coded command must be careful and need to check the oldest supported version. I rolled back the change in the code base and it will be released as v6.0.7 within a few weeks. Meanwhile, one available workaround for the issue could be using a script. I didn't tested but roughly creating the following script as #!/bin/bash
/usr/bin/mysqldump `echo $@ |sed 's/--column-statistics=0//'` Didn't test, just imagined, so please test it before using it.
Hi @elboletaire, which SQL can be used to dump schema? Could you please guide me if you know how? or which tools are works like that? It could be better if there is a way, but I couldn't find the way yet. |
One more point: when it runs in a production, dumping schema could be optional. Will check that in the next cycle. |
Description
When submitting a PR, I noticed the mysql tests were failing remotely when no tests were failing locally. The error:
(cite: https://github.com/gobuffalo/pop/pull/639/checks?check_run_id=2326259652)
This seemed to be an error from a different version of mysqldump -- the Github action workflows specify mysql:5.7, but when I threw a print statement in to see what version of mysqldump we had, I got
mysqldump Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
.(cite: https://github.com/gobuffalo/pop/pull/639/checks?check_run_id=2326648018)
(When run locally/in an Ubuntu VM, the mysqldump version was different but always reference the 5.7 distribution.)
As this error seemed to be related to a newer version of mysqldump, I added the
--column-statistics=0
option to the mysqldump commands, which solved the symptom.Steps to Reproduce the Problem
--columnn-statistics=0
hack from this PR 3887167#diff-c866e330877c43db022d8a4d9ad8e554dab7562977944ec79cd792582b0d9543R160-R164Expected Behavior
Tests should pass with specified version of mysqldump
Actual Behavior
Tests should not fail
Info
Pop (through Buffalo): github.com/gobuffalo/pop/[email protected]
Go: go1.16.2 darwin/amd64
MacOS: 10.14.6 (18G6032)
The text was updated successfully, but these errors were encountered: