I've set up non-MTR tests in buildbot, for now on deb packages with 10.1, 10.2, 10.3 main branches.
The tests are run amongst the installation/upgrade bunch. They use the resulting VM image from install test (which installs MariaDB server and whatever dependencies it pulls).
The logic is very basic:
- stop the "default" server (the one that's run by the service),
- create a minimal wsrep config and 3 custom configs for 3 nodes,
- copy the data directory created by the install test (which is basically empty, but fully bootstrapped and has a user for SST auth) for each of 3 nodes,
- start one node with wsrep-new-cluster,
- create a table, insert a value,
- start two other nodes, one after another, using the configured SST method,
- make sure they joined the cluster and picked up the previously created table (SST worked),
- do something on one of the nodes and make sure other nodes picked up the change (runtime replication works).
The test is run 4 times, once for each of mariabackup, xtrabackup-v2, mysqldump, rsync.
Tests are shown in buildbot as galera-mariabackup, galera-rsync etc.
Error logs from all nodes and syslog are stored.
Notes:
- mysqldump has been disabled for 10.1 due to
MDEV-15541
- to start nodes, mysqld_safe is used. The initial idea was to use mysqld_multi, but it didn't work out, because mariabackup/xtrabackup SST methods don't work when the datadir is provided on the command line (which is what mysqld_multi would do). It can, however, work with defaults-extra-file, which is how it has been set up.
- xtrabackup-v2 on Power is disabled, because xtrabackup itself is only available for amd64/i386.
- xtrabackup-v2 on artful/i386 fails, because xtrabackup package is missing at Percona site; maybe needs to be disabled.
Tests seem to behave more or less as expected at the first glance, but probably some intermittent failures will happen and will need to be fixed.
Examples:
current 10.1 (passed, except for disabled mysqldump): http://buildbot.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/2932
10.1, revision prior to MDEV-15254 bugfix (xtrabackup-v2 failed): https://internal.askmonty.org/buildbot/builders/kvm-deb-artful-amd64/builds/698
current 10.2 (passed): https://internal.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/2931
current 10.3 (xtrabackup-v2 fails, says 10.3.6 format is not supported): http://buildbot.askmonty.org/buildbot/builders/kvm-deb-artful-amd64/builds/697 – to be looked at, possibly it's not supposed to work and needs to be disabled
I've set up non-MTR tests in buildbot, for now on deb packages with 10.1, 10.2, 10.3 main branches.
The tests are run amongst the installation/upgrade bunch. They use the resulting VM image from install test (which installs MariaDB server and whatever dependencies it pulls).
The logic is very basic:
The test is run 4 times, once for each of mariabackup, xtrabackup-v2, mysqldump, rsync.
Tests are shown in buildbot as galera-mariabackup, galera-rsync etc.
Error logs from all nodes and syslog are stored.
Notes:
MDEV-15541Tests seem to behave more or less as expected at the first glance, but probably some intermittent failures will happen and will need to be fixed.
Examples:
current 10.1 (passed, except for disabled mysqldump): http://buildbot.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/2932
10.1, revision prior to
MDEV-15254bugfix (xtrabackup-v2 failed): https://internal.askmonty.org/buildbot/builders/kvm-deb-artful-amd64/builds/698current 10.2 (passed): https://internal.askmonty.org/buildbot/builders/kvm-deb-stretch-amd64/builds/2931
current 10.3 (xtrabackup-v2 fails, says 10.3.6 format is not supported): http://buildbot.askmonty.org/buildbot/builders/kvm-deb-artful-amd64/builds/697 – to be looked at, possibly it's not supposed to work and needs to be disabled