Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
38e998d
quest: define TS fidelity, recovery, and automated validation
kixelated Oct 11, 2026
2b3a9f2
quest: name redundant TS work by its packet identity scope
kixelated Oct 11, 2026
d7e8ea4
quest: clarify TS recovery and validation evidence
kixelated Oct 11, 2026
fd0f423
Merge remote-tracking branch 'origin/main' into quest/m1/ts-reliabili…
kixelated Oct 11, 2026
0495260
quest: claim automated TS validation
kixelated Oct 11, 2026
406e3ff
test(ts): run strict FFmpeg and TSDuck validation in CI
kixelated Oct 11, 2026
769f398
Merge origin/main and preserve independent validation jobs
kixelated Oct 11, 2026
790622d
test(ts): drain live measurements and complete validation quest
kixelated Oct 11, 2026
eba0751
Claim TS pair acquisition quest
kixelated Oct 11, 2026
75f3baf
fix(test): measure TS pair alignment on the acquired PCR timeline
kixelated Oct 11, 2026
e5a2d73
chore: claim initial catalog routing quest
kixelated Oct 11, 2026
e04c0fa
test(ts): require every source-declared PMT in pair captures
kixelated Oct 11, 2026
bc1dd11
test(net): reproduce catalog acquisition across session replacement
kixelated Oct 11, 2026
06785b9
Merge the TS pair acquisition fix into automated validation
kixelated Oct 11, 2026
43be550
Merge remote-tracking branch 'origin/main' into quest/m1/initial-cata…
kixelated Oct 11, 2026
2849892
Merge remote-tracking branch 'origin/main' into quest/m1/ts-reliabili…
kixelated Oct 11, 2026
aab6a88
test(net): retain strict identity during catalog acquisition
kixelated Oct 11, 2026
51d56b3
test(ts): negotiate epochs for seamless acquisition
kixelated Oct 11, 2026
ef18045
Merge catalog acquisition identity controls into TS validation
kixelated Oct 11, 2026
19fb452
test(ts): require specific pair failures and retain evidence
kixelated Oct 11, 2026
a7a0241
Merge specific pair controls into TS validation
kixelated Oct 11, 2026
95d2120
Merge origin/main into TS validation
kixelated Oct 13, 2026
86f3c1f
Merge remote-tracking branch 'origin/main' into iterate-5328
kixelated Oct 13, 2026
2f9d022
test(ts): keep the PCR accuracy skip for the no-samples control
kixelated Oct 13, 2026
41eaf7c
Merge remote-tracking branch 'origin/main' into iterate-5328
kixelated Oct 13, 2026
78283ba
quest: record the #5328 linger waiver and a local upgrade repro
kixelated Oct 13, 2026
afb5be8
Merge remote-tracking branch 'origin/main' into iterate-5328
kixelated Oct 13, 2026
adc6f2f
Merge origin/main into quest/m1/ts-reliability/validation
kixelated Oct 13, 2026
6bb3dad
ci(ts): trigger TS validation on its workspace dependencies
kixelated Oct 13, 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
1 change: 1 addition & 0 deletions .github/workflows/alert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ on:
- release-winget
- rpm-repo
- Swift
- TS
- Video
types:
- completed
Expand Down
75 changes: 1 addition & 74 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Interop
# Cross-language interop test built from THIS checkout (not the published
# packages, unlike the moq-dev/smoke repo). Stands up a relay and runs the
# publish x subscribe matrix across rust / python / go / browser / native-js / c,
# then browser-to-browser media QA and the TS/IRD compliance harness over the
# exporter's output.
# then browser-to-browser media QA. TS validation has its own workflow.
on:
# Manual on-demand runs.
workflow_dispatch:
Expand All @@ -20,10 +19,6 @@ on:
- "test/max-age/**"
- "test/portrait/**"
- "rs/moq-tokio/tests/max_age.rs"
# The TS/IRD compliance harness runs in the same job (see below).
- "test/ts/**"
# The live TS round trip also checks stdin ingestion keeps up with its source.
- "rs/moq-cli/src/publish.rs"
# The interop job also depends on the recipe that invokes it and the
# workspace membership that links the JS clients to source.
- "test/justfile"
Expand Down Expand Up @@ -149,74 +144,6 @@ jobs:
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

- name: TS pair controls
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts-pair-controls
shell: bash -leo pipefail {0}

