forge
Explore
Log in

Don't you dare go Hollow

The cancel-landing bounds are liveness ceilings, not deadlines under test

Browse files at this commit

4478d5278152d18938dcab9a52a5cc7dc93e7cd9Ahmet Kaan GümüşParent: 92fe3fc
  • test
    • the cancel-landing bounds are liveness ceilings, not deadlines under test
Show full message
✅ test(export): the cancel-landing bounds are liveness ceilings, not deadlines under test
crates/engine/tests/export.rsmodified+8 -4
@@ -615,7 +615,11 @@ fn cancelling_leaves_no_file() {
615615 std::thread::sleep(Duration::from_millis(10));
616616 }
617617 handle.cancel();
618- let result = wait(&handle, Duration::from_secs(5));
618+ // A liveness ceiling, not a deadline under test: a cancel lands in ~5 s on an
619+ // idle box, and inside a full parallel run of this binary (34 tests, most of
620+ // them encoding) the worker can be starved well past that. 60 s still fails
621+ // the run if a cancel never lands.
622+ let result = wait(&handle, Duration::from_secs(60));
619623 assert!(result.is_err(), "a cancelled export is an error");
620624 assert!(!out.exists(), "no partial file survives a cancel");
621625 assert!(!part_path(&out).exists(), "the .part is cleaned up too");
@@ -653,7 +657,7 @@ fn cancelling_after_the_last_frame_leaves_no_file() {
653657 }
654658 handle.cancel();
655659
656- let result = wait(&handle, Duration::from_secs(30));
660+ let result = wait(&handle, Duration::from_secs(120));
657661 assert!(!part.exists(), "attempt {attempt} left a .part behind");
658662 if result.is_err() {
659663 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() {
12621266 let started = Instant::now();
12631267 while session.try_frame().is_none() {
12641268 assert!(
1265- started.elapsed() < Duration::from_secs(10),
1269+ started.elapsed() < Duration::from_secs(60),
12661270 "no picture after switching to the stand-in"
12671271 );
12681272 std::thread::sleep(Duration::from_millis(10));
@@ -1555,7 +1559,7 @@ fn a_proxy_of_real_4k_film_is_made_faster_than_it_plays() {
15551559 let stopped = Instant::now();
15561560 while !job.is_finished() {
15571561 assert!(
1558- stopped.elapsed() < Duration::from_secs(30),
1562+ stopped.elapsed() < Duration::from_secs(120),
15591563 "the proxy did not stop when cancelled"
15601564 );
15611565 std::thread::sleep(Duration::from_millis(50));