diff --git a/js/net/src/flate/group.test.ts b/js/net/src/flate/group.test.ts index 09ac20a4525..ce4bd87a358 100644 --- a/js/net/src/flate/group.test.ts +++ b/js/net/src/flate/group.test.ts @@ -68,7 +68,8 @@ test("a slice that fails to decode fails its open group, which takes no more fra }); for (const readPlain of [false, true]) { - test(`compressed tails shed dictionary prefixes without retaining inflated history (plain=${readPlain})`, async () => { + // Quarantined pending quest/m0/test-flakes-2/flate-tail-shed.md. + test.skip(`compressed tails shed dictionary prefixes without retaining inflated history (plain=${readPlain})`, async () => { const group = new Group(0n); hooks.bindGroupCompression(group, true); const raw = group.consume(); diff --git a/quest/m0/test-flakes-2/README.md b/quest/m0/test-flakes-2/README.md index b9f9cb1d409..7fb78522503 100644 --- a/quest/m0/test-flakes-2/README.md +++ b/quest/m0/test-flakes-2/README.md @@ -112,6 +112,9 @@ process held back; eviction now lets go of that content itself, fixed by concurrent-ready test, quarantined here instead of in the unrelated [moq-dev/moq#7981](https://github.com/moq-dev/moq/pull/7981). +Added 2026-11-06: `js/net`'s flate tail-shed test, which timed out in a +merge-queue batch, one child. + Added 2026-11-06 (maintainer's standing rule that flakes join this epic): `js/net`'s datagram-end close case, which failed [moq-dev/moq#7986](https://github.com/moq-dev/moq/pull/7986)'s Check while @@ -121,6 +124,7 @@ Public API: none. Wire: none. ## Required +- [Flate's tail-shed test passes under load](/quest/m0/test-flakes-2/flate-tail-shed.md) - `js/net`'s compressed tail-shed cases finish within bun's timeout under load, re-enabled once fixed - [Fallback playback](/quest/m0/test-flakes-2/ietf22-fallback.md) - a browser viewer follows a fallback within the media lane's bound without dropping its session - [dispatch-query's terminate test survives load](/quest/m0/test-flakes-2/dispatch-query-terminate.md) - `test_terminating_the_run_stops_the_running_phase` passes reliably under host load, re-enabled once fixed - [Test PulseAudio servers stay off the desktop's D-Bus](/quest/m0/test-flakes-2/pulse-dbus.md) - concurrent media runs on one desktop never collide on `org.PulseAudio1` diff --git a/quest/m0/test-flakes-2/flate-tail-shed.md b/quest/m0/test-flakes-2/flate-tail-shed.md new file mode 100644 index 00000000000..9d8ad332dd0 --- /dev/null +++ b/quest/m0/test-flakes-2/flate-tail-shed.md @@ -0,0 +1,37 @@ +# [S] Flate's tail-shed test passes under load + +## Goal + +`compressed tails shed dictionary prefixes without retaining inflated history` +in `js/net/src/flate/group.test.ts`, both `plain` variants, passes reliably +under load, fixed at its cause under the +[epic](/quest/m0/test-flakes-2/README.md)'s rules, never by raising the test +timeout. Restore both cases with every assertion when it is fixed. + +## Plan + +Evidence: the `plain=true` case timed out at bun's 5000 ms default in the +merge-group batch for [moq-dev/moq#7981](https://github.com/moq-dev/moq/pull/7981) +([run 42299125466](https://github.com/moq-dev/moq/actions/runs/42299125466), +Check job, `ci: test js failed`). That PR changes moq-mux's TS exporter, `rs/moq-cli`, +`js/net/src/lite/datagram-tracks.test.ts`, and quest docs; none of it touches +flate or its test, though a `js/net` test-side cause is not ruled out. +Both variants are quarantined with `test.skip`, since they share the loop. + +Baseline (unloaded, pre-quarantine file copied aside): both variants together +ran in 1198 ms on the maintainer's dev host; a reviewer measured ~2.1 s per +variant on theirs, with `plain=true` only ~2% slower than `plain=false`. So the +second `toEqual` is not the cost, `plain=false` is no cheaper, and CI's 5697 ms +is a ~2.7x loaded slowdown, not a cliff. + +Lead (unverified): the test is CPU-bound in its 100 iterations that compress +and inflate a 1 MiB frame. If profiling confirms it, cut the work volume while +keeping what the test proves (the cache stays bounded and the slow reader is +evicted), such as smaller frames against a proportionally smaller cache bound, +leaving enough headroom that a ~3x loaded slowdown still fits; if +deflate/inflate in the code under test is the slow part, fix that. + +Reproduce first: time the case alone and under CPU contention +(`--rerun-each`) before changing it. + +Public API: none. Wire: none.