forge
Explore
Log in

Don't you dare go Hollow

The subtitle exports get the same hang guard, not a stopwatch

Browse files at this commit

8cbcb1533cb1262c140c10c8bf5cb12e7bd4b27bAhmet Kaan GümüşParent: 2c8bd01
  • test
    • the subtitle exports get the same hang guard, not a stopwatch
Show full message
✅ test(engine): the subtitle exports get the same hang guard, not a stopwatch

Each software-seat export here costs ~70 s alone (71.5 s at the parent
commit too -- the cost is old, not a regression), and the binary runs
all nineteen together: 300 s per test was arithmetic that could never
hold under its own siblings, 16 of 19 tripping at once. 1800 s now,
the same law the AV1 and proxy budgets took this sweep.
crates/engine/tests/export_subs.rsmodified+8 -5
@@ -51,6 +51,9 @@ fn pin_software() {
5151 });
5252 }
5353
54+/// One export alone costs ~70 s software-seat on the machine of record, and
55+/// the harness runs this binary's tests together -- the limit is a hang
56+/// guard against a stuck export, never a speed claim.
5457 fn wait(handle: &ExportHandle, limit: Duration) -> engine::Result<()> {
5558 let started = Instant::now();
5659 while !handle.is_finished() {
@@ -155,7 +158,7 @@ fn exported_want(
155158 ..Default::default()
156159 },
157160 );
158- wait(&handle, Duration::from_secs(300)).expect("the export finishes");
161+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
159162 // The bar ends where it was told it would: the picture loop's own count and
160163 // the total published for it are one number ([`export::export_spans`]), so a
161164 // walk that ran past the media would show up here as well as in the file.
@@ -186,7 +189,7 @@ fn exported_mp4(name: &str, project: Project, picks: &[usize]) -> Scratch {
186189 ..Default::default()
187190 },
188191 );
189- wait(&handle, Duration::from_secs(300)).expect("the export finishes");
192+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
190193 out
191194 }
192195
@@ -568,7 +571,7 @@ fn an_hevc_mp4_keeps_its_rewritten_entry_and_its_text() {
568571 ..Default::default()
569572 },
570573 );
571- wait(&handle, Duration::from_secs(300)).expect("the export finishes");
574+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
572575 let Some(listing) = ffmpeg_streams(&out) else {
573576 println!("no ffmpeg on this box: an mp4's tx3g has no other reader here");
574577 std::fs::remove_file(&out).unwrap();
@@ -660,7 +663,7 @@ fn more_tracks_than_a_block_can_number_are_refused_by_name() {
660663 ..Default::default()
661664 },
662665 );
663- let said = wait(&handle, Duration::from_secs(300))
666+ let said = wait(&handle, Duration::from_secs(1800))
664667 .expect_err("a file that cannot be numbered is not written")
665668 .to_string();
666669 assert!(
@@ -1092,7 +1095,7 @@ fn more_lanes_than_a_block_can_number_are_refused_by_name() {
10921095 ..Default::default()
10931096 },
10941097 );
1095- let said = wait(&handle, Duration::from_secs(300))
1098+ let said = wait(&handle, Duration::from_secs(1800))
10961099 .expect_err("a file that cannot be numbered is not written")
10971100 .to_string();
10981101 assert!(