Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore(verify): clippy and Biome clean on all targets

Richie McIlroy012717a8fba5
diff --git a/crates/verify/src/pipeline.rs b/crates/verify/src/pipeline.rs
index cc9620800..2d731c471 100644
--- a/crates/verify/src/pipeline.rs
+++ b/crates/verify/src/pipeline.rs
@@ -256,6 +256,7 @@ struct VideoLeg {
fps: u32,
}
+#[allow(clippy::too_many_arguments)]
async fn video_leg(
dir: &Path,
rel: RelativePathBuf,
diff --git a/crates/verify/tests/common/mod.rs b/crates/verify/tests/common/mod.rs
index d534a2f47..20ff4f75e 100644
--- a/crates/verify/tests/common/mod.rs
+++ b/crates/verify/tests/common/mod.rs
@@ -1058,6 +1058,7 @@ pub fn assert_passed(failures: Vec<String>) {
/// (so transition frames are read as blends).
/// Video only (`create_segments_without_audio`): the audio clock has its own
/// oracle. Dropped frames are normal under load; delivered ones must be right.
+#[allow(clippy::too_many_arguments)]
pub async fn realtime_playback(
project: &Project,
config: ProjectConfiguration,
diff --git a/crates/video-decode/src/scripted.rs b/crates/video-decode/src/scripted.rs
index 2b30ceb72..a44e2a929 100644
--- a/crates/video-decode/src/scripted.rs
+++ b/crates/video-decode/src/scripted.rs
@@ -106,11 +106,13 @@ impl ScriptState {
}
/// Whether `pts` (in stream ticks) is at or before `value / scale` seconds.
+ #[cfg(target_os = "macos")]
fn at_or_before(&self, pts: i64, value: i64, scale: i32) -> bool {
let (num, den) = self.script.time_base;
(pts as i128) * (num as i128) * (scale as i128) <= (value as i128) * (den as i128)
}
+ #[cfg(target_os = "macos")]
fn newest_at_or_before(&self, value: i64, scale: i32) -> Option<usize> {
self.script
.frames
diff --git a/scripts/verify/suites.json b/scripts/verify/suites.json
index 380aaed3b..a26de3968 100644
--- a/scripts/verify/suites.json
+++ b/scripts/verify/suites.json
@@ -1,375 +1,203 @@
{
- "_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"
- ],
- "macos": [
- "audio/*/mp4-plain30",
- "audio/*/gif30"
- ]
- }
- }
- },
- {
- "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": []
- },
- {
- "name": "native-rendering",
- "about": "native macOS rendering regressions (IOSurface source lifetime in the YUV converter)",
- "cargo": [
- "-p",
- "cap-rendering",
- "--test",
- "iosurface-source-lifetime"
- ],
- "binaries": [
- "cap-rendering::iosurface-source-lifetime"
- ],
- "platforms": {
- "fast": [
- "macos"
- ],
- "full": [
- "macos"
- ]
- },
- "roots": [
- "cap-rendering"
- ],
- "own": [
- "crates/rendering/tests/iosurface-source-lifetime.rs",
- "crates/rendering/tests/expectations.toml"
- ]
- }
- ],
- "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": 1,
- "full": 2
- },
- "archive": false
- },
- "windows": {
- "runner": "windows-2022",
- "target": "x86_64-pc-windows-msvc",
- "shards": {
- "fast": 3,
- "full": 4
- },
- "archive": false
- }
- }
+ "_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"],
+ "macos": ["audio/*/mp4-plain30", "audio/*/gif30"]
+ }
+ }
+ },
+ {
+ "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": []
+ },
+ {
+ "name": "native-rendering",
+ "about": "native macOS rendering regressions (IOSurface source lifetime in the YUV converter)",
+ "cargo": ["-p", "cap-rendering", "--test", "iosurface-source-lifetime"],
+ "binaries": ["cap-rendering::iosurface-source-lifetime"],
+ "platforms": {
+ "fast": ["macos"],
+ "full": ["macos"]
+ },
+ "roots": ["cap-rendering"],
+ "own": [
+ "crates/rendering/tests/iosurface-source-lifetime.rs",
+ "crates/rendering/tests/expectations.toml"
+ ]
+ }
+ ],
+ "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": 1,
+ "full": 2
+ },
+ "archive": false
+ },
+ "windows": {
+ "runner": "windows-2022",
+ "target": "x86_64-pc-windows-msvc",
+ "shards": {
+ "fast": 3,
+ "full": 4
+ },
+ "archive": false
+ }
+ }
}