From a670b0a78ccb1a36e112aa33f3bc70f57a92dbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 19 Aug 2026 17:41:26 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(engine):=20the=20AV1=20export?= =?UTF-8?q?=20budget=20is=20a=20hang=20guard,=20not=20a=20stopwatch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The software encode alone costs ~270 s for 30 frames on the machine of record; a 300 s ceiling left every software-seat export one co-running test away from a timeout, and the full suite tripped it. 900 s now -- three times the measured floor, still catching a genuine hang. --- crates/engine/tests/av1.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/engine/tests/av1.rs b/crates/engine/tests/av1.rs index 0b7487f..5becdb7 100644 --- a/crates/engine/tests/av1.rs +++ b/crates/engine/tests/av1.rs @@ -336,7 +336,7 @@ fn an_mp4_export_of_a_matroska_source_carries_its_sound() { let handle = engine::export::start(project, meta, &out, &ExportSettings::default()); let started = Instant::now(); while !handle.is_finished() { - assert!(started.elapsed() < Duration::from_secs(300), "export hung"); + assert!(started.elapsed() < Duration::from_secs(900), "export hung"); std::thread::sleep(Duration::from_millis(20)); } handle @@ -410,7 +410,10 @@ fn exported( #[test] fn an_av1_export_reopens_through_our_own_demuxer() { let session = short_timeline(30.0); - let out = exported(&session, "sw", &av1_settings(), Duration::from_secs(300)); + // The software encoder alone costs ~270 s for these 30 frames on the + // machine of record: 300 s left it one co-running test away from a + // timeout, so the budget is a hang guard, not a speed claim. + let out = exported(&session, "sw", &av1_settings(), Duration::from_secs(900)); let (meta, mut demuxer) = Demuxer::open(&out).expect("reopen the export"); assert_eq!(meta.codec, Codec::Av1, "an AV1 export is AV1"); @@ -472,7 +475,7 @@ fn an_av1_export_carries_the_timelines_sound_in_either_container() { let handle = session.export_to_with(&out, &settings); let started = Instant::now(); while !handle.is_finished() { - assert!(started.elapsed() < Duration::from_secs(300), "export hung"); + assert!(started.elapsed() < Duration::from_secs(900), "export hung"); std::thread::sleep(Duration::from_millis(20)); } handle.result().expect("outcome").expect("an AV1 export"); @@ -530,7 +533,7 @@ fn an_av1_export_decodes_back_into_the_pictures_that_went_in() { &session, "roundtrip", &av1_settings(), - Duration::from_secs(300), + Duration::from_secs(900), ); let (_, frames) = DecodeSession::open(&out).expect("decode the export");