Skip to content

Commit

Permalink
(CONT-1203) - Updating reusable github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Jul 13, 2023
1 parent 3f8ece0 commit af66887
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ jobs:
- name: "Disable mysqld apparmor profile"
if: matrix.platforms.provider == 'provision::docker'
run: |
run: |
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
sudo systemctl disable apparmor
sudo systemctl stop apparmor
- name: Provision test environment
run: |
Expand All @@ -99,4 +101,3 @@ jobs:
continue-on-error: true
run: |
bundle exec rake 'litmus:tear_down'
3 changes: 2 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ jobs:
run: |
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/disable/usr.sbin.mysqld
sudo systemctl disable apparmor
sudo systemctl stop apparmor
- name: Provision test environment
run: |
Expand All @@ -98,4 +100,3 @@ jobs:
continue-on-error: true
run: |
bundle exec rake 'litmus:tear_down'
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def mysql_version
shell_output = LitmusHelper.instance.run_shell('mysql --version', expect_failures: true)
if shell_output.stdout.match(%r{\d+\.\d+\.\d+}).nil?
# mysql is not yet installed, so we apply this class to install it
LitmusHelper.instance.apply_manifest('include mysql::server', debug: true, catch_failures: true)
LitmusHelper.instance.apply_manifest('include mysql::server', catch_failures: true)
shell_output = LitmusHelper.instance.run_shell('mysql --version')
raise _('unable to get mysql version') if shell_output.stdout.match(%r{\d+\.\d+\.\d+}).nil?
end
Expand Down

0 comments on commit af66887

Please sign in to comment.