Skip to content

Commit 47c57c0

Browse files
committed
Testing workflow using a self-runner for the first time.
1 parent 0f47ada commit 47c57c0

1 file changed

Lines changed: 30 additions & 4 deletions

File tree

.github/workflows/ci-multi-server-tests.yml

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
pre-test:
1616
runs-on: ubuntu-latest
1717
outputs:
18-
selfhosted: 0
19-
#selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }}
18+
#selfhosted: 0
19+
selfhosted: ${{ github.repository_owner == 'FreeRADIUS' && '1' || '0' }}
2020
steps:
2121
- run: echo "Pre-test job; checking if using self-hosted runners"
2222

@@ -84,10 +84,10 @@ jobs:
8484
- name: Get pre-built Docker image for self-hosted runner test
8585
if: ${{ needs.pre-test.outputs.selfhosted == '1' }}
8686
run: |
87-
docker pull docker.internal.networkradius.com/self-hosted-${MULTI_SERVER_ENV_DOCKER_BUILD_OS}:latest
87+
docker pull docker.internal.networkradius.com/self-hosted
8888
8989
# 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
90+
docker tag docker.internal.networkradius.com/self-hosted freeradius-build:latest
9191
9292
- name: Run test-5hs-autoaccept test
9393
if: ${{ needs.pre-test.outputs.selfhosted != '1' }}
@@ -145,3 +145,29 @@ jobs:
145145
echo "TEST FAILED: No Matched line found with equal non-zero counts"
146146
exit 1
147147
fi
148+
149+
#
150+
# If the CI has failed and the branch is loadgen-5hs-tests then we start a tmate
151+
# session to provide interactive shell access to the session.
152+
#
153+
# The SSH rendezvous point will be emited continuously in the job output,
154+
# which will look something like:
155+
#
156+
# SSH: ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io
157+
#
158+
# For example:
159+
#
160+
# git push origin loadgen-5hs-tests --force
161+
#
162+
# Look at the job output in: https://github.com/FreeRADIUS/freeradius-server/actions
163+
#
164+
# ssh VfuX8SrNuU5pGPMyZcz7TpJTa@sfo2.tmate.io
165+
#
166+
# Access requires that you have the private key corresponding to the
167+
# public key of the GitHub user that initiated the job.
168+
#
169+
- name: "Debug: Start tmate"
170+
uses: mxschmitt/action-tmate@v3
171+
with:
172+
limit-access-to-actor: true
173+
if: ${{ github.ref == 'refs/heads/loadgen-5hs-tests' && failure() }}

0 commit comments

Comments
 (0)