# Round-trips a PCR-paced TS through a relay and checks the subscriber's
# `export ts` output with TSDuck (tsp/tsanalyze from the nix devShell).
- name: TS compliance
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# The same round-trip at 2 Mb/s, where every keyframe outgrows a 25 ms PCR slot,
# so the export has to spread it over the slots before its DTS and still keep
# the constant-rate schedule.
- name: TS keyframe bursts
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts --bitrate 2000000
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# 1080p video filling a broadcast-sized 9 Mbit CPB, at the default delay: the
# source sends pictures most of a second ahead of their decode time, and the
# export has to as well without overflowing the receiver's buffers.
- name: TS broadcast-sized CPB
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts --hrd
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# The same video beside four audio PIDs in a multiplex faster than its Rx: each slot
# has to interleave the video with the rest, or its transport buffer overflows.
- name: TS multiplex above the video's Rx
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts --headroom
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# The same round-trip over an open-GOP clip: every leading picture after a
# recovery point must come back, in decode order.
- name: TS open GOP
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts --open-gop
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# Builds the sparse-EPG and pending-version fixtures and round-trips
# them, asserting the schedule survives and pending sections are dropped.
- name: EIT fixtures
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts-eit
shell: bash -leo pipefail {0}
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# The T-STD model must pass a broadcast capture and fail the same capture
# delivered too slowly, too early, or in a burst.
- name: T-STD controls
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: nix develop --command just test ts-tstd
shell: bash -leo pipefail {0}

# A failing harness run keeps its directory, holding the process logs, the
# relay config, and a Playwright trace of the failing page. Upload it for a
# short while so a red cell is diagnosable; a passing run deletes its own.
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,36 +263,6 @@ jobs:
if: ${{ !cancelled() }}
run: nix develop --command just rs c-tests

- name: TS table alignment
if: ${{ !cancelled() }}
run: nix develop --command just test ts --pair
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# The TS exporter's PCR release timing. Everything else about the stream
# can be graded from a capture, but *when* the bytes were handed over
# cannot: the grader has to sit on the exporter's stdout for the length of
# the run, stamping each packet. That is a real-time window no per-PR gate
# should pay for, so it lives here (see test/ts/README.md).
#
# 120 s rather than the 20 s default, because the drift term needs it. The
# exporter builds its mux buffer once and holds it, and a window that ends
# while it is still filling cannot tell that from a pipe running slow: the
# lag reaches ~480 ms over the first ~48 s and is flat after. Nightly is the
# one arm with the wall-clock time to see the flat part.
- name: TS timing
if: ${{ !cancelled() }}
run: nix develop --command just test ts --live --duration 120

- name: Upload TS pair failure artifacts
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: nightly-ts-pair
path: ${{ runner.temp }}/moq-test-runs
if-no-files-found: ignore
retention-days: 7

tests:
name: Tests (${{ matrix.recipe }})
runs-on: ubuntu-24.04-arm
Expand Down
166 changes: 166 additions & 0 deletions .github/workflows/ts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
name: TS

# Decoder, transport structure, buffer-model and release-timing gates are
# independent of browser interop. Decoder and transport gates have real-tool controls.
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
pull_request:
paths:
- "test/ts/**"
- "test/lib/**"
- "test/justfile"
- "rs/moq-mux/**"
Comment thread
kixelated marked this conversation as resolved.
Resolved
- "rs/hang/**"
- "rs/moq-cli/**"
- "rs/moq-net/**"
- "rs/moq-tokio/**"
- "rs/moq-relay/**"
- "rs/moq-loc/**"
- "rs/moq-json/**"
# Workspace dependencies of moq-net, moq-tokio and moq-mux on the TS path.
- "rs/kio/**"
- "rs/moq-flate/**"
- "rs/moq-msf/**"
- "rs/moq-pattern/**"
- "rs/moq-sock/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain.toml"
- "flake.nix"
- "flake.lock"
- ".github/actions/rust-cache/**"
- ".github/workflows/ts.yml"

concurrency:
group: ts-${{ github.ref }}
cancel-in-progress: true

permissions:
id-token: write
contents: read

jobs:
ts:
name: TS validation
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Free disk space
uses: jlumbroso/free-disk-space@ceedf095f4ec1a097402bc6bd80831f2e1a6fde6 # main
with:
tool-cache: false

- uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f # main
with:
determinate: false
extra-conf: |
extra-substituters = https://kixelated.cachix.org
extra-trusted-public-keys = kixelated.cachix.org-1:CmFcV0lyM6KuVM2m9mih0q4SrAa0XyCsiM7GHrz3KKk=

- name: Rust cache
uses: ./.github/actions/rust-cache

- name: FFmpeg and TSDuck controls
if: ${{ !cancelled() }}
run: nix develop --command just test ts-controls
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

- name: TS pair controls
if: ${{ !cancelled() }}
run: nix develop --command just test ts-pair-controls

# Round-trips a PCR-paced TS through a relay and checks the subscriber's
# `export ts` output with TSDuck (tsp/tsanalyze from the nix devShell).
- name: TS compliance
if: ${{ !cancelled() }}
run: nix develop --command just test ts
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# The same round-trip at 2 Mb/s, where every keyframe outgrows a 25 ms PCR slot,
# so the export has to spread it over the slots before its DTS and still keep
# the constant-rate schedule.
- name: TS keyframe bursts
if: ${{ !cancelled() }}
run: nix develop --command just test ts --bitrate 2000000
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# 1080p video filling a broadcast-sized 9 Mbit CPB, at the default delay: the
# source sends pictures most of a second ahead of their decode time, and the
# export has to as well without overflowing the receiver's buffers.
- name: TS broadcast-sized CPB
if: ${{ !cancelled() }}
run: nix develop --command just test ts --hrd
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# The same video beside four audio PIDs in a multiplex faster than its Rx: each slot
# has to interleave the video with the rest, or its transport buffer overflows.
- name: TS multiplex above the video's Rx
if: ${{ !cancelled() }}
run: nix develop --command just test ts --headroom
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# The same round-trip over an open-GOP clip: every leading picture after a
# recovery point must come back, in decode order.
- name: TS open GOP
if: ${{ !cancelled() }}
run: nix develop --command just test ts --open-gop
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# Builds the sparse-EPG and pending-version fixtures and round-trips
# them, asserting the schedule survives and pending sections are dropped.
- name: EIT fixtures
if: ${{ !cancelled() }}
run: nix develop --command just test ts-eit
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# The T-STD model must pass a broadcast capture and fail the same capture
# delivered too slowly, too early, or in a burst.
- name: T-STD controls
if: ${{ !cancelled() }}
run: nix develop --command just test ts-tstd
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs
shell: bash -leo pipefail {0}

# The pair needs enough overlap to grade the slower table cadences.
- name: TS table alignment
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
run: nix develop --command just test ts --pair
Comment thread
kixelated marked this conversation as resolved.
Resolved
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

# Live timing needs the real-time window to distinguish drift from startup.
- name: TS live release timing
if: ${{ !cancelled() && github.event_name != 'pull_request' }}
run: nix develop --command just test ts --live --duration 120
env:
MOQ_TEST_RUNS: ${{ runner.temp }}/moq-test-runs

- name: Upload failure artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: ts-failure
path: ${{ runner.temp }}/moq-test-runs
retention-days: 7
if-no-files-found: error
1 change: 0 additions & 1 deletion quest/m1/ts-reliability/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ remain with their current quests.

## Required

- [Automated TS validation](/quest/m1/ts-reliability/validation.md) - software decode, structure, timing, and controls run in CI
- [Bounded PES assembly](/quest/m1/ts-reliability/pes.md) - split headers work and damaged input cannot grow staging indefinitely
- [Plan: semantic fidelity](/quest/m1/ts-reliability/fidelity.md) - explicit profiles and PMT lifecycle contracts produce implementation quests
- [Plan: PES timing and headers](/quest/m1/plan-ts-pes-untimed.md) - private PES semantics have a settled carriage and placement contract
Expand Down
2 changes: 1 addition & 1 deletion quest/m1/ts-reliability/fidelity.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ section/PES bytes only where the settled contract actually promises that.
## Related

- [PES timing and headers](/quest/m1/plan-ts-pes-untimed.md) - separate placement, decode and presentation semantics
- [Automated validation](/quest/m1/ts-reliability/validation.md) - profile declarations link to executable evidence
- [Automated validation](/test/ts/README.md) - profile declarations link to executable evidence
- [Typed SCTE-35](/quest/m3/2279-hang-typed-scte-35-ad-cue-signaling-carried-opaquely.md) - application cue APIs follow basic opaque carriage
2 changes: 1 addition & 1 deletion quest/m1/ts-reliability/pes.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ retain its regression rather than duplicating that fix.

## Related

- [Automated validation](/quest/m1/ts-reliability/validation.md) - independent parsing and decoding of the reassembled output
- [Automated validation](/test/ts/README.md) - independent parsing and decoding of the reassembled output
- [PES timing and headers](/quest/m1/plan-ts-pes-untimed.md) - defines semantics retained after assembly
4 changes: 1 addition & 3 deletions quest/m1/ts-reliability/recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ Short deterministic arms run on relevant PRs. Long drift and impairment
arms run nightly with failure artifacts. Keep byte-position PCR accuracy
and measured release timing as separate checks.

## Required

- [Automated validation](/quest/m1/ts-reliability/validation.md) - shared graders, profiles and known-bad controls
## Related

- [Automated validation](/test/ts/README.md) - shared graders, profiles and known-bad controls
- [Open-GOP leading pictures](/quest/m1/open-gop-leading-pictures.md) - trims after a gap
- [Gradual recovery](/quest/m2/intra-refresh/README.md) - recovery counts and per-group warmup
Loading
Loading