-
Notifications
You must be signed in to change notification settings - Fork 550
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
Add GitHub Actions. #1154
Add GitHub Actions. #1154
Conversation
Here is the error log on my forked repository. |
316a771
to
94a3d5b
Compare
It seems there is no mysql 5.6 packages such as Running the following commands with the modification, I see those packages are already installed.
And I see the following error about the password is on the mysql 5.7.
In |
This is great! Thank you! The |
I think it would be reasonable to move all the tests up to Ubuntu 20.04. The most common problem I'm seeing in the issues tracker these days are out of date Rails versions on up to date MySQL versions. This is unexpected, in my experience I've always updated my application code long before the database engine! |
I can agree on it. But there might be older mysql/mariadb versions that are not available on Ubuntu 20.04 but available on Ubuntu 18.04 or Ubuntu-16.04. So, I think we can "basically" use Ubuntu 20.04 for the cases as much as possible, but if the tested mysql/mariadb version's packages do not exist on Ubuntu 20.04, we can try to use another old Ubuntu environment. Thanks for the info to fix the issues. Tomorrow I will take a look at it! |
94a3d5b
to
77677ad
Compare
Rebased this PR.
I still see the error by the SQL command to set the root password. Do you have any idea to fix it? https://github.com/junaruga/mysql2/runs/1689931827?check_suite_focus=true#step:5:23
|
As a reference, when I tested the behavior on ubuntu focal container, it was succeeded by root user, though I actually used
|
77677ad
to
4de3aad
Compare
Rebased. On mysql 8.0 case, there is one error.
On mariadb 10.0 case, I see a clue here. We might do
|
I need someone's help to fix it. |
4de3aad
to
b4aa547
Compare
Rebased. I think I am ready for the review now on this PR now. Here is the result of GitHub Actions.
@sodabrew Could you review? If it is okay, please merge the PR and enable GitHub Actions on this repository. Thanks. |
3a197d1
to
0fc0a26
Compare
.travis_setup.sh
Outdated
# Install the default used DB if DB is not set. | ||
if [[ -z ${DB-} ]]; then | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq mysql-server-5.7 mysql-client-core-5.7 mysql-client-5.7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this line causes an install error on the current Travis CI case on Ubuntu trusty.
https://travis-ci.org/github/brianmario/mysql2/jobs/759562170#L1200
If we still like to keep the Travis trusty case, maybe if changing mysql-server-5.7 mysql-client-core-5.7 mysql-client-5.7
to mysql-server mysql-client-core mysql-client
, we might avoid the error. I wanted to add the version string of the mysql as much as possible to avoid installing the unintended version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased. The Github Actions log is here.
ae98fc1
to
00d37a7
Compare
Rebased to pass the Travis on this PR. (Github Actions log, Travis log)
|
I tried to find a way to use the The result is here. The following error happens with mariadb 10.0, as maybe the
I think the merit of way of creating
|
Remove the CI cases on Travis migrated to GitHub Actions.
00d37a7
to
a9a5238
Compare
Rebased. I was able to pass the tests without creating the |
This looks amazing. I've read it closely, I don't see anything that jumps out wrong at me. Merging now, and we can break-fix if needed! |
Thanks for your review and merging!! I am glad for that! Now we can ask people sending PRs for this repository to rebase the PR to check if the PR passes. When you see the PR passing, you see the PR to be merged. I am working to migrate the CentOS case to GitHub Actions now. |
Yeah, it's time to do it! |
This is a PR to start GitHub Actions. It's a minimal start to have the compatible or covered cases on GitHub Actions from Travis eventually. This is my first experience to work on GitHub Actions.
I find GitHub Actions specific limitations.
bundle install
that is commonly used in Ruby applications. However while the current setup needs to run thebundle install --without benchmarks development
on Travis, I could not find the way to inject it to the common library on GitHub Actions. So, I modifiedGemfile
to update the groups to be optional asbundle install
worked. You can see the detail here. Without the modification, thebundle install
fails on the environment.ubuntu-20.04
(focal),ubuntu-18.04
(bionic),ubuntu-16.04
(xenial), while the trusty and xenial are used in Travis. See the Ubuntu version history.I saw the following error on the cases on GitHub. Do you have any idea to fix this? This blocks the PR.
Thanks.