Commit graph

381 commits

Author SHA1 Message Date
Laurent Indermuehle
ada9f6adf8
Add bold 2023-01-23 15:43:29 +01:00
Laurent Indermuehle
7cfac48ccf
Document fix container name 2023-01-23 15:43:28 +01:00
Laurent Indermühle
5538e17d75
Merge branch 'ansible-collections:main' into lie_tests_using_containers 2023-01-23 15:41:21 +01:00
Laurent Indermuehle
d951a4718f
Cut matrix from when build was done in a single workflow 2023-01-23 09:44:27 +01:00
Laurent Indermuehle
7d50a68546
Fix ansible version extraction for "devel" 2023-01-23 09:20:33 +01:00
Laurent Indermuehle
325320ac9e
Fix verify ansible 'devel' for which the version is unknown
Today 'devel' means 2.15, but in the future it will be something else.
2023-01-23 09:20:10 +01:00
Laurent Indermuehle
095ed0ad2e
Split Docker image workflow to rebuild only changed Dockerfile
My goal is not to save the planet but to make it work. Currently
docker/setup-buildx-action@v2 often fails. You have to rerun the
workflow multiple times until it succeed. When you do that with the
matrix with 15 containers, you never get to the point where they all
built successfully. Having separate workflows makes rerun the failing
build easier.
2023-01-23 09:18:36 +01:00
Laurent Indermuehle
a409445ba2
Fix image not found 2023-01-23 08:31:57 +01:00
Laurent Indermuehle
cc6fdb32a4
Fix missing cffi package to connect to MySQL 8 using Python 3.9 2023-01-23 08:31:35 +01:00
Laurent Indermuehle
37e5c71366
Fix variable name 2023-01-20 19:50:00 +01:00
Laurent Indermuehle
5d9952c2e2
Refactor get_driver_version to display name while passing sanity tests 2023-01-20 19:40:50 +01:00
Laurent Indermuehle
7a0956fdcb
Enable back sanity and unit tests 2023-01-20 19:00:59 +01:00
Laurent Indermuehle
23dd5a5423
Cut tests that was excluded in previous matrix 2023-01-20 19:00:05 +01:00
Laurent Indermuehle
41b408d71f
Fix indentation 2023-01-20 18:53:55 +01:00
Laurent Indermuehle
6399f249ae
Fix dict key lookup 2023-01-20 18:44:01 +01:00
Laurent Indermuehle
20965d2fa2
Cut test MySQL 8 with incompatible pymysql 0.7.11
It fails to connect with error about cryptography unsupported
2023-01-20 18:43:14 +01:00
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
a5c2634c94
Document TODO 2023-01-20 18:19:56 +01:00
Laurent Indermuehle
e412aa5142
Add clean up in "always" phase of the block
Because our tests use --retry-on-error, and the first thing the test
does is to try to create the database. We must cleanup otherwise if
there is a retry, it will throw a misleading "database already exists"
error.
2023-01-20 18:19:29 +01:00
Laurent Indermuehle
d6956e236e
Fix python version lookup 2023-01-20 17:13:16 +01:00
Laurent Indermuehle
b2cbd3bc78
Fix test of mysql/mariadb version in use 2023-01-20 16:07:39 +01:00
Laurent Indermuehle
d574daf683
Cut filter for tests now that the right connector is used 2023-01-20 16:07:21 +01:00
Laurent Indermuehle
069eba9c6a
Add tag 'latest' to images 2023-01-20 14:18:44 +01:00
Laurent Indermuehle
163048bd04
Fix container name 2023-01-20 14:12:36 +01:00
Laurent Indermuehle
05215dc1c3
Rename variable for consistency 2023-01-20 14:02:28 +01:00
Laurent Indermuehle
f59e94ee04
Fix verify for mysqlclient second name MySQLdb 2023-01-20 14:00:35 +01:00
Laurent Indermuehle
14cc5ccbee
Fix verify database version
Sometimes, version_full contains trailing information (-log). To prevent
issues it's best to concatenate major and minor version.
2023-01-20 13:59:57 +01:00
Laurent Indermuehle
e90876292e
Cut unused images 2023-01-20 13:48:01 +01:00
Laurent Indermuehle
c59e5418ce
Add back all tests using ghcr.io images 2023-01-20 13:47:50 +01:00
Laurent Indermuehle
7a806078cf
Workaround failed to push ghcr.io
Error was: failed to copy: io: read/write on closed pipe
2023-01-20 13:35:14 +01:00
Laurent Indermuehle
eadb216603
Fix context path 2023-01-20 13:09:15 +01:00
Laurent Indermuehle
e376b8cef8
Add support for version of mysqlclient 2023-01-20 13:08:14 +01:00
Laurent Indermuehle
5ba5ab049f
Fix workflow title 2023-01-20 13:07:28 +01:00
Laurent Indermuehle
9fd0d8b202
Change docker-image workflow to work on all images using matrix 2023-01-20 10:42:53 +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
f52410ddef
Cut addition of tag 'latest' as GHA does it automatically 2023-01-20 10:16:41 +01:00
Laurent Indermuehle
3686637765
Add missing slash 2023-01-20 10:12:27 +01:00
Laurent Indermuehle
1aa7cc97e7
Fix insufficient context 2023-01-20 10:10:09 +01:00
Laurent Indermuehle
535b2f7e04
Add latest tag 2023-01-20 10:07:10 +01:00
Laurent Indermuehle
f4b1e0f951
Fix env not recognized in the 'on' clause 2023-01-20 09:57:18 +01:00
Laurent Indermuehle
e398071ab3
Add trigger on workflow file edit 2023-01-20 09:55:44 +01:00
Laurent Indermuehle
f663ee6fb9
Add latest release of actions and with a context 2023-01-20 09:53:05 +01:00
Laurent Indermuehle
a849f92e2e
Attempt to build and publish an image on ghcr.io 2023-01-20 09:32:59 +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
b24249d39a
Add connector information to the returned values
I need to know what python library was used. I had a container with
both mysqlclient and pymysql installed and tests used a different
connector that what is advertised by the title of integration tests.
We need to prevent that otherwise our tests are worth nothing.
2023-01-19 16:36: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
2254e72d6b
Cut playbook that are now handled by the test-containers 2023-01-19 13:56:58 +01:00
Laurent Indermuehle
db72c7948b
Fix assertion for older mysqlclient than 2.0.1 with mysql (mariadb ok) 2023-01-17 18:11:19 +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
757e974fe5
Linting 2023-01-17 17:59:49 +01:00