From 2c729b133b5f8269acf22daf46a42b43320d6116 Mon Sep 17 00:00:00 2001 From: Victor Elias Date: Tue, 21 Nov 2023 19:43:25 -0300 Subject: [PATCH] .github: allow specifying HLS for webrtc load test playback (right lol) (#345) * .github: allow specifying HLS for playback * .github/wrlt: Set right playback URL for single-node HLS * .github/wrlt: Fix manifest URL override --- .github/workflows/webrtc-load-test.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webrtc-load-test.yaml b/.github/workflows/webrtc-load-test.yaml index 15ad3f69..91239376 100644 --- a/.github/workflows/webrtc-load-test.yaml +++ b/.github/workflows/webrtc-load-test.yaml @@ -26,10 +26,16 @@ on: required: true default: '{"us-central1":20,"europe-west2":20,"asia-southeast1":20}' streamer-input-file: - description: File to stream on the load test + description: File to ingest type: string required: true default: 'https://storage.googleapis.com/lp_testharness_assets/countdown_720p_30fps_2sGOP_noBframes_5min.mp4' + playback-protocol: + description: Playback protocol + required: true + type: choice + options: [ "WebRTC", "HLS" ] + default: "WebRTC" region: description: "(Optional) Single-node test: Region of node to be tested (also needs pod index below). e.g.: mdw" type: string @@ -117,9 +123,17 @@ jobs: if [ "${{ inputs.environment }}" = "production" ]; then STREAMER_BASE_URL="rtmp://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/live" PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/webrtc/video+%s" + if [ "${{ inputs.playback-protocol }}" = "HLS" ]; then + PLAYBACK_BASE_URL="${PLAYBACK_BASE_URL}?lowLatency=false" + PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.lp-playback.studio/hls/video+%s/index.m3u8" + fi else STREAMER_BASE_URL="rtmp://${{ inputs.region }}-staging-staging-catalyst-${{ inputs.pod-index }}.livepeer.monster/live" PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-staging-staging-catalyst-${{ inputs.pod-index }}.livepeer.monster/webrtc/video+%s" + if [ "${{ inputs.playback-protocol }}" = "HLS" ]; then + PLAYBACK_BASE_URL="${PLAYBACK_BASE_URL}?lowLatency=false" + PLAYBACK_MANIFEST_URL="https://${{ inputs.region }}-prod-catalyst-${{ inputs.pod-index }}.livepeer.monster/hls/video+%s/index.m3u8" + fi fi fi