From eef70ffda0ffddce6aec109521ab70871e5b7c2f Mon Sep 17 00:00:00 2001 From: AAA <35992542+TNTcraftHIM@users.noreply.github.com> Date: Sat, 31 Oct 2026 16:52:40 -0400 Subject: [PATCH] fix(media): restore pacing in the publication recovery fixture (#514) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem and outcome The release CI failed while checking inactive simulcast output. The fixture injects a 1 kbps congestion event, which also slows the packet pacer. Its manual recovery restores the bandwidth target and allocator to 1 Mbps, but leaves that pacer at 1 kbps. Restore all three together, as the production probe-finalization path already does. No production behavior or timeout changes. ## Release notes **Piik, now in your pocket.** Piik App supports Android screen sharing, with touch controls for a friend's computer. **手机,也能开播。** Piik App 支持 Android 屏幕分享,也能用手机控制朋友的电脑。 ### English Make the SFU recovery check use its restored sending budget. ### 中文 修正 SFU 恢复测试的发包预算,避免误报画面停顿。 ## Verification - Linux: focused real-PeerConnection test with `-race -count=3` passed; full `internal/media/forwarding` package with `-race -count=1` passed. - The unmodified local baseline also passed three times; the failure was observed in official CI run 41239517601. The fixture mismatch is directly confirmed in the producer and pacer owners. - Production forwarding sources and pinned dependencies match the previously accepted source. No timeouts widened or checks disabled. - Go formatting, whitespace and documentation checks passed. ## Impact One test-fixture line; no shipped runtime, protocol, dependency, platform or compatibility change. The unpublished v2.5.1 remains the planned version. --- internal/media/forwarding/publication_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/media/forwarding/publication_test.go b/internal/media/forwarding/publication_test.go index ef0ae072e..a25490a1f 100644 --- a/internal/media/forwarding/publication_test.go +++ b/internal/media/forwarding/publication_test.go @@ -527,6 +527,7 @@ func TestPublicationSimulcastReuseAudioDemandAndClose(t *testing.T) { // Restore this allocation fixture's capacity explicitly. A congestion event // cannot prove an increase; this test covers RID reuse, not bandwidth probing. publication.bandwidth.target.Store(1_000_000) + publication.pacer.SetBitrate(1_000_000) publication.allocator.SetChannelCapacity(1_000_000) // Drain packets already admitted by the pacer before observing inactive output. for range 6 {