Commit graph

76 commits

Author SHA1 Message Date
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
Laurent Indermuehle
4b6617ab50
Swap MariaDB with MySQL 2023-01-04 11:38:09 +01:00
Laurent Indermuehle
676509e88d
Install mysql_client the correct way 2023-01-03 15:17:47 +01:00
Laurent Indermuehle
0cd57adbd2
Add mysql_client to the controller 2023-01-03 15:13:49 +01:00
Laurent Indermuehle
cd9f216319
Further disable tests to speed up 2023-01-03 15:13:30 +01:00
Laurent Indermuehle
8652a9a947
Disable sanity, units and matrix to speed up tests in GHA 2023-01-03 14:33:11 +01:00
Laurent Indermuehle
60c87abca0
Disable healthcheck
I want to first prove that this setup is possible before adding safety
2023-01-03 14:31:16 +01:00
Laurent Indermuehle
589a0decfd
Cut anchors currently unsupported by GHA 2023-01-03 14:07:54 +01:00
Laurent Indermuehle
2149261e92
Attempt GHA communication between container using "docker host network"
https://docs.github.com/en/actions/using-containerized-services/about-service-containers
I re-revert the workflow to use the new custom action. But I'm not sure
it will works because I don't know how the container for ansible-test
is started and if it will have access to the services containers.
2023-01-03 14:05:36 +01:00
Laurent Indermuehle
634d1fb5f0
Fix workflow unknown option container_name 2022-12-09 15:40:21 +01:00
Laurent Indermühle
574fef5e50
Merge branch 'main' into lie_tests_using_containers 2022-12-09 15:33:33 +01:00