2929 required : false
3030 type : string
3131 default : metrics=debug
32+ platform_audio_repeat :
33+ description : Number of times to repeat PlatformAudio integration tests. Defaults to integration_repeat when set to 0.
34+ required : false
35+ type : number
36+ default : 0
37+ platform_audio_rust_log :
38+ description : RUST_LOG value for the PlatformAudio integration test step.
39+ required : false
40+ type : string
41+ default : metrics=debug
3242 run_stress_tests :
3343 description : Run stress tests that require LiveKit server setup.
3444 required : false
99109 required : false
100110 type : string
101111 default : metrics=debug
112+ platform_audio_repeat :
113+ description : Number of times to repeat PlatformAudio integration tests. Defaults to integration_repeat when set to 0.
114+ required : false
115+ type : number
116+ default : 0
117+ platform_audio_rust_log :
118+ description : RUST_LOG value for the PlatformAudio integration test step.
119+ required : false
120+ type : string
121+ default : metrics=debug
102122 run_stress_tests :
103123 description : Run stress tests that require LiveKit server setup.
104124 required : false
@@ -381,15 +401,15 @@ jobs:
381401
382402 # ---------- Start livekit-server for integration tests ----------
383403 - name : Start livekit-server
384- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
404+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
385405 id : livekit_server
386406 uses : livekit/dev-server-action@61e2b4dcb170dd3591e0c9b0db3c3fe5db93b500
387407 continue-on-error : true
388408 with :
389409 github-token : ${{ github.token }}
390410
391411 - name : Start livekit-server fallback
392- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests) && steps.livekit_server.outcome == 'failure'
412+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests) && steps.livekit_server.outcome == 'failure'
393413 id : livekit_server_fallback
394414 shell : bash
395415 env :
@@ -460,7 +480,7 @@ jobs:
460480 exit 1
461481
462482 - name : Resolve livekit-server log path
463- if : always() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
483+ if : always() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
464484 id : livekit_server_log
465485 shell : bash
466486 run : |
@@ -472,7 +492,7 @@ jobs:
472492
473493 # Needed by token helper script
474494 - name : Install livekit-cli
475- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
495+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
476496 shell : bash
477497 run : |
478498 set -euxo pipefail
@@ -507,19 +527,23 @@ jobs:
507527 fi
508528
509529 - name : Run platform audio integration tests
510- if : matrix.e2e-testing && inputs.integration_repeat > 0
530+ if : matrix.e2e-testing && ( inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0)
511531 timeout-minutes : ${{ inputs.integration_timeout_minutes }}
512532 shell : bash
513533 env :
514- RUST_LOG : debug
534+ RUST_LOG : ${{ inputs.platform_audio_rust_log }}
515535 RUST_BACKTRACE : full
516536 run : |
517537 set -euo pipefail
518538 source .token_helpers/set_data_track_test_tokens.bash
519539 bin="${{ env.BUILD_DIR }}/bin/livekit_integration_tests"
540+ platform_audio_repeat=${{ inputs.platform_audio_repeat }}
541+ if [[ "${platform_audio_repeat}" -le 0 ]]; then
542+ platform_audio_repeat=${{ inputs.integration_repeat }}
543+ fi
520544 args=(
521545 --gtest_filter=PlatformAudioIntegrationTest.*
522- --gtest_repeat=${{ inputs.integration_repeat }}
546+ --gtest_repeat="${platform_audio_repeat}"
523547 --gtest_recreate_environments_when_repeating=1
524548 --gtest_output=xml:${{ env.BUILD_DIR }}/platform-audio-integration-test-results.xml
525549 )
@@ -552,7 +576,7 @@ jobs:
552576 fi
553577
554578 - name : Dump livekit-server log on failure
555- if : failure() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
579+ if : failure() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
556580 shell : bash
557581 run : tail -n 500 "${{ steps.livekit_server_log.outputs.log-path }}" || true
558582
0 commit comments