ci: tox-lsr 3.16.0 - fix qemu tox test failures - rename to qemu-ansible-core-X-Y [citest_skip]
the latest version of tox 4.49 has a strange issue - it thinks that a tox testenv like `[qemu-ansible-core-2.20]` is specifying python 2.20 which conflicts with the testenv basepython of python 3.latest. There appears to be no way to workaround this. So, rename all of the testenvs to use `major-minor` instead of `major.minor` e.g. `[qemu-ansible-core-2-20]` Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
committed by
Richard Megginson
parent
df0cabfea1
commit
404a1d1ff2
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.15.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.16.0"
|
||||||
|
|
||||||
- name: Convert role to collection format
|
- name: Convert role to collection format
|
||||||
id: collection
|
id: collection
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.15.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.16.0"
|
||||||
|
|
||||||
- name: Run ansible-plugin-scan
|
- name: Run ansible-plugin-scan
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
- name: Install tox, tox-lsr
|
- name: Install tox, tox-lsr
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.15.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.16.0"
|
||||||
|
|
||||||
- name: Convert role to collection format
|
- name: Convert role to collection format
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -28,22 +28,22 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
scenario:
|
scenario:
|
||||||
# QEMU
|
# QEMU
|
||||||
- { image: "centos-9", env: "qemu-ansible-core-2.16" }
|
- { image: "centos-9", env: "qemu-ansible-core-2-16" }
|
||||||
- { image: "centos-10", env: "qemu-ansible-core-2.17" }
|
- { image: "centos-10", env: "qemu-ansible-core-2-17" }
|
||||||
- { image: "fedora-42", env: "qemu-ansible-core-2.19" }
|
- { image: "fedora-42", env: "qemu-ansible-core-2-19" }
|
||||||
- { image: "fedora-43", env: "qemu-ansible-core-2.19" }
|
- { image: "fedora-43", env: "qemu-ansible-core-2-19" }
|
||||||
- { image: "leap-15.6", env: "qemu-ansible-core-2.18" }
|
- { image: "leap-15.6", env: "qemu-ansible-core-2-18" }
|
||||||
|
|
||||||
# container
|
# container
|
||||||
- { image: "centos-9", env: "container-ansible-core-2.16" }
|
- { image: "centos-9", env: "container-ansible-core-2-16" }
|
||||||
- { image: "centos-9-bootc", env: "container-ansible-core-2.16" }
|
- { image: "centos-9-bootc", env: "container-ansible-core-2-16" }
|
||||||
# broken on non-running dbus
|
# broken on non-running dbus
|
||||||
# - { image: "centos-10", env: "container-ansible-core-2.17" }
|
# - { image: "centos-10", env: "container-ansible-core-2-17" }
|
||||||
- { image: "centos-10-bootc", env: "container-ansible-core-2.17" }
|
- { image: "centos-10-bootc", env: "container-ansible-core-2-17" }
|
||||||
- { image: "fedora-42", env: "container-ansible-core-2.17" }
|
- { image: "fedora-42", env: "container-ansible-core-2-17" }
|
||||||
- { image: "fedora-43", env: "container-ansible-core-2.19" }
|
- { image: "fedora-43", env: "container-ansible-core-2-19" }
|
||||||
- { image: "fedora-42-bootc", env: "container-ansible-core-2.17" }
|
- { image: "fedora-42-bootc", env: "container-ansible-core-2-17" }
|
||||||
- { image: "fedora-43-bootc", env: "container-ansible-core-2.19" }
|
- { image: "fedora-43-bootc", env: "container-ansible-core-2-19" }
|
||||||
|
|
||||||
env:
|
env:
|
||||||
TOX_ARGS: "--skip-tags tests::infiniband,tests::nvme,tests::scsi"
|
TOX_ARGS: "--skip-tags tests::infiniband,tests::nvme,tests::scsi"
|
||||||
@@ -110,7 +110,7 @@ jobs:
|
|||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
|
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86
|
||||||
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.15.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.16.0"
|
||||||
|
|
||||||
# HACK: Drop this when moving this workflow to 26.04 LTS
|
# HACK: Drop this when moving this workflow to 26.04 LTS
|
||||||
- name: Update podman to 5.x for compatibility with bootc-image-builder's podman 5
|
- name: Update podman to 5.x for compatibility with bootc-image-builder's podman 5
|
||||||
|
|||||||
+1
-1
@@ -54,7 +54,7 @@ The latest version of tox-lsr supports qemu testing.
|
|||||||
you can use e.g.
|
you can use e.g.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
tox -e qemu-ansible-core-2.14 -- --image-name centos-9 tests/tests_default.yml
|
tox -e qemu-ansible-core-2-20 -- --image-name centos-9 tests/tests_default.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
There are many command line options and environment variables which can be used
|
There are many command line options and environment variables which can be used
|
||||||
|
|||||||
Reference in New Issue
Block a user