From 4478d5278152d18938dcab9a52a5cc7dc93e7cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 24 Sep 2026 22:23:20 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(export):=20the=20cancel-landin?= =?UTF-8?q?g=20bounds=20are=20liveness=20ceilings,=20not=20deadlines=20und?= =?UTF-8?q?er=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/engine/tests/export.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/crates/engine/tests/export.rs b/crates/engine/tests/export.rs index dd2ffa5..6b04a46 100644 --- a/crates/engine/tests/export.rs +++ b/crates/engine/tests/export.rs @@ -615,7 +615,11 @@ fn cancelling_leaves_no_file() { std::thread::sleep(Duration::from_millis(10)); } handle.cancel(); - let result = wait(&handle, Duration::from_secs(5)); + // A liveness ceiling, not a deadline under test: a cancel lands in ~5 s on an + // idle box, and inside a full parallel run of this binary (34 tests, most of + // them encoding) the worker can be starved well past that. 60 s still fails + // the run if a cancel never lands. + let result = wait(&handle, Duration::from_secs(60)); assert!(result.is_err(), "a cancelled export is an error"); assert!(!out.exists(), "no partial file survives a cancel"); assert!(!part_path(&out).exists(), "the .part is cleaned up too"); @@ -653,7 +657,7 @@ fn cancelling_after_the_last_frame_leaves_no_file() { } handle.cancel(); - let result = wait(&handle, Duration::from_secs(30)); + let result = wait(&handle, Duration::from_secs(120)); assert!(!part.exists(), "attempt {attempt} left a .part behind"); if result.is_err() { assert!(!out.exists(), "a late cancel still wrote {}", out.display()); @@ -1262,7 +1266,7 @@ fn a_proxy_is_picture_only_every_frame_a_starting_point_and_cached() { let started = Instant::now(); while session.try_frame().is_none() { assert!( - started.elapsed() < Duration::from_secs(10), + started.elapsed() < Duration::from_secs(60), "no picture after switching to the stand-in" ); std::thread::sleep(Duration::from_millis(10)); @@ -1555,7 +1559,7 @@ fn a_proxy_of_real_4k_film_is_made_faster_than_it_plays() { let stopped = Instant::now(); while !job.is_finished() { assert!( - stopped.elapsed() < Duration::from_secs(30), + stopped.elapsed() < Duration::from_secs(120), "the proxy did not stop when cancelled" ); std::thread::sleep(Duration::from_millis(50));