86
86
id : get-matrix
87
87
run : |
88
88
# create test matrix for distro and arch
89
- dockerfiles=$(find packaging/tests/instrumentation/images/ -name "Dockerfile.*" | cut -d '.' -f2- | sort -u)
89
+ dockerfiles=$(find packaging/tests/instrumentation/images -name "Dockerfile.*" | cut -d '.' -f2- | sort -u)
90
90
if [ -z "$dockerfiles" ]; then
91
91
echo "Failed to get dockerfiles from packaging/tests/instrumentation/images!" >&2
92
92
exit 1
@@ -95,19 +95,15 @@ jobs:
95
95
arch="\"amd64\", \"arm64\""
96
96
testcase="\"express\",\"tomcat\",\"dotnet\""
97
97
# splunk-otel-dotnet currently not supported on arm64
98
- # amazonlinux-2 requires cgroup v1, only available on version 20.04 that doesn't have an arm runner
99
- exclude='{"ARCH": "arm64", "TESTCASE": "dotnet"},{"DISTRO": "amazonlinux-2", "ARCH": "arm64"}'
98
+ exclude='{"ARCH": "arm64", "TESTCASE": "dotnet"}'
100
99
matrix="{\"DISTRO\": [${distro%,}], \"ARCH\": [${arch}], \"TESTCASE\": [${testcase}], \"exclude\": [${exclude}]}"
101
100
echo "$matrix" | jq
102
101
echo "matrix=${matrix}" >> $GITHUB_OUTPUT
103
102
outputs :
104
103
matrix : ${{ steps.get-matrix.outputs.matrix }}
105
104
106
105
test-package :
107
- # Amazon Linux 2 uses cgroup v1
108
- # Ubuntu 24.04 uses cgroup v2
109
- # Fallback to Ubuntu 20.04 when appropriate
110
- runs-on : ubuntu-${{ matrix.DISTRO != 'amazonlinux-2' && '24.04' || '20.04' }}${{ matrix.ARCH == 'arm64' && '-arm' || '' }}
106
+ runs-on : ubuntu-24.04${{ matrix.ARCH == 'arm64' && '-arm' || '' }}
111
107
timeout-minutes : 60
112
108
needs : [cross-compile, build-package, test-package-matrix]
113
109
strategy :
@@ -160,10 +156,6 @@ jobs:
160
156
continue-on-error : true
161
157
run : |
162
158
distro="${{ matrix.DISTRO }}"
163
- if [[ "$distro" = "amazonlinux-2" ]]; then
164
- # workaround for pytest substring matching
165
- distro="amazonlinux-2 and not amazonlinux-2023"
166
- fi
167
159
testcase="${{ matrix.TESTCASE }} or uninstall"
168
160
python3 -u -m pytest -s --verbose -k "$distro and ${{ matrix.ARCH }} and ($testcase)" \
169
161
packaging/tests/instrumentation/instrumentation_test.py
@@ -173,10 +165,6 @@ jobs:
173
165
if : ${{ steps.pytest.outcome == 'failure' }}
174
166
run : |
175
167
distro="${{ matrix.DISTRO }}"
176
- if [[ "$distro" = "amazonlinux-2" ]]; then
177
- # workaround for pytest substring matching
178
- distro="amazonlinux-2 and not amazonlinux-2023"
179
- fi
180
168
testcase="${{ matrix.TESTCASE }} or uninstall"
181
169
python3 -u -m pytest -s --verbose -k "$distro and ${{ matrix.ARCH }} and ($testcase)" \
182
170
--last-failed \
0 commit comments