Skip to content

Commit 80d10b5

Browse files
authored
CI: tweak voiptests parameters. (#3832)
Set MM_INIT_DELAY to give opensips/rtp.io some extra time to init. Ignore faulures of the time-sensitive tests that might fail under emulation.
1 parent e5e0aee commit 80d10b5

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/.rtp.io.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
path: ${{ env.OUTPUT_IMAGE }}
202202

203203
test_rtp_io_dock:
204-
name: Test (GHCR)
204+
name: Run VoIPTests™ (GHCR)
205205
needs: [build_rtp_io_dock, set_env]
206206
runs-on: ubuntu-latest
207207
if: ${{ github.event_name != 'pull_request' }}
@@ -230,15 +230,22 @@ jobs:
230230
username: ${{ github.repository_owner }}
231231
password: ${{ secrets.GITHUB_TOKEN }}
232232

233+
- name: Set dynamic environment
234+
run: |
235+
if [ "${TARGETPLATFORM}" != "linux/amd64" ]
236+
then
237+
echo "TEST_SET_MIGHTFAIL=early_cancel_lost100,early_cancel" >> $GITHUB_ENV
238+
fi
239+
233240
- name: Test ${{ env.TARGETPLATFORM }}
234241
run: |
235242
docker pull ${BUILD_IMAGE}
236-
docker run --platform ${TARGETPLATFORM} --name test --cap-add=SYS_PTRACE \
243+
docker run --platform ${TARGETPLATFORM} --env TEST_SET_MIGHTFAIL --name test --cap-add=SYS_PTRACE \
237244
--privileged --sysctl net.ipv6.conf.all.disable_ipv6=0 ${BUILD_IMAGE}
238245
timeout-minutes: 2
239246

240247
test_rtp_io_local:
241-
name: Test (LOCAL)
248+
name: Run VoIPTests™ (LOCAL)
242249
needs: [build_rtp_io_dock_local, set_env]
243250
runs-on: ubuntu-latest
244251
if: ${{ github.event_name == 'pull_request' }}
@@ -259,6 +266,10 @@ jobs:
259266
_BUILD_OS="`echo ${BUILD_OS} | sed 's|:|-|g'`"
260267
OUTPUT_IMAGE_N="image-${_BUILD_OS}-`echo ${{ matrix.platform }} | sed 's|/|-|g'`"
261268
OUTPUT_IMAGE="./${OUTPUT_IMAGE_N}.tar"
269+
if [ "${TARGETPLATFORM}" != "linux/amd64" ]
270+
then
271+
echo "TEST_SET_MIGHTFAIL=early_cancel_lost100,early_cancel" >> $GITHUB_ENV
272+
fi
262273
echo OUTPUT_TAG="${OUTPUT_TAG}" >> $GITHUB_ENV
263274
echo OUTPUT_IMAGE="${OUTPUT_IMAGE}" >> $GITHUB_ENV
264275
echo OUTPUT_IMAGE_N="${OUTPUT_IMAGE_N}" >> $GITHUB_ENV
@@ -280,6 +291,6 @@ jobs:
280291

281292
- name: Test ${{ env.TARGETPLATFORM }}
282293
run: |
283-
docker run --platform ${TARGETPLATFORM} --name test --cap-add=SYS_PTRACE \
294+
docker run --platform ${TARGETPLATFORM} --env TEST_SET_MIGHTFAIL --name test --cap-add=SYS_PTRACE \
284295
--privileged --sysctl net.ipv6.conf.all.disable_ipv6=0 ${OUTPUT_TAG}
285296
timeout-minutes: 2

docker/Dockerfile.rtp.io

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@ ENV MM_ROOT=../..
5353
ENV RTPP_BRANCH=DOCKER
5454
ENV RTPPC_TYPE=rtp.io
5555
ENV RTPPROXY_DIST=../../dist/rtpproxy
56+
ENV MM_INIT_DELAY=2
5657
WORKDIR dist/voiptests
58+
ARG TEST_SET_MIGHTFAIL
59+
ENV TEST_SET_MIGHTFAIL=${TEST_SET_MIGHTFAIL}
5760
ENTRYPOINT [ "sh", "-x", "./test_run.sh" ]

scripts/build/get-arch-buildargs.rtp.io

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ isbrokenplatform() {
66
case "${BUILD_OS}" in
77
debian:*)
88
case "${TARGETPLATFORM}" in
9-
linux/386 | linux/arm/v7 | linux/mips64le | linux/ppc64le | linux/s390x)
9+
linux/mips64le | linux/s390x)
1010
exit 1
1111
;;
1212
esac
1313
;;
1414
ubuntu*)
1515
case "${TARGETPLATFORM}" in
16-
linux/arm/v7 | linux/ppc64le | linux/s390x | linux/arm64)
16+
linux/s390x)
1717
exit 1
1818
;;
1919
esac

0 commit comments

Comments
 (0)