From 0414fdbc8c0369dcedc32d987ea70cee118da1bc Mon Sep 17 00:00:00 2001 From: kogeler Date: Sat, 25 May 2024 13:30:46 +0300 Subject: [PATCH] fix ci Signed-off-by: kogeler --- .github/workflows/requirements-molecule.txt | 9 +++++++-- .github/workflows/reusable-molecule.yml | 7 ------- roles/nginx/molecule/default/README.md | 8 -------- roles/nginx/molecule/default/molecule.yml | 3 --- roles/node_backup/molecule/default/README.md | 7 ------- roles/node_backup/molecule/default/molecule.yml | 3 --- roles/ws_health_exporter/molecule/default/molecule.yml | 3 --- 7 files changed, 7 insertions(+), 33 deletions(-) diff --git a/.github/workflows/requirements-molecule.txt b/.github/workflows/requirements-molecule.txt index 2468265..f1e8666 100644 --- a/.github/workflows/requirements-molecule.txt +++ b/.github/workflows/requirements-molecule.txt @@ -9,7 +9,6 @@ click==8.1.7 click-help-colors==0.9.4 cryptography==42.0.7 distro==1.9.0 -docker==7.1.0 enrich==1.2.7 filelock==3.14.0 idna==3.7 @@ -32,7 +31,6 @@ pycparser==2.22 Pygments==2.18.0 PyYAML==6.0.1 referencing==0.35.1 -requests==2.31.0 resolvelib==1.0.1 rich==13.7.1 rpds-py==0.18.1 @@ -44,3 +42,10 @@ urllib3==2.2.1 wcmatch==8.5.2 yamllint==1.35.1 zipp==3.18.2 +# requests > 2.31.0 brakes Docker Python library +# The fix https://github.com/docker/docker-py/pull/3257/files +# has not been in a release of the Docker Python library +# they should be updated together +# when new versions of the Docker Python library > 7.1.0 are released +docker==7.1.0 +requests==2.31.0 \ No newline at end of file diff --git a/.github/workflows/reusable-molecule.yml b/.github/workflows/reusable-molecule.yml index 92c0c21..78d85a5 100644 --- a/.github/workflows/reusable-molecule.yml +++ b/.github/workflows/reusable-molecule.yml @@ -32,13 +32,6 @@ jobs: fi working-directory: "${{ github.repository }}/roles/${{ inputs.role-name }}" - name: Install Python modules - # version of reauests is fixed because the fix - # https://github.com/docker/docker-py/pull/3257/files - # has not been in releases yet - # it can be removed after updating to the next release of docker-py (now 7.1.0) - # pip3 install --no-cache-dir yamllint ansible==${{ inputs.ansible-version }} ansible-lint==24.5.0 \ - # molecule==24.2.1 molecule-plugins[docker]==23.5.3 docker==7.1.0 requests==2.31.0 \ - # jmespath==1.0.1 run: | set -e echo "ansible==${{ inputs.ansible-version }}" >> requirements-molecule.txt diff --git a/roles/nginx/molecule/default/README.md b/roles/nginx/molecule/default/README.md index 8ae68a1..3daa9a6 100644 --- a/roles/nginx/molecule/default/README.md +++ b/roles/nginx/molecule/default/README.md @@ -8,11 +8,3 @@ molecule verify molecule destroy ``` -#### LXD -Test role with LXD driver -```shell -DRIVER=lxd molecule create -DRIVER=lxd molecule converge -DRIVER=lxd molecule verify -DRIVER=lxd molecule destroy -``` diff --git a/roles/nginx/molecule/default/molecule.yml b/roles/nginx/molecule/default/molecule.yml index 0fa28b6..7f9dc45 100644 --- a/roles/nginx/molecule/default/molecule.yml +++ b/roles/nginx/molecule/default/molecule.yml @@ -5,9 +5,6 @@ driver: name: ${DRIVER:-docker} platforms: - name: molecule-instance-nginx - # LXD - source: - alias: debian/bullseye/amd64 # DOCKER image: paritytech/debian11:latest command: ${MOLECULE_DOCKER_COMMAND:-""} diff --git a/roles/node_backup/molecule/default/README.md b/roles/node_backup/molecule/default/README.md index cde3444..8321361 100644 --- a/roles/node_backup/molecule/default/README.md +++ b/roles/node_backup/molecule/default/README.md @@ -15,11 +15,4 @@ molecule converge molecule destroy ``` -#### LXD -Test role with LXD driver -```shell -DRIVER=lxd molecule create -DRIVER=lxd molecule converge -DRIVER=lxd molecule destroy -``` diff --git a/roles/node_backup/molecule/default/molecule.yml b/roles/node_backup/molecule/default/molecule.yml index 2dcf72f..6ad8784 100644 --- a/roles/node_backup/molecule/default/molecule.yml +++ b/roles/node_backup/molecule/default/molecule.yml @@ -5,9 +5,6 @@ driver: name: ${DRIVER:-docker} platforms: - name: molecule-instance-node-backup - # LXD - source: - alias: debian/bullseye/amd64 # DOCKER image: paritytech/debian11:latest command: ${MOLECULE_DOCKER_COMMAND:-""} diff --git a/roles/ws_health_exporter/molecule/default/molecule.yml b/roles/ws_health_exporter/molecule/default/molecule.yml index adc3f6c..72d9d2e 100644 --- a/roles/ws_health_exporter/molecule/default/molecule.yml +++ b/roles/ws_health_exporter/molecule/default/molecule.yml @@ -5,9 +5,6 @@ driver: name: ${DRIVER:-docker} platforms: - name: molecule-instance-ws-health-exporter - # LXD - source: - alias: debian/bullseye/amd64 # DOCKER image: paritytech/debian11:latest command: ${MOLECULE_DOCKER_COMMAND:-""}