Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Handle missing Windows audio RMS candidates

Louis Beaumonta4978acae714
diff --git a/.github/scripts/assert_windows_audio_rms.ps1 b/.github/scripts/assert_windows_audio_rms.ps1
index 74c913907..efe7855b7 100644
--- a/.github/scripts/assert_windows_audio_rms.ps1
+++ b/.github/scripts/assert_windows_audio_rms.ps1
@@ -228,8 +228,8 @@ try {
Write-Host "final audio health:"
Write-AudioHealth -Health (Get-HealthSnapshot)
-if ($responsivePollsAfterStimulus -eq 0) {
- Write-Warning "Windows audio RMS smoke inconclusive: /health stopped responding after audio stimulus started. Treating this as a hosted-runner health-poll artifact instead of a near-silent audio capture regression."
+if ($responsivePollsAfterStimulus -eq 0 -or $max.Device -eq "none") {
+ Write-Warning "Windows audio RMS smoke inconclusive: /health did not provide a post-stimulus RMS candidate. Treating this as a hosted-runner health-poll artifact instead of a near-silent audio capture regression."
return
}
throw ("Windows audio RMS smoke failed: max observed RMS {0:N6} on {1}, expected >= {2}. This catches near-silent WASAPI regressions such as cpal AUTOCONVERTPCM on Win11 24H2." -f $max.Rms, $max.Device, $MinRms)