Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge remote-tracking branch 'origin/ci/verify-captions-editing' into ci/verify-ci

Richie McIlroy4b593fe718d7
diff --cc apps/desktop-gpui/Cargo.lock
index 4d2ac0436,1655b8497..469e8a146
--- a/apps/desktop-gpui/Cargo.lock
+++ b/apps/desktop-gpui/Cargo.lock
@@@ -2001,6 -2002,29 +2003,38 @@@ dependencies =
"zbus",
]
+ [[package]]
+ name = "cap-verify"
+ version = "0.1.0"
+ dependencies = [
+ "anyhow",
+ "cap-enc-avfoundation",
+ "cap-media-info",
+ "cap-project",
+ "cap-recording",
+ "cap-timestamp",
++ "cap-verify-expect",
+ "cidre",
+ "ffmpeg-next",
+ "flume 0.11.1",
+ "futures",
+ "relative-path",
+ "rustfft",
+ "serde",
+ "serde_json",
+ "tokio",
- "toml 0.8.23",
+ "workspace-hack",
+ ]
+
++[[package]]
++name = "cap-verify-expect"
++version = "0.1.0"
++dependencies = [
++ "serde",
++ "serde_json",
++ "toml 0.8.23",
++]
++
[[package]]
name = "cap-video-decode"
version = "0.1.0"
diff --cc apps/desktop-gpui/Cargo.toml
index d67ad17c8,8f8555ede..50fccce29
--- a/apps/desktop-gpui/Cargo.toml
+++ b/apps/desktop-gpui/Cargo.toml
@@@ -169,7 -168,11 +169,11 @@@ tauri-winres = "0.3.5
# decoders, renderer and preview tasks are all tokio-spawned -- a current-thread
# runtime would deadlock the moment the test thread blocks on a frame. Kept in
# dev-dependencies so the shipped binary's tokio features are unchanged.
-tokio = { version = "1", features = ["rt-multi-thread", "time", "test-util"] }
+tokio = { version = "1", features = ["rt-multi-thread", "time", "test-util", "net", "io-util", "macros"] }
+ # Caption oracles (`src/transcription/verify_tests.rs`): fixture projects and
+ # audio markers for the fake transcriber.
+ cap-verify = { path = "../../crates/verify" }
+ tempfile = "3"
[target.'cfg(unix)'.dependencies]
libc = "0.2"
diff --cc crates/verify/README.md
index b2b30e290,000000000..417426556
mode 100644,000000..100644
--- a/crates/verify/README.md
+++ b/crates/verify/README.md
@@@ -1,119 -1,0 +1,125 @@@
+# cap-verify: engine verification suite
+
+Oracle tests for the playback, export, recording, editing and captions engines.
+Fixtures are generated by code at test time. Every source video frame carries
+its own identity as a block code, and every audio source carries
+sample-accurate markers. An independent reference model computes which source
+frame and sample each output frame and sample must show. A case passes only
+when every checked frame and sample matches.
+
+## Suites
+
+The suites are listed in `scripts/verify/suites.json`:
+
+| Suite | What it checks | FAST tier | FULL tier |
+| --- | --- | --- | --- |
+| `verify-self` | marker codecs, reference model, report | linux | linux, macos |
+| `export` | every exported frame (MP4, GIF, both decoders on macOS) | linux, macos, windows | all |
+| `playback` | offline-driven editor playback frames | linux, macos | all |
+| `seek` | random, keyframe and scrub seeks | linux, macos | all |
+| `audio` | export and offline playback audio against sample-accurate markers | linux, macos, windows | all |
++| `editing` | random edit sequences exported and checked frame by frame | linux | linux |
++| `captions` | fake-transcriber captions: segments and rendered captions on the right frames | linux | linux |
+| `decoder-model-ffmpeg` | FFmpeg decoder decisions on scripted media (`cap-rendering` `decoder::model`) | linux | linux |
+| `decoder-model-avf` | AVAssetReader decoder decisions on scripted media | macos | macos |
+
+The upload fault suite (`apps/desktop-gpui/src/upload/verify_tests.rs` and
+`upload/queue/verify_resume_tests.rs`: a mock Cap API with scripted 5xx,
+resets, outages, hangs and quits, byte-identical objects and request and byte
+budgets) lives in the GPUI app's own workspace. It runs inside
+`cargo test --bin cap-gpui`, which the `CI / Build GPUI Desktop` job already
- runs on all three OSes, so that job is its gate. Run it locally with
- `cargo test --manifest-path apps/desktop-gpui/Cargo.toml --bin cap-gpui upload::`.
++runs on all three OSes, so that job is its gate. The app-level caption tests
++(`apps/desktop-gpui/src/transcription/verify_tests.rs`: a fake transcriber
++behind the real extraction and caption pipeline) run in the same job. Run them
++locally with
++`cargo test --manifest-path apps/desktop-gpui/Cargo.toml --bin cap-gpui upload::`
++(or `transcription::`).
+
+Platform-independent logic runs on Linux only in CI. Suites that test platform
+code run on that platform: AVFoundation, VideoToolbox and Metal on macOS;
+Media Foundation, Direct3D and WASAPI on Windows. When you run the suite
+locally, the platform-independent suites run on every OS.
+
+`CAP_VERIFY_TIER=full` (the FULL tier) uses longer fixtures and more seeds.
+
+## Running locally
+
+```sh
+scripts/verify/run.sh fast # what CI runs on this OS for a PR
+scripts/verify/run.sh full # merge-queue and nightly tier
+scripts/verify/run.sh fast --suites seek # one suite
+scripts/verify/run.sh fast --case 'export/basic/*'
+scripts/verify/run.sh fast --list # print the plan
+```
+
+Install cargo-nextest (`cargo install cargo-nextest --locked`) to run the
+tests in parallel, one process per test. Without it, the script runs
+`cargo test` per suite. The local run uses the `dev` profile and shares its
+build with normal development. CI uses the `ci-verify` profile
+(`CAP_VERIFY_CARGO_PROFILE=ci-verify`). Generated fixtures are cached in
+`target/verify-fixtures`, or in `CAP_VERIFY_FIXTURE_DIR` when it is set.
+
+Every failure prints the exact frames or samples that are wrong, the seed,
+and a one-line repro command, for example:
+
+```sh
+CAP_VERIFY_CASE='export/backward-hold/backward-jumps/mp460/avf' CAP_VERIFY_TIER=fast cargo test -p cap-verify --test export -- --nocapture
+CAP_DECODER_MODEL_CASE=decoder-model/avf/syn/edlist/playback CAP_DECODER_MODEL_SEED_INDEX=3 cargo test -p cap-rendering --lib decoder::model::avassetreader_answers_match_the_reference_model -- --nocapture
+```
+
+## Known failures: strict expectations
+
+Known bugs on `main` are strict expected failures. They are listed in
+`crates/verify/expectations.toml` and in
+`crates/rendering/src/decoder/model/expectations.toml`, using the format from
+`crates/verify-expect`:
+
+```toml
+[[xfail]]
+case = "export/early-camera/full/*" # case id, * globs allowed
+class = "future" # failure class that must still occur
+platforms = ["macos"] # optional, absent = every platform
+seeds = "0 3-7" # optional, seeded suites only
+flaky = true # optional; state the measured rate
+reason = "what is wrong"
+link = "https://github.com/CapSoftware/Cap/pull/2595" # empty = no fix yet
+```
+
+- A failure that is not listed fails the run.
+- A listed class or seed that no longer fails also fails the run, with
+ "remove this xfail". When a fix lands, its expected failures must be removed
+ in the same PR, so the fix is locked in.
+
+To update the files after a deliberate change, run:
+
+```sh
+scripts/verify/bless.sh fast # run here and rewrite from the results
+scripts/verify/bless.sh --run <run id> # rewrite from a CI run, all three OSes
+```
+
+Bless changes only the entries of the platforms that ran. It keeps the
+reasons and links of existing entries, and gives each new failure a `TODO:`
+reason. Replace every `TODO:` reason before you merge. Review the diff: a
+blessed failure is a bug that the suite keeps checking.
+
+## CI
+
+`.github/workflows/engine-verify.yml`:
+
+- **Plan.** `scripts/verify/plan.py` maps the changed paths to suites through
+ the workspace dependency graph (`cargo metadata`). A PR that changes only
+ docs, the web app or GPUI UI code runs no suite, and the job finishes in
+ seconds.
+- **Tiers.** FAST runs on every PR push. FULL runs when the PR has the
+ `verify-full` label, in the merge queue, and nightly.
+- **Jobs.** One job per platform builds the selected tests with the
+ `ci-verify` profile and runs them with nextest. Dependencies are optimised
+ and cached; workspace crates are not optimised. A platform with
+ `shards > 1` in `suites.json` uploads a nextest archive, and shard jobs run
+ partitions of it.
+- **No retries.** A failed test is rerun once only so that the summary can
+ label it flaky. The job still fails.
+- **Summary.** Each job summary lists the failing cases, their exact frames
+ or samples, and a repro command. The report records are uploaded as the
+ `verify-report-*` artifacts, which `bless.sh --run` reads.
+- **Gate.** Make the `Engine verify` job a required check.
diff --cc scripts/verify/plan.py
index 37d4c31ec,000000000..121e8c4f8
mode 100755,000000..100755
--- a/scripts/verify/plan.py
+++ b/scripts/verify/plan.py
@@@ -1,292 -1,0 +1,292 @@@
+#!/usr/bin/env python3
+"""Plans engine verification runs from scripts/verify/suites.json.
+
+ plan.py select --tier fast --platform linux [--suites a,b] [--local]
+ Prints four lines for run.sh: the suite names, the cargo target
+ selection, the nextest filter expression and the case globs to skip.
+
+ plan.py changes --tier fast [--files FILE | --all] [--metadata FILE]
+ Maps changed paths to suites through the workspace dependency graph
+ (`cargo metadata`) and prints GitHub step outputs: run, reason,
+ suites, matrix.
+
+ plan.py test
+ Self-test of the change mapping.
+"""
+
+import argparse
+import fnmatch
+import json
+import os
+import subprocess
+import sys
+
+ROOT = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
+PLATFORMS = ["linux", "macos", "windows"]
+
+
+def load_config():
+ with open(os.path.join(ROOT, "scripts", "verify", "suites.json")) as f:
+ return json.load(f)
+
+
+def match(path, pattern):
+ if pattern.endswith("/**"):
+ return path.startswith(pattern[:-2])
+ return fnmatch.fnmatchcase(path, pattern)
+
+
+def suite_filter(suite):
+ parts = []
+ for binary in suite["binaries"]:
+ expr = f"binary_id({binary})"
+ if suite.get("test"):
+ expr = f"({expr} and test(={suite['test']}))"
+ parts.append(expr)
+ return " or ".join(parts)
+
+
+def select(config, tier, platform, names=None, local=False):
+ # Locally, platform-independent suites (CI runs them on linux only) run
+ # on every platform too.
+ suites = [
+ s for s in config["suites"]
+ if platform in s["platforms"][tier] or (local and s["platforms"][tier] == ["linux"])
+ ]
+ if names:
+ unknown = set(names) - {s["name"] for s in config["suites"]}
+ if unknown:
+ sys.exit(f"unknown suites: {', '.join(sorted(unknown))}")
+ suites = [s for s in suites if s["name"] in names]
+ return suites
+
+
+def cargo_args(suites):
+ packages, flags = [], []
+ for suite in suites:
+ args = suite["cargo"]
+ i = 0
+ while i < len(args):
+ if args[i] == "-p":
+ if args[i + 1] not in packages:
+ packages.append(args[i + 1])
+ i += 2
+ continue
+ if args[i] == "--test":
+ flag = ["--test", args[i + 1]]
+ i += 2
+ else:
+ flag = [args[i]]
+ i += 1
+ if flag not in flags:
+ flags.append(flag)
+ out = []
+ for package in packages:
+ out += ["-p", package]
+ for flag in flags:
+ out += flag
+ return out
+
+
+def cmd_select(args):
+ config = load_config()
+ names = [n for n in (args.suites or "").split(",") if n]
+ suites = select(config, args.tier, args.platform, names or None, args.local)
+ print(" ".join(s["name"] for s in suites))
+ print(" ".join(cargo_args(suites)))
+ print(" or ".join(f"({suite_filter(s)})" for s in suites))
+ skips = []
+ for suite in suites:
+ for glob in suite.get("skip", {}).get(args.tier, {}).get(args.platform, []):
+ if glob not in skips:
+ skips.append(glob)
+ print(",".join(skips))
+
+
+def workspace_graph(metadata):
+ """Package dirs and reverse dependencies (normal, dev and build)."""
+ dirs, deps = {}, {}
+ for package in metadata["packages"]:
+ name = package["name"]
+ dirs[name] = os.path.relpath(os.path.dirname(package["manifest_path"]), metadata["workspace_root"]).replace(os.sep, "/")
+ deps[name] = [
+ (d["name"], d.get("kind") or "normal")
+ for d in package["dependencies"]
+ if d.get("path")
+ ]
+ return dirs, deps
+
+
+def closure(root, deps):
+ """Packages whose code ends up in `root`'s tests: root's normal, dev and
+ build dependencies, then normal and build dependencies transitively."""
+ seen = {root}
+ stack = [(name, kind) for name, kind in deps.get(root, [])]
+ while stack:
+ name, _kind = stack.pop()
+ if name in seen or name not in deps:
+ continue
+ seen.add(name)
+ stack.extend((n, k) for n, k in deps[name] if k != "dev")
+ return seen
+
+
+def owning_package(path, dirs):
+ best = None
+ for name, d in dirs.items():
+ if d == ".":
+ continue
+ if path == d or path.startswith(d + "/"):
+ if best is None or len(d) > len(dirs[best]):
+ best = name
+ return best
+
+
+def affected(config, files, metadata, tier):
+ """Returns (suite names, reason)."""
+ all_names = [s["name"] for s in config["suites"]]
+ for path in files:
+ for pattern in config["always"]:
+ if match(path, pattern):
+ return all_names, f"{path} affects every suite"
+ dirs, deps = workspace_graph(metadata)
+ closures = {s["name"]: set().union(*(closure(r, deps) for r in s["roots"])) for s in config["suites"]}
+ owned = {}
+ for suite in config["suites"]:
+ for pattern in suite["own"]:
+ owned.setdefault(pattern, set()).add(suite["name"])
+ selected, reasons = set(), []
+ for path in files:
+ package = owning_package(path, dirs)
+ if package is None:
+ continue
+ owners = set()
+ for pattern, names in owned.items():
+ if match(path, pattern):
+ owners |= names
+ hits = owners if owners else {n for n, c in closures.items() if package in c}
+ if hits - selected:
+ reasons.append(f"{path} ({package}) -> {', '.join(sorted(hits))}")
+ selected |= hits
+ names = [n for n in all_names if n in selected]
+ if not names:
+ return [], "no engine code changed"
+ return names, "; ".join(reasons[:8]) + (" ..." if len(reasons) > 8 else "")
+
+
+def matrix(config, names, tier):
+ include = []
+ for platform in PLATFORMS:
+ suites = [s["name"] for s in config["suites"] if s["name"] in names and platform in s["platforms"][tier]]
+ if not suites:
+ continue
+ runner = dict(config["runners"][platform])
+ if isinstance(runner["shards"], dict):
+ runner["shards"] = runner["shards"][tier]
+ include.append({
+ "platform": platform,
+ "runner": runner["runner"],
+ "target": runner["target"],
+ "shards": runner["shards"],
+ "shard_list": json.dumps(list(range(1, runner["shards"] + 1))),
+ "archive": runner.get("archive", False),
+ "suites": ",".join(suites),
+ })
+ return {"include": include}
+
+
+def load_metadata(path):
+ if path:
+ with open(path) as f:
+ return json.load(f)
+ env = dict(os.environ)
+ env.setdefault("RUSTUP_TOOLCHAIN", "stable")
+ out = subprocess.run(
+ ["cargo", "metadata", "--no-deps", "--format-version", "1"],
+ cwd=ROOT, env=env, check=True, capture_output=True, text=True,
+ ).stdout
+ return json.loads(out)
+
+
+def cmd_changes(args):
+ config = load_config()
+ if args.all:
+ names, reason = [s["name"] for s in config["suites"]], "full run"
+ else:
+ with open(args.files) as f:
+ files = [line.strip() for line in f if line.strip()]
+ if len(files) >= args.max_files:
+ names, reason = [s["name"] for s in config["suites"]], f"{len(files)} changed files (list may be truncated)"
+ else:
+ names, reason = affected(config, files, load_metadata(args.metadata), args.tier)
+ if args.suites:
+ wanted = [n for n in args.suites.split(",") if n]
+ unknown = set(wanted) - {s["name"] for s in config["suites"]}
+ if unknown:
+ sys.exit(f"unknown suites: {', '.join(sorted(unknown))}")
+ names = [n for n in names if n in wanted]
+ reason += f" (limited to {args.suites})"
+ m = matrix(config, names, args.tier)
+ lines = {
+ "run": "true" if m["include"] else "false",
+ "reason": reason.replace("\n", " "),
+ "suites": ",".join(names),
+ "matrix": json.dumps(m, separators=(",", ":")),
+ }
+ for key, value in lines.items():
+ print(f"{key}={value}")
+
+
+def cmd_test(_args):
+ config = load_config()
+ metadata = load_metadata(None)
+ cases = [
+ (["apps/web/app/page.tsx", "README.md"], []),
+ (["crates/verify/tests/seek.rs"], ["seek"]),
+ (["crates/verify/tests/seek.rs", "crates/verify/tests/export.rs"], ["export", "seek"]),
- (["crates/verify/src/oracle.rs"], ["verify-self", "export", "playback", "seek", "audio"]),
++ (["crates/verify/src/oracle.rs"], [s["name"] for s in config["suites"] if "cap-verify" in s["roots"]]),
+ (["crates/verify/src/audio_model.rs"], ["audio"]),
+ (["crates/rendering/src/decoder/ffmpeg.rs"], [s["name"] for s in config["suites"]]),
+ (["crates/video-decode/src/ffmpeg.rs"], [s["name"] for s in config["suites"]]),
+ (["Cargo.lock"], [s["name"] for s in config["suites"]]),
+ (["scripts/verify/run.sh"], [s["name"] for s in config["suites"]]),
+ (["apps/desktop-gpui/src/main.rs"], []),
+ ]
+ failed = 0
+ for files, expected in cases:
+ names, reason = affected(config, files, metadata, "fast")
+ ok = sorted(names) == sorted(expected)
+ failed += not ok
+ print(f"{'ok ' if ok else 'BAD'} {files} -> {names} ({reason})")
+ rendering_only = affected(config, ["crates/rendering/src/decoder/model/mod.rs"], metadata, "fast")[0]
+ if "decoder-model-ffmpeg" not in rendering_only:
+ failed += 1
+ print(f"BAD decoder model change -> {rendering_only}")
+ sys.exit(1 if failed else 0)
+
+
+def main():
+ parser = argparse.ArgumentParser()
+ sub = parser.add_subparsers(dest="command", required=True)
+ p = sub.add_parser("select")
+ p.add_argument("--tier", choices=["fast", "full"], required=True)
+ p.add_argument("--platform", choices=PLATFORMS, required=True)
+ p.add_argument("--suites")
+ p.add_argument("--local", action="store_true")
+ p.set_defaults(func=cmd_select)
+ p = sub.add_parser("changes")
+ p.add_argument("--tier", choices=["fast", "full"], required=True)
+ p.add_argument("--files")
+ p.add_argument("--all", action="store_true")
+ p.add_argument("--metadata")
+ p.add_argument("--max-files", type=int, default=3000)
+ p.add_argument("--suites")
+ p.set_defaults(func=cmd_changes)
+ p = sub.add_parser("test")
+ p.set_defaults(func=cmd_test)
+ args = parser.parse_args()
+ args.func(args)
+
+
+if __name__ == "__main__":
+ main()
diff --cc scripts/verify/suites.json
index da8a26bf8,000000000..ad6fc922b
mode 100644,000000..100644
--- a/scripts/verify/suites.json
+++ b/scripts/verify/suites.json
@@@ -1,288 -1,0 +1,343 @@@
+{
+ "_doc": "Engine verification suites. Read by scripts/verify/plan.py (CI planning, change detection) and scripts/verify/run.sh (local and CI runs). Fields: cargo = the cargo target selection that builds the suite; test = optional exact test name inside that binary; platforms = where each tier runs it (platform-independent logic runs on linux only); roots = workspace packages whose dependency closure decides whether a change can affect the suite; own = files that only affect this suite (a change confined to them selects just this suite). skip = case-id globs left out of a tier on a platform (CAP_VERIFY_SKIP), to keep the FAST tier within its time budget; the FULL tier runs them.",
+ "suites": [
+ {
+ "name": "verify-self",
+ "about": "marker codecs, reference timeline model, oracle and report self-tests",
+ "cargo": [
+ "-p",
+ "cap-verify",
+ "--lib",
+ "--test",
+ "codec"
+ ],
+ "binaries": [
+ "cap-verify",
+ "cap-verify::codec"
+ ],
+ "platforms": {
+ "fast": [
+ "linux"
+ ],
+ "full": [
+ "linux",
+ "macos"
+ ]
+ },
+ "roots": [
+ "cap-verify"
+ ],
+ "own": [
+ "crates/verify/tests/codec.rs"
+ ]
+ },
+ {
+ "name": "export",
+ "about": "every exported frame against the reference model (MP4, GIF, both decoders on macOS)",
+ "cargo": [
+ "-p",
+ "cap-verify",
+ "--test",
+ "export"
+ ],
+ "binaries": [
+ "cap-verify::export"
+ ],
+ "platforms": {
+ "fast": [
+ "linux",
+ "macos",
+ "windows"
+ ],
+ "full": [
+ "linux",
+ "macos",
+ "windows"
+ ]
+ },
+ "roots": [
+ "cap-verify"
+ ],
+ "own": [
+ "crates/verify/tests/export.rs"
+ ],
+ "skip": {
+ "fast": {
+ "macos": [
+ "export/*/ffmpeg",
+ "export/backward-hold/*/mp430/*"
+ ],
+ "windows": [
+ "export/*/mp460/*",
+ "export/backward-hold/*",
+ "export/jitter-camera-*",
+ "export/*/uhd-*"
+ ]
+ }
+ }
+ },
+ {
+ "name": "playback",
+ "about": "offline-driven editor playback frames against the reference model",
+ "cargo": [
+ "-p",
+ "cap-verify",
+ "--test",
+ "playback"
+ ],
+ "binaries": [
+ "cap-verify::playback"
+ ],
+ "platforms": {
+ "fast": [
+ "linux",
+ "macos"
+ ],
+ "full": [
+ "linux",
+ "macos",
+ "windows"
+ ]
+ },
+ "roots": [
+ "cap-verify"
+ ],
+ "own": [
+ "crates/verify/tests/playback.rs"
+ ],
+ "skip": {
+ "fast": {
+ "macos": [
+ "playback/*/ffmpeg"
+ ]
+ }
+ }
+ },
+ {
+ "name": "seek",
+ "about": "random, keyframe and scrub seeks against the reference model",
+ "cargo": [
+ "-p",
+ "cap-verify",
+ "--test",
+ "seek"
+ ],
+ "binaries": [
+ "cap-verify::seek"
+ ],
+ "platforms": {
+ "fast": [
+ "linux",
+ "macos"
+ ],
+ "full": [
+ "linux",
+ "macos",
+ "windows"
+ ]
+ },
+ "roots": [
+ "cap-verify"
+ ],
+ "own": [
+ "crates/verify/tests/seek.rs"
+ ],
+ "skip": {
+ "fast": {
+ "macos": [
+ "seek/*/ffmpeg"
+ ]
+ }
+ }
+ },
+ {
+ "name": "audio",
+ "about": "export and offline playback audio against sample-accurate markers (mic, system audio, cuts, speeds, mute, volume, A/V offset)",
+ "cargo": [
+ "-p",
+ "cap-verify",
+ "--test",
+ "audio"
+ ],
+ "binaries": [
+ "cap-verify::audio"
+ ],
+ "platforms": {
+ "fast": [
+ "linux",
+ "macos",
+ "windows"
+ ],
+ "full": [
+ "linux",
+ "macos",
+ "windows"
+ ]
+ },
+ "roots": [
+ "cap-verify"
+ ],
+ "own": [
+ "crates/verify/tests/audio.rs",
+ "crates/verify/tests/audio_support/**",
+ "crates/verify/src/audio_model.rs",
+ "crates/verify/src/audio_fixture.rs"
+ ],
+ "skip": {
+ "fast": {
+ "windows": [
+ "audio/*/mp4-plain30",
+ "audio/*/gif30",
+ "audio/*/mov30"
+ ]
+ }
+ }
+ },
++ {
++ "name": "editing",
++ "about": "random edit sequences (split, delete, speed, trim, reorder, transitions) exported and checked frame by frame against the reference model",
++ "cargo": [
++ "-p",
++ "cap-verify",
++ "--test",
++ "editing"
++ ],
++ "binaries": [
++ "cap-verify::editing"
++ ],
++ "platforms": {
++ "fast": [
++ "linux"
++ ],
++ "full": [
++ "linux"
++ ]
++ },
++ "roots": [
++ "cap-verify"
++ ],
++ "own": [
++ "crates/verify/tests/editing.rs",
++ "crates/verify/tests/edits/**"
++ ]
++ },
++ {
++ "name": "captions",
++ "about": "fake-transcriber captions: caption segments and rendered captions on the right frames",
++ "cargo": [
++ "-p",
++ "cap-verify",
++ "--test",
++ "captions"
++ ],
++ "binaries": [
++ "cap-verify::captions"
++ ],
++ "platforms": {
++ "fast": [
++ "linux"
++ ],
++ "full": [
++ "linux"
++ ]
++ },
++ "roots": [
++ "cap-verify"
++ ],
++ "own": [
++ "crates/verify/tests/captions.rs"
++ ]
++ },
+ {
+ "name": "decoder-model-ffmpeg",
+ "about": "model-based fuzzing of the FFmpeg decoder's request decisions on scripted media",
+ "cargo": [
+ "-p",
+ "cap-rendering",
+ "--lib"
+ ],
+ "binaries": [
+ "cap-rendering"
+ ],
+ "test": "decoder::model::ffmpeg_answers_match_the_reference_model",
+ "platforms": {
+ "fast": [
+ "linux"
+ ],
+ "full": [
+ "linux"
+ ]
+ },
+ "roots": [
+ "cap-rendering"
+ ],
+ "own": []
+ },
+ {
+ "name": "decoder-model-avf",
+ "about": "model-based fuzzing of the AVAssetReader decoder's request decisions on scripted media",
+ "cargo": [
+ "-p",
+ "cap-rendering",
+ "--lib"
+ ],
+ "binaries": [
+ "cap-rendering"
+ ],
+ "test": "decoder::model::avassetreader_answers_match_the_reference_model",
+ "platforms": {
+ "fast": [
+ "macos"
+ ],
+ "full": [
+ "macos"
+ ]
+ },
+ "roots": [
+ "cap-rendering"
+ ],
+ "own": []
+ }
+ ],
+ "always": [
+ ".cargo/**",
+ ".config/nextest.toml",
+ ".github/workflows/engine-verify*.yml",
+ ".github/actions/**",
+ "Cargo.lock",
+ "Cargo.toml",
+ "rust-toolchain.toml",
+ "scripts/setup.js",
+ "scripts/verify/**",
+ "vendor/**"
+ ],
+ "runners": {
+ "linux": {
+ "runner": "ubuntu-24.04",
+ "target": "x86_64-unknown-linux-gnu",
+ "shards": {
+ "fast": 2,
+ "full": 3
+ },
+ "archive": false
+ },
+ "macos": {
+ "runner": "macos-15",
+ "target": "aarch64-apple-darwin",
+ "shards": {
+ "fast": 2,
+ "full": 3
+ },
+ "archive": false
+ },
+ "windows": {
+ "runner": "windows-2022",
+ "target": "x86_64-pc-windows-msvc",
+ "shards": {
+ "fast": 3,
+ "full": 4
+ },
+ "archive": false
+ }
+ }
+}