Skip to content

Commit

Permalink
Merge branch 'dev' into major-release-9
Browse files Browse the repository at this point in the history
  • Loading branch information
tannalynn committed Jan 31, 2023
2 parents 52ee350 + 3e8ec15 commit 35f5a08
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,18 @@ jobs:
env:
RUBY_VERSION: ${{ matrix.ruby-version }}

- name: Test MySQL
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'"

- name: Wait for/Check Mysql
uses: nick-fields/[email protected]
with:
timeout_minutes: 1
max_attempts: 20
command: |
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'";
if [[ $? != 0 ]]; then
sleep 1;
fi
- name: Run Multiverse Tests
uses: nick-fields/[email protected]
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,18 @@ jobs:
env:
RUBY_VERSION: ${{ matrix.ruby-version }}

- name: Test MySQL
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'"

- name: Wait for/Check Mysql
uses: nick-fields/[email protected]
with:
timeout_minutes: 1
max_attempts: 20
command: |
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports[3306] }} -uroot -proot -e "SHOW GRANTS FOR 'root'@'localhost'";
if [[ $? != 0 ]]; then
sleep 1;
fi
- name: Run Multiverse Tests
uses: nick-fields/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
env:
TEST_CMD: "bundle exec rake test:multiverse[group=${{ matrix.multiverse }}]"
VERBOSE_TEST_OUTPUT: true
RETRY_ATTEMPS: 2
RETRY_ATTEMPS: 5
SERIALIZE: 1
DB_PORT: ${{ job.services.mysql.ports[3306] }}
JRUBY_OPTS: --dev --debug
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/scripts/retry_command
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ while [[ $return_val != 0 && $count -le $RETRY_ATTEMPTS ]]; do
$TEST_CMD
return_val=$?
count+=1
if [[ $return_val != 0 ]]; then
echo $'\n*************************************************************************************************************\n'
echo "FAILURE ON ATTEMPT $((count+1)) of $((RETRY_ATTEMPTS+1))"
echo $'\n*************************************************************************************************************\n'
fi
done

exit $return_val

0 comments on commit 35f5a08

Please sign in to comment.