Skip to content

Commit 483b4d0

Browse files
committed
Ignore faulures of the time-sensitive tests that might fail under
emulation.
1 parent 1071f8d commit 483b4d0

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,5 @@ ENV RTPPC_TYPE=rtp.io
5757
ENV RTPPROXY_DIST=../../dist/rtpproxy
5858
ENV MM_INIT_DELAY=2
5959
WORKDIR dist/voiptests
60+
ARG TEST_SET_MIGHTFAIL
6061
ENTRYPOINT [ "sh", "-x", "./test_run.sh" ]

0 commit comments

Comments
 (0)