Skip to content

Commit b562875

Browse files
committed
CI: tweak voiptests parameters.
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 5964710 commit b562875

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

.github/workflows/.rtp.io.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,17 @@ 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

@@ -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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,7 @@ 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
5759
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/ppc64le | 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/ppc64le | linux/s390x | linux/arm64)
1717
exit 1
1818
;;
1919
esac

0 commit comments

Comments
 (0)