Commit graph

82 commits

Author SHA1 Message Date
Laurent Indermuehle
d9d48eba0d
Disable tests using pymysql 1.0.2
Many tests are failing but this must be fixed in the plugins in a future
PR.
2023-01-20 18:21:29 +01:00
Laurent Indermuehle
163048bd04
Fix container name 2023-01-20 14:12:36 +01:00
Laurent Indermuehle
c59e5418ce
Add back all tests using ghcr.io images 2023-01-20 13:47:50 +01:00
Laurent Indermuehle
fbbb7003dc
Add ghcr.io image for mariadb10.3 python3.8 mysqlclient2.0.1 2023-01-20 10:17:46 +01:00
Laurent Indermuehle
6bc293a022
Add a verify stage at setup of test to assert all version are correct 2023-01-19 16:37:06 +01:00
Laurent Indermuehle
454778406d
Change timeout from 10 to 30 seconds to let mysql/mariadb restart 2023-01-19 16:32:00 +01:00
Laurent Indermuehle
0e5f87e969
Cut tests for incompatible MySQL 8 and pymysql 0.7.11 2023-01-17 18:10:40 +01:00
Laurent Indermuehle
075af8f956
Reduce number of tests and adapt containers images 2023-01-17 10:46:16 +01:00
Laurent Indermuehle
4d2a4ff01c
Fix test matrix
Python version should be quoted, otherwise 3.10 become 3.1
We can skip 2.14 and devel with Python3.8
We can skip devel with Python 3.9
We can skip MariaDB 10.4 with mysql-client-10.6
Add tests for MariaDB 10.6, 10.7 and 10.8
2023-01-16 20:49:45 +01:00
Laurent Indermuehle
47806f1a51
Add manual test matrix (MariaDB 10.6, 10.7 and 10.8 missing) 2023-01-16 17:17:34 +01:00
Laurent Indermuehle
fbb0290e19
Fix ansible-test unknown option
I copied blindly https://github.com/ansible-collections/community.sops/blob/main/.github/workflows/ansible-test.yml#L195
and forgot what ansible-test was expecting
2023-01-16 09:16:50 +01:00
Laurent Indermuehle
5bc5ed1cee
Change tag of test-containers to latest 2023-01-16 08:43:57 +01:00
Laurent Indermuehle
9bfd0a3b28
Fix error when using local registry by using quay.io 2023-01-14 00:17:40 +01:00
Laurent Indermuehle
db995249cb
Add PoC using custom ansible-test containers 2023-01-13 16:22:57 +01:00
Laurent Indermuehle
4f33b77b60
Enable all tests 2023-01-12 23:00:00 +01:00
Laurent Indermuehle
3c621ea28c
Fix Python 3.10 beein run as 3.1 2023-01-12 22:59:07 +01:00
Laurent Indermuehle
c3e079cb6f
Fix healthcheck in GHA 2023-01-12 18:52:42 +01:00
Laurent Indermuehle
b9d0e96deb
Fix replication settings
sh don't know 'echo -e', so we use bash instead.
Also, we need to wait for the container to be healthy before trying to
restart it. Otherwise that could corrupt it.
2023-01-12 13:49:34 +01:00
Laurent Indermuehle
35531e741c
Add tmate to experiment with docker healthcheck 2023-01-12 13:20:31 +01:00
Laurent Indermuehle
f6e7b36d7c
Activate Mysql 8 and Mariadb into GitHub Action Workflow 2023-01-09 19:34:12 +01:00
Laurent Indermuehle
671011352c
Add better task name 2023-01-09 19:01:21 +01:00
Laurent Indermuehle
f8390aa50f
Fix mysqlclient not supporting Python 3.9 2023-01-09 11:25:17 +01:00
Laurent Indermuehle
4abb304bed
Github complain it doesn't find python 3.1 !!! 2023-01-06 18:04:49 +01:00
Laurent Indermuehle
ae0976cedf
Fix newline 2023-01-06 18:02:21 +01:00
Laurent Indermuehle
7f69ead2a3
Attempt to set log-bin into docker 2023-01-06 18:00:30 +01:00
Laurent Indermuehle
bcca4e832b
Cut python 3.11 not supported by ansible-test yet 2023-01-06 17:59:06 +01:00
Laurent Indermuehle
9001b87c6b
Update version tested 2023-01-06 16:11:43 +01:00
Laurent Indermuehle
1e20611548
Re-activate all tests 2023-01-06 14:33:33 +01:00
Laurent Indermuehle
8d43f9e573
Refactor the way server_id is set for replicas
The simple way is to add '--server-id 2' after the name of the image of
the container. But GHA doesn't let us do that. The idea of mount a file
from our repo doesn't work because the repo is check out later in the
workflow and I failed to find a pre-job hook. Then I realized that this
MySQL option is dynamic! So we will set that in the test target!
2023-01-06 14:14:35 +01:00
Laurent Indermuehle
163a43ba80
Enclose command in quotes 2023-01-06 13:03:13 +01:00
Laurent Indermuehle
c5c32f7751
Attempt to fix "invalid syntax" 2023-01-06 13:01:37 +01:00
Laurent Indermuehle
10d497e2cc
Add tmate to debug the server_id in replicas 2023-01-06 12:58:22 +01:00
Laurent Indermuehle
19e9116803
Add back docker healthcheck on services
I saw in the GHA logs that it perform an healtcheck ! So I hope this
will work.
2023-01-06 12:57:55 +01:00
Laurent Indermuehle
987292669c
Re-enable service containers 2023-01-06 11:16:35 +01:00
Laurent Indermuehle
897cb087e7
Fix pre-test-cmd paste in wrong context 2023-01-06 10:30:25 +01:00
Laurent Indermuehle
9d3ce94e4d
Re-enable integration tests to validate db_engine_version is fixed 2023-01-06 10:06:36 +01:00
Laurent Indermuehle
a0a0493a0a
Disable tests to concentrate on the \n and quote issue with my files 2023-01-06 09:37:26 +01:00
Laurent Indermuehle
42fe4baf18
Fix tailing newline by not created it in the first place 2023-01-05 19:44:22 +01:00
Laurent Indermuehle
3a128019ca
Fix pre-test-cmd missing separators 2023-01-05 19:34:12 +01:00
Laurent Indermuehle
cac6af41bb
Fix volume path using github.workspace var 2023-01-05 19:19:18 +01:00
Laurent Indermuehle
9c1b13c7f9
Fix volume path using $(pwd) 2023-01-05 19:17:25 +01:00
Laurent Indermuehle
46972bbbb3
Fix volume path by adding a final / 2023-01-05 19:12:39 +01:00
Laurent Indermuehle
cb1d820452
Fix volume path 2023-01-05 19:10:51 +01:00
Laurent Indermuehle
98ce2af28c
Refactor way tests info are passed from sed to file with lookup
The idea is to avoid modifying test targets from the workflow to prevent
ansible-test to think every tests needs to be run.
2023-01-05 19:04:51 +01:00
Laurent Indermuehle
2af8e4f273
Fix server_id in GHA
GHA lack a way to pass option to docker's command. Also server_id is
not read as a environment variable. So I'm forced to use a config file.
2023-01-05 11:55:54 +01:00
Laurent Indermuehle
7049a280cb
Refactor setup_mysql into setup_controller 2023-01-04 17:29:06 +01:00
Laurent Indermuehle
405b809a86
Linting 2023-01-04 17:17:53 +01:00
Laurent Indermuehle
1e03a259fb
Fix replication server_id already in use 2023-01-04 17:16:03 +01:00
Laurent Indermuehle
c3458f4823
Cut docker healthcheck unsupported by GHA 2023-01-04 17:10:37 +01:00
Laurent Indermuehle
b821db97c5
Generalize mysql and mariadb version based on container name
This way we can split db_engine and db_version and simplify tests.
Also this is mandatory to use the matrix.db_engine_version as the
image name for our services containers.
2023-01-04 14:14:13 +01:00