Skip to content

Commit 1360be3

Browse files
authored
[chore][ci]salt-test: remove ubuntu-20.04 GH runner (#6093)
1 parent 2a3af43 commit 1360be3

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

.github/workflows/salt-test.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ jobs:
6868

6969
salt-test:
7070
name: salt-test
71-
# Amazon Linux 2 uses cgroup v1
72-
# Ubuntu 24.04 uses cgroup v2
73-
# Fallback to Ubuntu 20.04 when needed
74-
runs-on: ${{ fromJSON('["ubuntu-24.04", "ubuntu-20.04"]')[matrix.DISTRO == 'amazonlinux-2'] }}
71+
runs-on: ubuntu-24.04
7572
timeout-minutes: 60
7673
needs: [salt-lint-test, salt-test-matrix]
7774
strategy:
@@ -96,10 +93,6 @@ jobs:
9693
continue-on-error: true
9794
run: |
9895
distro="${{ matrix.DISTRO }}"
99-
if [[ "$distro" = "amazonlinux-2" ]]; then
100-
# workaround for pytest substring matching
101-
distro="amazonlinux-2 and not amazonlinux-2023"
102-
fi
10396
python3 -u -m pytest -s --verbose -k "$distro and ${{ matrix.CONFIG }}" \
10497
packaging/tests/deployments/salt/salt_test.py
10598
@@ -108,10 +101,6 @@ jobs:
108101
if: ${{ steps.pytest.outcome == 'failure' }}
109102
run: |
110103
distro="${{ matrix.DISTRO }}"
111-
if [[ "$distro" = "amazonlinux-2" ]]; then
112-
# workaround for pytest substring matching
113-
distro="amazonlinux-2 and not amazonlinux-2023"
114-
fi
115104
python3 -u -m pytest -s --verbose -k "$distro and ${{ matrix.CONFIG }}" \
116105
--last-failed \
117106
packaging/tests/deployments/salt/salt_test.py

packaging/tests/deployments/salt/images/distro_docker_opts.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ deb:
44
ubuntu-jammy: ["DISTRO_IMAGE=ubuntu:22.04"]
55

66
rpm:
7-
amazonlinux-2: ["DISTRO_IMAGE=amazonlinux:2", "PKG_MGR=yum"]
87
amazonlinux-2023: ["DISTRO_IMAGE=amazonlinux:2023"]
98
centos-8: ["DISTRO_IMAGE=quay.io/centos/centos:stream8"]
109
centos-9: ["DISTRO_IMAGE=quay.io/centos/centos:stream9"]

0 commit comments

Comments
 (0)