Skip to content

(MAINT) Fix acceptance tests #1488

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

Merged
merged 5 commits into from
Aug 25, 2022
Merged

(MAINT) Fix acceptance tests #1488

merged 5 commits into from
Aug 25, 2022

Conversation

chelnak
Copy link
Contributor

@chelnak chelnak commented Aug 23, 2022

This PR contains various fixes for acceptance tests.

Debian / Ubuntu

  • Breaking due to the mysqld apparmor profile present on the GitHub Runner
  • Fixed by removing profile prior to docker provisions

RHEL 9

  • Breaking on xtrabackup tests
  • Fixed by instructing rspec not to run xtrabackup tests when running on RHEL 9

SLES 15

  • Breaking due to a charset mismatch
  • Fixed by ensuring that the correct charset is configured during the test setup

This PR also:

  • Restores the use of matrix_from_metadata_v2 in workflows
  • Removes the export_locales method along with references and tests because it is no longer needed.

@chelnak chelnak requested a review from a team as a code owner August 23, 2022 13:28
@chelnak chelnak changed the title Maint acceptance tests (MAINT) Fix acceptance tests Aug 23, 2022
@chelnak chelnak force-pushed the maint-acceptance_tests branch 28 times, most recently from 10e5609 to 5487d79 Compare August 24, 2022 14:42
@chelnak chelnak force-pushed the maint-acceptance_tests branch 6 times, most recently from 15f9285 to d5eab48 Compare August 24, 2022 16:00
Prior to this commit `matrix_from_metadata_v2` was removed and
replaced with a manually built matrix.

This commit restores the use of `matrix_from_metadata_v2`
Prior to this commit acceptance tests for SLES 15 were failing.
This was caused by a charset mismatch.

This commit fixes the issue by extending the `fetch_charset` method so
that it returns `utf8mb3` when the current OS is SLES 15.
@chelnak chelnak force-pushed the maint-acceptance_tests branch from d5eab48 to 30e085f Compare August 24, 2022 16:02
@chelnak chelnak self-assigned this Aug 24, 2022
Prior to this commit, xtrabackup acceptance tests would fail when the
OS was RHEL 9. This is because xtrabackup is not currently supported for
RHEL 9.

This commit moves the xtrabackup acceptance tests in to their own
spec file and adds conditions to the tests that ensure they are only
executed on supported OSes.
This commit removes the `export_locales` method along with it's
references.

This commit also removes the spec test associated with locales from
`00_mysql_server_spec.rb`
Prior to this commit on certian OSes the mysqld apparmor profile present
on the github runner would prevent the mysql service from properly
starting inside our litmusimage container.

The follow OSes were impacted for both puppet 6 & 7 runs:

* debian 9
* debian 10
* ubuntu 20.04

This commit adds a new step to the `pr_test` and `nightly` workflows
that disables the mysqld apparmor profile if the current provisioner is
`provision::docker`.

While this fixes the issue, it does make me wonder if this is the right
approach.
@chelnak chelnak force-pushed the maint-acceptance_tests branch from 30e085f to 352f6fc Compare August 24, 2022 16:17
Copy link
Contributor

@GSPatton GSPatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code looks good. Will see how the tests do before approving

Copy link
Contributor

@GSPatton GSPatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving since all tests passed (for the first time in a while)

@LukasAud LukasAud merged commit 3e30b7e into main Aug 25, 2022
@LukasAud LukasAud deleted the maint-acceptance_tests branch August 25, 2022 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants