FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
WINCI: ignore the mixer throughput benchmark only where it times wall clock
Brandon Thomasa66be150e38c
diff --git a/crates/render/src/mixer_tests.rs b/crates/render/src/mixer_tests.rsindex 7aeb21f64..182e9237e 100644--- a/crates/render/src/mixer_tests.rs+++ b/crates/render/src/mixer_tests.rs@@ -423,7 +423,10 @@ fn live_override_holds_and_ramps_back() {/// 24 tracks × 3 inserts (EQ, Dynamics, Studio Reverb) + a compressed submix at 48 kHz, one core.#[test]-#[ignore = "hardware-dependent throughput benchmark; run explicitly on the benchmark host"]+// Off Unix there is no per-thread CPU clock (`thread_cpu_secs`), so the timing falls back to wall+// time, which a loaded CI host (Windows runners run the suite in parallel) can push under the+// threshold: genuinely timing-flaky there. On Unix it measures this thread's CPU time and stays on.+#[cfg_attr(not(unix), ignore = "wall-clock timing without a thread CPU clock is load-dependent; run with --ignored")]fn perf_24_tracks_3_effects_realtime_factor() {let r = busy_rig(24);let secs = if cfg!(debug_assertions) { 2.0 } else { 10.0 };diff --git a/docs/testing.md b/docs/testing.mdindex 91ceb0469..b9aeaa478 100644--- a/docs/testing.md+++ b/docs/testing.md@@ -340,8 +340,10 @@ real-time second (≈160 ms CPU per frame at 170 Mbit/s); the demo project's pro### Audio mixer throughput+`perf_24_tracks_3_effects_realtime_factor` (24 tracks, 72 inserts and a compressed submix on one+core) must run at least 4x realtime in release builds (1x in debug). On Unix it times the test+thread's CPU time, so it runs with the rest of the suite. Hosts without a per-thread CPU clock+(Windows) fall back to wall time, which depends on load, so there it is ignored by default; run it+explicitly with`cargo test --release -p filmcraft-render --lib perf_24_tracks_3_effects_realtime_factor -- --ignored --nocapture`-runs the 24-track, 72-insert throughput benchmark. It retains the 4x realtime release target, but-is opt-in like the other hardware benchmarks: portable functional CI must not depend on a host's-single-core throughput or scheduling. The mixer correctness tests remain enabled. On non-Unix-hosts its existing timer falls back to wall time; record that limitation with the machine and result.+and record the machine with the result.