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() {
51 });51 });
52 }52 }
53 53
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.
54 fn wait(handle: &ExportHandle, limit: Duration) -> engine::Result<()> {57 fn wait(handle: &ExportHandle, limit: Duration) -> engine::Result<()> {
55 let started = Instant::now();58 let started = Instant::now();
56 while !handle.is_finished() {59 while !handle.is_finished() {
@@ -155,7 +158,7 @@ fn exported_want(
155 ..Default::default()158 ..Default::default()
156 },159 },
157 );160 );
158- wait(&handle, Duration::from_secs(300)).expect("the export finishes");161+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
159 // The bar ends where it was told it would: the picture loop's own count and162 // The bar ends where it was told it would: the picture loop's own count and
160 // the total published for it are one number ([`export::export_spans`]), so a163 // the total published for it are one number ([`export::export_spans`]), so a
161 // walk that ran past the media would show up here as well as in the file.164 // 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 {
186 ..Default::default()189 ..Default::default()
187 },190 },
188 );191 );
189- wait(&handle, Duration::from_secs(300)).expect("the export finishes");192+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
190 out193 out
191 }194 }
192 195
@@ -568,7 +571,7 @@ fn an_hevc_mp4_keeps_its_rewritten_entry_and_its_text() {
568 ..Default::default()571 ..Default::default()
569 },572 },
570 );573 );
571- wait(&handle, Duration::from_secs(300)).expect("the export finishes");574+ wait(&handle, Duration::from_secs(1800)).expect("the export finishes");
572 let Some(listing) = ffmpeg_streams(&out) else {575 let Some(listing) = ffmpeg_streams(&out) else {
573 println!("no ffmpeg on this box: an mp4's tx3g has no other reader here");576 println!("no ffmpeg on this box: an mp4's tx3g has no other reader here");
574 std::fs::remove_file(&out).unwrap();577 std::fs::remove_file(&out).unwrap();
@@ -660,7 +663,7 @@ fn more_tracks_than_a_block_can_number_are_refused_by_name() {
660 ..Default::default()663 ..Default::default()
661 },664 },
662 );665 );
663- let said = wait(&handle, Duration::from_secs(300))666+ let said = wait(&handle, Duration::from_secs(1800))
664 .expect_err("a file that cannot be numbered is not written")667 .expect_err("a file that cannot be numbered is not written")
665 .to_string();668 .to_string();
666 assert!(669 assert!(
@@ -1092,7 +1095,7 @@ fn more_lanes_than_a_block_can_number_are_refused_by_name() {
1092 ..Default::default()1095 ..Default::default()
1093 },1096 },
1094 );1097 );
1095- let said = wait(&handle, Duration::from_secs(300))1098+ let said = wait(&handle, Duration::from_secs(1800))
1096 .expect_err("a file that cannot be numbered is not written")1099 .expect_err("a file that cannot be numbered is not written")
1097 .to_string();1100 .to_string();
1098 assert!(1101 assert!(