Commit graph

60 commits

Author SHA1 Message Date
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
Laurent Indermuehle
d06cefa62d
Revert to old workflow to use ansible-test --venv
It seams that that ansible-test-gh-action doesn't handle this option:
https://github.com/ansible-community/ansible-test-gh-action/blob/main/action.yml#L483-L497
2022-12-09 15:22:41 +01:00
Andrew Klychkov
eade7ec1f0
CI: add PR change detection (#473) 2022-12-09 14:50:37 +01:00
Laurent Indermühle
4dac66382a
Add fixed version of Ubuntu (#470)
This is because ubuntu-latest link to ubuntu-22.04 which includes
cgroup-v2. I thinks our tests fails because of that. See
https://github.com/ansible-collections/news-for-maintainers/issues/28
for more information.
2022-12-06 08:41:04 +01:00
Sviatoslav Sydorenko
8107530744
Sync GHA workflow w/ the collection template (#452)
* Sync GHA workflow w/ the collection template

* Drop the trailing pre-cmd semicolon

* Recover missing `-e` flag of `sed`

* Use relative paths for version configs

* Unquote `env.connector_version_file`

* Use string formatting to fix the substitution problem
2022-10-03 14:27:55 +02:00
Andrew Klychkov
b8e2c02e89
CI: add stable-2.14 to test matrix (#449) 2022-09-22 11:24:01 +02:00
Laurent Indermühle
97318559e5
Fix ci python requirements (#416)
* Add matrix for python and ansible-core versions for sanity tests

* Add python 3.9 to integrations tests

* Add python 3.9 to unit tests

* Reformat sort by python version first
2022-08-05 09:25:14 +02:00
Andrew Klychkov
b62a59cf5a
Update mariadb to 10.6.8 in test matrix (#370)
* Update mariadb to 10.6.8 in test matrix

* try 10.8.3

* change tarball path

* Change tarball name

* Add mariadb 10.8

* Fix

* Fix

* Fix
2022-06-24 13:50:19 +02:00
Andrew Klychkov
eff87f952b
Drop support for Ansible 2.9 and ansible-base 2.10 (#343)
* Drop support for Ansible 2.9 and ansible-base 2.10

* Improve README
2022-05-12 10:50:26 +02:00
R.Sicart
e319ac082e
CI: add testing against ansible-core 2.13 (#326)
Relates to https://github.com/ansible-collections/news-for-maintainers/issues/14
2022-04-02 17:53:21 +02:00
Andrew Klychkov
f00f06df76
Fix the collection to work with mysqlclient connector (#293)
* Integration tests: restrict exclusion mysqlclient + MariaDB only when testing the mysql_role module

* Fix

* Fix underlying issue

* Fix units

* Add changelog fragment
2022-03-14 10:03:47 +01:00
R.Sicart
82cedf8510
Fix role integration tests for mariadb (#291)
* Fix: test_mysql_role : Check that the user have no active roles assertion

* Fix: test_mysql_role : Check in DB assertion

* Fix: test_mysql_role : Check in DB, if not granted, the query will fail for mariadb

* Fix: test_mysql_role : Check that the role is active assertion

* test_mysql_role : create checks for mariadb

* Make 'when' conditions uniform

* Fix: test_mysql_role : admin option tests

* test_mysql_role : create checks for mariadb

* Fix: add fixme on test which create role in check mode 'again'

It changes only on mariadb 10.2
(doesn't change on mysql 8 or mariadb 10.5)

* Fix: add fixme on test which create role 'again'

* Simplify test without checking Host part

* Fix 'show grant' checks for mariadb

* Enable mariadb tests for test_mysql_role target

* Add tests to verify role grants for roles

* Add FIXME comments for tests which do not pass on mariadb 10.2

* Fix FIXME tests related to mariadb 10.2

* Exclude mysqlclient==2.0.1 with mariadb from integration tests
2022-03-04 10:52:43 +01:00
Andrew Klychkov
c273ee36a7
Enable and fix integration tests for devel (#290)
* Enable and fix integration tests for devel

* Update repo targets

* Remove useless directive

* default container -> ubuntu1804

* revert last commit

* 10.2 does not support 20.04 focal; increase to 10.3
2022-03-01 17:57:20 +01:00