-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate macOS cases in Travis to GitHub Actions. * Increase the expected time in the test to avoid the following random failures on macOS. ``` 1) Mysql2::Client#query threaded queries should be supported Failure/Error: expect(stop - start).to be_within(0.1).of(sleep_time) expected 0.632204999999999 to be within 0.1 of 0.5 # ./spec/mysql2/client_spec.rb:711:in `block (3 levels) in <top (required)>' ``` ``` 3) Mysql2::Client#query should run signal handlers while waiting for a response Failure/Error: expect(mark.fetch(:QUERY_END) - mark.fetch(:QUERY_START)).to be_within(0.1).of(query_time) expected 1.1042130000000157 to be within 0.1 of 1.0 # ./spec/mysql2/client_spec.rb:632:in `block (3 levels) in <top (required)>' ```
- Loading branch information
Showing
4 changed files
with
53 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Ubuntu | ||
name: Build | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
|
@@ -38,6 +38,12 @@ jobs: | |
# `service mysql restart` fails. | ||
- {os: ubuntu-20.04, ruby: 2.4, db: mysql80, allow-failure: true} | ||
- {os: ubuntu-18.04, ruby: 'head', db: '', allow-failure: true} | ||
# db: the DB's brew package name in macOS case. | ||
# Allow failure due to the following test failures. | ||
# https://github.com/brianmario/mysql2/issues/965 | ||
- {os: macos-latest, ruby: 2.4, db: '[email protected]', allow-failure: true} | ||
# Allow failure due to Mysql2::Error: Unknown system variable 'session_track_system_variables'. | ||
- {os: macos-latest, ruby: 2.4, db: '[email protected]', allow-failure: true} | ||
# On the fail-fast: true, it cancels all in-progress jobs | ||
# if any matrix job fails unlike Travis fast_finish. | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters