mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
ci: rollout several recent changes to CI testing
* Pass in a YAML true value as `__bootc_validation: true` using
the --extra-vars option to ensure that `__bootc_validation` is
treated as a boolean and not a string value.
`-e "__bootc_validation: true"`
You can also use JSON format:
`-e '{"__bootc_validation": true}'`
but YAML is simpler in this case.
* Use tox-lsr version 3.11.1
* Ensure the citest bad comment works when the test was cancelled in
addition to the failure case.
* Update contributing.md documentation
* Update number of nodes to use in testing farm, if needed
* remove unnecessary ansible-lint skips
Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
parent
65b5d1ad85
commit
f09cb1bc38
6 changed files with 8 additions and 7 deletions
2
.github/workflows/ansible-lint.yml
vendored
2
.github/workflows/ansible-lint.yml
vendored
|
|
@ -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.11.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.11.1"
|
||||||
|
|
||||||
- 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.11.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.11.1"
|
||||||
|
|
||||||
- name: Run ansible-plugin-scan
|
- name: Run ansible-plugin-scan
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/ansible-test.yml
vendored
2
.github/workflows/ansible-test.yml
vendored
|
|
@ -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.11.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.11.1"
|
||||||
|
|
||||||
- name: Convert role to collection format
|
- name: Convert role to collection format
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/python-unit-test.yml
vendored
2
.github/workflows/python-unit-test.yml
vendored
|
|
@ -67,7 +67,7 @@ jobs:
|
||||||
tox=tox
|
tox=tox
|
||||||
virtualenv=virtualenv
|
virtualenv=virtualenv
|
||||||
fi
|
fi
|
||||||
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@3.11.0"
|
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@3.11.1"
|
||||||
# If you have additional OS dependency packages e.g. libcairo2-dev
|
# If you have additional OS dependency packages e.g. libcairo2-dev
|
||||||
# then put them in .github/config/ubuntu-requirements.txt, one
|
# then put them in .github/config/ubuntu-requirements.txt, one
|
||||||
# package per line.
|
# package per line.
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,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.11.0"
|
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@3.11.1"
|
||||||
|
|
||||||
# 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
|
||||||
|
|
@ -199,7 +199,7 @@ jobs:
|
||||||
if tox -e "$env" -- --image-file "$(pwd)/$image_file" \
|
if tox -e "$env" -- --image-file "$(pwd)/$image_file" \
|
||||||
--log-level debug $TOX_ARGS \
|
--log-level debug $TOX_ARGS \
|
||||||
--lsr-report-errors-url DEFAULT \
|
--lsr-report-errors-url DEFAULT \
|
||||||
-e __bootc_validation=true \
|
-e "__bootc_validation: true" \
|
||||||
-- "$test" >out 2>&1; then
|
-- "$test" >out 2>&1; then
|
||||||
mv out "${test}-PASS.log"
|
mv out "${test}-PASS.log"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
3
.github/workflows/tft_citest_bad.yml
vendored
3
.github/workflows/tft_citest_bad.yml
vendored
|
|
@ -33,8 +33,9 @@ jobs:
|
||||||
echo "The workflow $PENDING_RUN is still running, wait for it to finish to re-run"
|
echo "The workflow $PENDING_RUN is still running, wait for it to finish to re-run"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
# TF tests can fail or can be cancelled due to TF internal issues
|
||||||
RUN_ID=$(gh api "repos/$REPO/actions/workflows/tft.yml/runs?event=issue_comment" \
|
RUN_ID=$(gh api "repos/$REPO/actions/workflows/tft.yml/runs?event=issue_comment" \
|
||||||
| jq -r "[.workflow_runs[] | select( .display_title == \"$PR_TITLE\" ) | select( .conclusion == \"failure\" ) | .id][0]")
|
| jq -r "[.workflow_runs[] | select( .display_title == \"$PR_TITLE\" ) | select( .conclusion == \"failure\" or .conclusion == \"cancelled\" ) | .id][0]")
|
||||||
if [ "$RUN_ID" = "null" ]; then
|
if [ "$RUN_ID" = "null" ]; then
|
||||||
echo "Failed workflow not found, exiting"
|
echo "Failed workflow not found, exiting"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue