Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
01c8024
chore(quest): start test stability questline
kixelated Oct 1, 2026
4504c56
chore: claim CLI paused-clock quest
kixelated Oct 1, 2026
1c6e7bc
test(cli): run fetch and completion operations on paused time
kixelated Oct 1, 2026
5900438
Merge remote-tracking branch 'origin/main' into quest/m1/test-flakes-…
kixelated Oct 1, 2026
8aa6017
test(tokio): make broadcast transport race deterministic (#4664)
kixelated Oct 1, 2026
baeaf3e
test(shaper): run the unit tests on paused time over in-memory socket…
kixelated Oct 1, 2026
c63c01e
quest: claim test-flakes-2/warn-capture
kixelated Oct 1, 2026
113bb17
quest: claim mux-debounce-clock
kixelated Oct 1, 2026
d965302
moq-mux: run the TS SI debounce on the tokio clock
kixelated Oct 2, 2026
c8db5fb
moq-net: count drop WARNs through a global subscriber, per thread
kixelated Oct 2, 2026
1265ae0
quest: plan moq-mux live import clock and tracing capture audit
kixelated Oct 2, 2026
7533eb3
Merge pull request #4687 from moq-dev/quest/m1/test-flakes-2/mux-debo…
kixelated Oct 2, 2026
5d03e8c
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 2, 2026
f1c5e78
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 2, 2026
ac25d88
quest: address review on live import clock and tracing capture audit
kixelated Oct 2, 2026
7a93493
moq-net: rebuild callsite interest at each WARN capture
kixelated Oct 2, 2026
ca455c8
Merge pull request #4693 from moq-dev/quest/plan-flake-followups
kixelated Oct 2, 2026
7f096f7
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 2, 2026
3873e5d
quest: settle the moq-mux Clock boundary
kixelated Oct 2, 2026
04fca7e
Merge pull request #4690 from moq-dev/quest/m1/test-flakes-2/warn-cap…
kixelated Oct 2, 2026
1ab08a5
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 2, 2026
bbc16bb
Merge pull request #4700 from moq-dev/quest/plan-clock-boundary
kixelated Oct 2, 2026
a209175
chore: claim tracing capture audit
kixelated Oct 2, 2026
5007de9
chore: complete tracing capture audit
kixelated Oct 2, 2026
126c6a8
chore: claim media late-join quest
kixelated Oct 2, 2026
c878701
quest: claim publish audio clock test
kixelated Oct 2, 2026
71d3f4e
test(publish): mock the audio delay clock
kixelated Oct 2, 2026
70321a0
test(media): measure late join against the published GOP
kixelated Oct 2, 2026
ddc410d
chore: claim WebSocket paused TLS quest
kixelated Oct 2, 2026
6cd36a7
chore(mux): claim live import clock quest
kixelated Oct 2, 2026
e4d26c6
fix(mux): measure live import idle gaps on the async clock
kixelated Oct 2, 2026
9631e32
test(tokio): run fixed-address WebSocket TLS dials on real time
kixelated Oct 2, 2026
caee8b4
Merge pull request #4713 from moq-dev/quest/m1/test-flakes-2/trace-ca…
kixelated Oct 2, 2026
cbbf421
Merge pull request #4722 from moq-dev/quest/m1/test-flakes-2/websocke…
kixelated Oct 3, 2026
b9dcc8a
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 3, 2026
d35eefb
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 3, 2026
abdda70
Merge pull request #4715 from moq-dev/quest/m1/test-flakes-2/publish-…
kixelated Oct 3, 2026
505f4a6
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 3, 2026
179baad
test(mux): allow 90 kHz tick truncation in the TS restart shift
kixelated Oct 3, 2026
25709da
Merge pull request #4721 from moq-dev/quest/m1/test-flakes-2/mux-live…
kixelated Oct 3, 2026
2cb32d6
quest(test-flakes-2): export linger test times from stdin close
kixelated Oct 3, 2026
f296ecc
test(cli): time the export linger from stdin close
kixelated Oct 3, 2026
c119b28
Merge pull request #4660 from moq-dev/quest/m1/test-flakes-2/cli-paus…
kixelated Oct 3, 2026
468a89c
Merge pull request #4751 from moq-dev/quest/m1/test-flakes-2/export-l…
kixelated Oct 3, 2026
2852c5b
Merge remote-tracking branch 'origin/quest/m1/test-flakes-2/README' i…
kixelated Oct 3, 2026
897970b
Merge pull request #4719 from moq-dev/quest/m1/test-flakes-2/media-la…
kixelated Oct 3, 2026
0a9cf65
Merge origin/main into quest/m1/test-flakes-2/README
kixelated Oct 5, 2026
39fd413
Merge origin/main into quest/m1/test-flakes-2/README
kixelated Oct 5, 2026
767eca5
test(mux): check the paused clock's capture now that main dropped Clo…
kixelated Oct 5, 2026
e292d30
Merge remote-tracking branch 'origin/main' into tf2-merge
kixelated Oct 6, 2026
cf5712a
quest: record test-flakes-2 as landed in the flat-lines plan
kixelated Oct 6, 2026
d3d8cf3
Merge remote-tracking branch 'origin/main' into tf2-merge
kixelated Oct 6, 2026
5f94931
Merge remote-tracking branch 'origin/main' into tf2-merge
kixelated Oct 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions doc/lib/rs/moq-mux.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ telemetry lagging its video shows up as `delay`. A capture `Instant` (a
datagram's arrival, a sensor read) converts with `Clock::capture` on the
catalog's clock, which refuses an instant ahead of now. A timestamp ahead of now
is published anyway and measured as zero delay, so a source clock running
slightly fast is not rejected.
slightly fast is not rejected. Capture inputs stay `std::time::Instant` on
native; browser targets refuse these native instants.

```rust
let at = catalog.clock().capture(received_at)?;
Expand All @@ -137,7 +138,8 @@ anchored root `clock` for readers that copy it once. Data tracks stamp on the
clock too, even one created before that first frame, though anything it wrote
earlier stays on the clock the catalog started with. A clock set with
`Config::with_clock` is never re-anchored, for a recording whose zero names its
real start.
real start. The broadcast clock uses the async runtime's monotonic time, so
native tests can pause and advance it with Tokio; its wall mapping stays fixed.

Group starts never go backwards. A group starting before the previous group's
start ends the import with `TimestampRewind`, whose `timestamp` and `floor` fields
Expand Down
37 changes: 23 additions & 14 deletions js/publish/src/audio/encoder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,24 +395,33 @@ test("passes an explicit Opus DTX request to the encoder", async () => {
// it, which the catalog advertises as `delay`.
test("a rendition trailing the broadcast's earliest advertises delay", async () => {
using _webcodecs = installFakeWebCodecs();
const baseline = new Baseline();
using env = await setup(baseline);
const { encoder, feed } = env;
const clock = spyOn(performance, "now").mockReturnValue(200);

expect(encoder.out.catalog.peek()?.delay).toBeUndefined();
try {
const baseline = new Baseline();
using env = await setup(baseline);
const { encoder, feed } = env;

// A sibling flushing 100ms less late than this rendition ever can. Shifting the sibling rather
// than backdating this capture keeps timestamps non-negative however young the process is.
baseline.observe(-100_000, performance.now() * 1000);
expect(encoder.out.catalog.peek()?.delay).toBeUndefined();

const start = performance.now() * 1000;
for (let index = 0; index < 4; index++) {
await feed.push({ timestamp: Time.Micro(start + index * 20_000), channels: [new Float32Array(960)] });
}
await feed.drain();
// A sibling that flushes each frame the instant it is captured.
baseline.observe(0, performance.now() * 1000);

// Captured 100ms ago, with a clock origin that keeps timestamps nonnegative.
const start = performance.now() * 1000 - 100_000;
for (let index = 0; index < 4; index++) {
await feed.push({ timestamp: Time.Micro(start + index * 20_000), channels: [new Float32Array(960)] });
}
await feed.drain();

expect(env.written.length).toBe(2);
expect(encoder.out.catalog.peek()?.delay).toBeGreaterThanOrEqual(100);
expect(env.written).toEqual([
[100_000, 1],
[120_000, 1],
]);
expect(encoder.out.catalog.peek()).toMatchObject({ delay: 100 });
} finally {
clock.mockRestore();
}
});

// Regression: codec settings that can't resolve left the encoder unsettled, so `<moq-publish>` never
Expand Down
4 changes: 2 additions & 2 deletions quest/m1/quest-flat-lines.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Remaining:
#4403 wildcard, #4034 archive, #4039 auth, #4079 cpp, #4519 ffi-shape,
#4080 obs-moq-video, #4133 qos (held until
[Lag across a splice](/quest/m1/qos/lag-splice.md) is fixed), #4437 rs2ts,
#4653 test-flakes-2, #4180 transport-upgrade, #4640 tstd. #4162
(audio-jitter-target) landed, and #4438 folded into rs2ts.
#4180 transport-upgrade, #4640 tstd. #4162
(audio-jitter-target) and #4653 (test-flakes-2) landed, and #4438 folded into rs2ts.
- Fold #4255 (archive/track-timeline) into the archive branch before #4034
lands; as of the 2026-10-05 audit it has not happened and #4034 is a draft.
- Before a line lands and its branch is deleted, merge or retarget every child
Expand Down
6 changes: 0 additions & 6 deletions quest/m1/test-flakes-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ Public API: none. Wire: none.

## Required

- [moq-cli tests on a paused clock](/quest/m1/test-flakes-2/cli-paused-clock.md) - the fetch timeout and completion tests stop racing wall-clock budgets
- [Subscription cut by disconnect](/quest/m1/test-flakes-2/subscription-cut.md) - a publisher disconnect never ends a subscription clean
- [Broadcast race](/quest/m1/test-flakes-2/broadcast-race.md) - the QUIC-wins race test binds no shared port and has a deterministic winner
- [Media late join](/quest/m1/test-flakes-2/media-late-join.md) - `just test media` late join stays within one GOP, or the regression is fixed
- [Shaper virtual time](/quest/m1/test-flakes-2/shaper-virtual-time.md) - `moq-shaper` tests judge seeded decisions on paused time, not on wall-clock delivery under load
- [Scoped WARN capture](/quest/m1/test-flakes-2/warn-capture.md) - the drop-unfinished tests count only their own WARNs
- [moq-mux debounce clock](/quest/m1/test-flakes-2/mux-debounce-clock.md) - the TS export debounce test advances on the paused clock
- [js/publish audio clock](/quest/m1/test-flakes-2/publish-audio-clock.md) - the audio encoder delay test runs on mock time
- [Rejoin after idle](/quest/m1/test-flakes-2/rejoin-idle-race.md) - an IETF rejoin never gets the stale warm cache first, because the copy goes idle before the cancel

## Related
Expand Down
22 changes: 0 additions & 22 deletions quest/m1/test-flakes-2/broadcast-race.md

This file was deleted.

30 changes: 0 additions & 30 deletions quest/m1/test-flakes-2/cli-paused-clock.md

This file was deleted.

15 changes: 0 additions & 15 deletions quest/m1/test-flakes-2/mux-debounce-clock.md

This file was deleted.

11 changes: 0 additions & 11 deletions quest/m1/test-flakes-2/publish-audio-clock.md

This file was deleted.

18 changes: 0 additions & 18 deletions quest/m1/test-flakes-2/shaper-virtual-time.md

This file was deleted.

14 changes: 0 additions & 14 deletions quest/m1/test-flakes-2/warn-capture.md

This file was deleted.

2 changes: 1 addition & 1 deletion rs/moq-cli/src/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ mod tests {
///
/// The root spec is the globals plus the first stage, so answering a later chunk
/// against it offers process-wide flags that the chunk refuses.
#[tokio::test]
#[tokio::test(start_paused = true)]
async fn retargets_to_the_active_stage() {
let _env = EnvGuard::clear(&["MOQ_CONNECT"]);
// A stage offers its own flags, and none of the globals it would refuse.
Expand Down
Loading
Loading