forge
Explore
Log in

Don't you dare go Hollow

The proxy's opening window rides out its siblings

Browse files at this commit

2c8bd0158841dfe9991ec48d2855cc0795a33c47Ahmet Kaan GümüşParent: a670b0a
  • test
    • the proxy's opening window rides out its siblings
Show full message
✅ test(engine): the proxy's opening window rides out its siblings

The encoder opens in under a second alone, but the binary's other
exports can starve the worker for minutes -- 120 s tripped three times
this sweep, twice under suite load and once under the binary's own.
600 s now: a hang guard, not a speed claim, same law as the AV1 budget.
crates/engine/tests/export.rsmodified+4 -2
@@ -1058,11 +1058,13 @@ fn a_stopped_proxy_leaves_neither_a_stand_in_nor_half_of_one() {
1058 1058
1059 let job = engine::proxy::generate(&source).expect("start the proxy");1059 let job = engine::proxy::generate(&source).expect("start the proxy");
1060 // Stopped with the encoder really running: a flag set before the worker has1060 // Stopped with the encoder really running: a flag set before the worker has
1061- // opened anything tests the flag and not the stop.1061+ // opened anything tests the flag and not the stop. Opening costs under a
1062+ // second alone, but the sibling exports of this binary can starve it for
1063+ // minutes -- the budget is a hang guard, not a speed claim.
1062 let opening = Instant::now();1064 let opening = Instant::now();
1063 while job.encoder().is_none() && !job.is_finished() {1065 while job.encoder().is_none() && !job.is_finished() {
1064 assert!(1066 assert!(
1065- opening.elapsed() < Duration::from_secs(120),1067+ opening.elapsed() < Duration::from_secs(600),
1066 "the encoder never opened"1068 "the encoder never opened"
1067 );1069 );
1068 std::thread::sleep(Duration::from_millis(10));1070 std::thread::sleep(Duration::from_millis(10));