server
server copied to clipboard
WIP: Implement major version upgrade testing with binary files
Description
Implement major version upgrade testing with binary files
In order to increase the confidence, validation and coverage of major version upgrade testing, this approach similarly follows the pre-existing method of loading dumps from prior versions into the data-directory and attempting an upgrade. Instead of using the dumps of entire schemas, we do the same with specific binary files of tables.
The PR to expand the versions and testing for the upgrading from dump approach can be found here: #3503.
Currently, only binary files from 10.11 are used. Furthermore, only a subset of all available binary files of tables are being included. The intent is to validate the approach of this method first and then further extend the scope of what is covered by including binary files from other versions and the binary files for the other mysql tables.
The act of loading binary files from prior version into the data directory and then performing operations upon them was inspired by #2170. Feedback this regarding this approach and ways to best implement testing for major version upgrades are welcomed and greatly appreciated.
Release Notes
N/A
How can this PR be tested?
Changes are only to testing, no functionality is changed. Introduced tests are passing.
main.mysql_binary_upgrade w8 [ pass ] 1355
Basing the PR against the correct MariaDB version
- [x] This is a change in testing that is targeted towards the current MariaDB LTS.
PR quality check
- [x] I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
- [x] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.
All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.