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() {
10581058
10591059 let job = engine::proxy::generate(&source).expect("start the proxy");
10601060 // 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.
10621064 let opening = Instant::now();
10631065 while job.encoder().is_none() && !job.is_finished() {
10641066 assert!(
1065- opening.elapsed() < Duration::from_secs(120),
1067+ opening.elapsed() < Duration::from_secs(600),
10661068 "the encoder never opened"
10671069 );
10681070 std::thread::sleep(Duration::from_millis(10));