ci: use tox-lsr 3.6.0; improve qemu test logging
tox-lsr 3.6.0 will guarantee order of qemu test execution, which should help make tests reproducible and help debug test failures. Improve qemu test logging - this will help debug the qemu test failures. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
committed by
Richard Megginson
parent
fa134b8aab
commit
a8418ce31a
@@ -32,7 +32,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.5.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.6.0"
|
||||||
|
|
||||||
- name: Convert role to collection format
|
- name: Convert role to collection format
|
||||||
id: collection
|
id: collection
|
||||||
|
|||||||
@@ -30,7 +30,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.5.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.6.0"
|
||||||
|
|
||||||
- name: Run ansible-plugin-scan
|
- name: Run ansible-plugin-scan
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -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.5.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.6.0"
|
||||||
|
|
||||||
- name: Convert role to collection format
|
- name: Convert role to collection format
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -74,7 +74,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.5.1"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.6.0"
|
||||||
|
|
||||||
- name: Configure tox-lsr
|
- name: Configure tox-lsr
|
||||||
if: steps.check_platform.outputs.supported
|
if: steps.check_platform.outputs.supported
|
||||||
@@ -109,14 +109,29 @@ jobs:
|
|||||||
echo "$f"
|
echo "$f"
|
||||||
done < batch.report
|
done < batch.report
|
||||||
|
|
||||||
- name: Show test logs on failure
|
- name: Upload test logs on failure
|
||||||
|
if: failure()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: "logs-${{ matrix.scenario.image }}-${{ matrix.scenario.env }}"
|
||||||
|
path: |
|
||||||
|
tests/*.log
|
||||||
|
artifacts/default_provisioners.log
|
||||||
|
artifacts/*.qcow2.*.log
|
||||||
|
batch.txt
|
||||||
|
batch.report
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Show test log failures
|
||||||
if: steps.check_platform.outputs.supported && failure()
|
if: steps.check_platform.outputs.supported && failure()
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
for f in tests/*.log; do
|
for f in tests/*.log; do
|
||||||
echo "::group::$(basename $f)"
|
if FAIL=$(grep -B100 -A30 "fatal:" "$f"); then
|
||||||
cat "$f"
|
echo "::group::$(basename $f)"
|
||||||
echo "::endgroup::"
|
echo "$FAIL"
|
||||||
|
echo "::endgroup::"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Set commit status as success with a description that platform is skipped
|
- name: Set commit status as success with a description that platform is skipped
|
||||||
|
|||||||
Reference in New Issue
Block a user