@@ -2,10 +2,11 @@ name: Multi-Server CI Tests
22
33on :
44 push :
5- branches : [ "loadgen-5hs-tests" ]
6-
5+ branches-ignore :
6+ - coverity_scan
7+ - run-fuzzer**
8+ - debug-fuzzer-**
79 pull_request :
8- branches : [ "loadgen-5hs-tests" ]
910 paths :
1011 - ' .github/workflows/ci-multi-server-tests.yml'
1112 - ' src/tests/multi-server/**'
1516 pre-test :
1617 runs-on : ubuntu-latest
1718 outputs :
18- selfhosted : 0
19- # selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }}
19+ # selfhosted: 0
20+ selfhosted : ${{ ( github.repository_owner == 'FreeRADIUS') && '1' || '0' }}
2021 steps :
2122 - run : echo "Pre-test job; checking if using self-hosted runners"
2223
@@ -84,10 +85,10 @@ jobs:
8485 - name : Get pre-built Docker image for self-hosted runner test
8586 if : ${{ needs.pre-test.outputs.selfhosted == '1' }}
8687 run : |
87- docker pull docker.internal.networkradius.com/self-hosted-${MULTI_SERVER_ENV_DOCKER_BUILD_OS}:latest
88+ docker pull docker.internal.networkradius.com/self-hosted
8889
8990 # Tag freeradius build image using using a non-OS specific name to be used with the multi-server docker compose environment.
90- docker tag docker.internal.networkradius.com/self-hosted-${MULTI_SERVER_ENV_DOCKER_BUILD_OS}:latest freeradius-build:latest
91+ docker tag docker.internal.networkradius.com/self-hosted freeradius-build:latest
9192
9293 - name : Run test-5hs-autoaccept test
9394 if : ${{ needs.pre-test.outputs.selfhosted != '1' }}
@@ -145,3 +146,29 @@ jobs:
145146 echo "TEST FAILED: No Matched line found with equal non-zero counts"
146147 exit 1
147148 fi
149+
150+ #
151+ # If the CI has failed and the branch is loadgen-5hs-tests then we start a tmate
152+ # session to provide interactive shell access to the session.
153+ #
154+ # The SSH rendezvous point will be emited continuously in the job output,
155+ # which will look something like:
156+ #
157+ # SSH: ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io
158+ #
159+ # For example:
160+ #
161+ # git push origin loadgen-5hs-tests --force
162+ #
163+ # Look at the job output in: https://github.com/FreeRADIUS/freeradius-server/actions
164+ #
165+ # ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io
166+ #
167+ # Access requires that you have the private key corresponding to the
168+ # public key of the GitHub user that initiated the job.
169+ #
170+ - name : " Debug: Start tmate"
171+ uses : mxschmitt/action-tmate@v3
172+ with :
173+ limit-access-to-actor : true
174+ if : ${{ github.ref == 'refs/heads/loadgen-5hs-tests' && failure() }}
0 commit comments