Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/actions.lock
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ dependencies:
repo_id: 259445878
'linux-system-roles/.github@main':
ref: 'main'
commit: 'sha1-6a871b700c52584c272c33029b1bdd62a0e474cb'
commit: 'sha1-c685ee6b59776f177edf523bf4eab71c8ee195eb'
owner_id: 28014670
repo_id: 320092621
'sclorg/testing-farm-as-github-action@v4.3.1':
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ansible-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Install tox, tox-lsr
run: |
set -euxo pipefail
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@b30596c6fd1863b2eed20206ef32d13eac478e18"
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@241b655430b2fa3c2406b6d2a1190c9febb34b5b"

- name: Set up Python
uses: actions/setup-python@v7.1.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ansible-managed-var-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Install tox, tox-lsr
run: |
set -euxo pipefail
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@b30596c6fd1863b2eed20206ef32d13eac478e18"
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@241b655430b2fa3c2406b6d2a1190c9febb34b5b"

- name: Run ansible-plugin-scan
run: |
Expand Down
26 changes: 12 additions & 14 deletions .github/workflows/ansible-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Install tox, tox-lsr
run: |
set -euxo pipefail
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@b30596c6fd1863b2eed20206ef32d13eac478e18"
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@241b655430b2fa3c2406b6d2a1190c9febb34b5b"

- name: Set up Python
uses: actions/setup-python@v7.1.0
Expand All @@ -81,25 +81,23 @@ jobs:
- name: Convert role to collection format
run: tox -e collection

# https://bugs.launchpad.net/ubuntu/+source/podman/+bug/2154379
# https://lists.ubuntu.com/archives/apparmor/2026-January/013962.html
- name: Disable AppArmor and unprivileged_userns restriction and use podman for docker
if: matrix.versions.ansible == '2-22'
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
sudo apt install -y podman-docker apparmor-utils
# disable AppArmor
sudo aa-teardown
sudo aa-status && echo ERROR: failed to disable AppArmor || echo INFO: AppArmor disabled

- name: Run ansible-test
if: matrix.versions.ansible != '2-22'
run: |
tox \
-x testenv:ansible-test-${{ matrix.versions.ansible }}.basepython="python${{ matrix.versions.python }}" \
-e ansible-test-${{ matrix.versions.ansible }}

# https://bugs.launchpad.net/ubuntu/+source/podman/+bug/2154379
- name: Run ansible-test 2.22 without a container
if: matrix.versions.ansible == '2-22'
run: |
set -euo pipefail
python -m pip install 'ansible-core==2.22.*'
tempdir=$(mktemp -d)
trap 'rm -rf "$tempdir"' EXIT
cp -a .tox/ansible_collections "$tempdir/"
cd "$tempdir/ansible_collections/fedora/linux_system_roles"
ansible-test sanity

- name: Set final commit status
if: always() && github.event_name == 'issue_comment' && steps.head_sha_context.outputs.head_sha != ''
uses: linux-system-roles/.github/github-actions/commit-status@main
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:

if [ -z "${existed_in_remote}" ]; then
echo "Creating $branch branch"
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git checkout --orphan $branch
git reset --hard
git commit --allow-empty -m "Initializing $branch branch"
Expand Down Expand Up @@ -140,8 +140,8 @@ jobs:

- name: Commit changes
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add ${{ env.RELEASE_VERSION }}/README.html docs/index.html
git commit -m "Update README.html for ${{ env.RELEASE_VERSION }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
tox=tox
virtualenv=virtualenv
fi
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@b30596c6fd1863b2eed20206ef32d13eac478e18"
pip install "$tox" "$virtualenv" "git+https://github.com/linux-system-roles/tox-lsr@241b655430b2fa3c2406b6d2a1190c9febb34b5b"
# If you have additional OS dependency packages e.g. libcairo2-dev
# then put them in .github/config/ubuntu-requirements.txt, one
# package per line.
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/qemu-kvm-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
python3 -m pip install --upgrade pip
sudo apt update
sudo apt install -y --no-install-recommends git ansible-core genisoimage qemu-system-x86 qemu-utils
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@b30596c6fd1863b2eed20206ef32d13eac478e18"
pip3 install "git+https://github.com/linux-system-roles/tox-lsr@241b655430b2fa3c2406b6d2a1190c9febb34b5b"

- name: Check for podman version 5 or higher
id: check_podman_version
Expand All @@ -166,6 +166,17 @@ jobs:
curl -o ~/.config/linux-system-roles.json
https://raw.githubusercontent.com/linux-system-roles/linux-system-roles.github.io/master/download/linux-system-roles.json

# https://bugs.launchpad.net/ubuntu/+source/podman/+bug/2154379
# https://lists.ubuntu.com/archives/apparmor/2026-January/013962.html
- name: Disable AppArmor and unprivileged_userns restriction
if: steps.check_platform.outputs.supported && startsWith(matrix.scenario.env, 'container')
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
# disable AppArmor
sudo apt install -y apparmor-utils
sudo aa-teardown
sudo aa-status && echo ERROR: failed to disable AppArmor || echo INFO: AppArmor disabled

- name: Run qemu integration tests
if: steps.check_platform.outputs.supported && startsWith(matrix.scenario.env, 'qemu')
run: >-
Expand Down Expand Up @@ -257,6 +268,8 @@ jobs:
if: steps.check_platform.outputs.supported && failure()
run: |
set -euo pipefail
# ensure python3-requests for check_logs
sudo apt install -y python3-requests
# grab check_logs.py script
curl -s -L -o check_logs.py https://raw.githubusercontent.com/linux-system-roles/auto-maintenance/refs/heads/main/check_logs.py
chmod +x check_logs.py
Expand Down
Loading