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
@@ -383,15 +403,15 @@ jobs:
383403
384404 # ---------- Start livekit-server for integration tests ----------
385405 - name : Start livekit-server
386- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
406+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
387407 id : livekit_server
388408 uses : livekit/dev-server-action@61e2b4dcb170dd3591e0c9b0db3c3fe5db93b500
389409 continue-on-error : true
390410 with :
391411 github-token : ${{ github.token }}
392412
393413 - name : Start livekit-server fallback
394- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests) && steps.livekit_server.outcome == 'failure'
414+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests) && steps.livekit_server.outcome == 'failure'
395415 id : livekit_server_fallback
396416 shell : bash
397417 env :
@@ -462,7 +482,7 @@ jobs:
462482 exit 1
463483
464484 - name : Resolve livekit-server log path
465- if : always() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
485+ if : always() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
466486 id : livekit_server_log
467487 shell : bash
468488 run : |
@@ -474,7 +494,7 @@ jobs:
474494
475495 # Needed by token helper script
476496 - name : Install livekit-cli
477- if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
497+ if : matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
478498 shell : bash
479499 env :
480500 # Windows installs lk via `gh api` / `gh release download`, which need this env var
@@ -528,19 +548,23 @@ jobs:
528548 fi
529549
530550 - name : Run platform audio integration tests
531- if : matrix.e2e-testing && inputs.integration_repeat > 0
551+ if : matrix.e2e-testing && ( inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0)
532552 timeout-minutes : ${{ inputs.integration_timeout_minutes }}
533553 shell : bash
534554 env :
535- RUST_LOG : debug
555+ RUST_LOG : ${{ inputs.platform_audio_rust_log }}
536556 RUST_BACKTRACE : full
537557 run : |
538558 set -euo pipefail
539559 source .token_helpers/set_data_track_test_tokens.bash
540560 bin="${{ env.BUILD_DIR }}/bin/livekit_integration_tests"
561+ platform_audio_repeat=${{ inputs.platform_audio_repeat }}
562+ if [[ "${platform_audio_repeat}" -le 0 ]]; then
563+ platform_audio_repeat=${{ inputs.integration_repeat }}
564+ fi
541565 args=(
542566 --gtest_filter=PlatformAudioIntegrationTest.*
543- --gtest_repeat=${{ inputs.integration_repeat }}
567+ --gtest_repeat="${platform_audio_repeat}"
544568 --gtest_recreate_environments_when_repeating=1
545569 --gtest_output=xml:${{ env.BUILD_DIR }}/platform-audio-integration-test-results.xml
546570 )
@@ -573,7 +597,7 @@ jobs:
573597 fi
574598
575599 - name : Dump livekit-server log on failure
576- if : failure() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.run_stress_tests)
600+ if : failure() && matrix.e2e-testing && (inputs.integration_repeat > 0 || inputs.platform_audio_repeat > 0 || inputs. run_stress_tests)
577601 shell : bash
578602 run : tail -n 500 "${{ steps.livekit_server_log.outputs.log-path }}" || true
579603
0 commit comments