The long export waits ride out the binary's own load
Browse files at this commitc319ba2a3b7f8c88270ff157edcaaa11a4991fd6Parent: 8cbcb15- test
- the long export waits ride out the binary's own load
1 changed file +11 -11
- crates/engine/tests/export.rs +11 -11
crates/engine/tests/export.rsmodified+11 -11
| @@ -206,7 +206,7 @@ fn round_trip(name: &str, limit: Duration) { | |||
| 206 | #[test] | 206 | #[test] |
| 207 | fn exports_an_edited_timeline_in_software() { | 207 | fn exports_an_edited_timeline_in_software() { |
| 208 | let _seat = pin_software(); | 208 | let _seat = pin_software(); |
| 209 | - round_trip("sw", Duration::from_secs(120)); | 209 | + round_trip("sw", Duration::from_secs(600)); |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | /// Same trip through the plugin, and the only place the end-to-end hardware | 212 | /// Same trip through the plugin, and the only place the end-to-end hardware |
| @@ -265,7 +265,7 @@ fn exports_at_the_project_resolution_with_the_watched_geometry() { | |||
| 265 | }; | 265 | }; |
| 266 | let out = out_path("mixed"); | 266 | let out = out_path("mixed"); |
| 267 | let handle = engine::export::start(project, meta, &out, &ExportSettings::default()); | 267 | let handle = engine::export::start(project, meta, &out, &ExportSettings::default()); |
| 268 | - wait(&handle, Duration::from_secs(120)).expect("export"); | 268 | + wait(&handle, Duration::from_secs(600)).expect("export"); |
| 269 | 269 | ||
| 270 | let (written, _) = engine::demux::Demuxer::open(&out).expect("reopen export"); | 270 | let (written, _) = engine::demux::Demuxer::open(&out).expect("reopen export"); |
| 271 | assert_eq!( | 271 | assert_eq!( |
| @@ -339,7 +339,7 @@ fn exports_the_audio_stream_the_timeline_plays() { | |||
| 339 | .expect("a one-source project on stream 1"); | 339 | .expect("a one-source project on stream 1"); |
| 340 | let out = out_path("stream1"); | 340 | let out = out_path("stream1"); |
| 341 | let handle = engine::export::start(project, meta, &out, &ExportSettings::default()); | 341 | let handle = engine::export::start(project, meta, &out, &ExportSettings::default()); |
| 342 | - wait(&handle, Duration::from_secs(120)).expect("export"); | 342 | + wait(&handle, Duration::from_secs(600)).expect("export"); |
| 343 | 343 | ||
| 344 | let (audio, _) = engine::AudioSession::open(&out) | 344 | let (audio, _) = engine::AudioSession::open(&out) |
| 345 | .expect("reopen export audio") | 345 | .expect("reopen export audio") |
| @@ -482,7 +482,7 @@ fn multi_source_round_trip(name: &str, limit: Duration) { | |||
| 482 | #[test] | 482 | #[test] |
| 483 | fn exports_two_sources_as_one_timeline_in_software() { | 483 | fn exports_two_sources_as_one_timeline_in_software() { |
| 484 | let _seat = pin_software(); | 484 | let _seat = pin_software(); |
| 485 | - multi_source_round_trip("multi_sw", Duration::from_secs(180)); | 485 | + multi_source_round_trip("multi_sw", Duration::from_secs(900)); |
| 486 | } | 486 | } |
| 487 | 487 | ||
| 488 | #[test] | 488 | #[test] |
| @@ -510,7 +510,7 @@ fn a_higher_bitrate_writes_a_bigger_file() { | |||
| 510 | ..Default::default() | 510 | ..Default::default() |
| 511 | }; | 511 | }; |
| 512 | let handle = session.export_to_with(&out, &settings); | 512 | let handle = session.export_to_with(&out, &settings); |
| 513 | - wait(&handle, Duration::from_secs(180)).expect("export"); | 513 | + wait(&handle, Duration::from_secs(900)).expect("export"); |
| 514 | let size = std::fs::metadata(&out).expect("export exists").len(); | 514 | let size = std::fs::metadata(&out).expect("export exists").len(); |
| 515 | println!("{} Mbps: {size} bytes", bitrate / 1_000_000); | 515 | println!("{} Mbps: {size} bytes", bitrate / 1_000_000); |
| 516 | sizes.push(size); | 516 | sizes.push(size); |
| @@ -609,7 +609,7 @@ fn cancelling_after_the_last_frame_leaves_no_file() { | |||
| 609 | let started = Instant::now(); | 609 | let started = Instant::now(); |
| 610 | while handle.progress() < 0.9 && !handle.is_finished() { | 610 | while handle.progress() < 0.9 && !handle.is_finished() { |
| 611 | assert!( | 611 | assert!( |
| 612 | - started.elapsed() < Duration::from_secs(120), | 612 | + started.elapsed() < Duration::from_secs(600), |
| 613 | "export stalled" | 613 | "export stalled" |
| 614 | ); | 614 | ); |
| 615 | std::thread::sleep(Duration::from_millis(20)); | 615 | std::thread::sleep(Duration::from_millis(20)); |
| @@ -651,7 +651,7 @@ fn exports_audio_alongside_the_video() { | |||
| 651 | let out = out_path("av"); | 651 | let out = out_path("av"); |
| 652 | 652 | ||
| 653 | let handle = session.export_to(&out); | 653 | let handle = session.export_to(&out); |
| 654 | - wait(&handle, Duration::from_secs(120)).expect("export"); | 654 | + wait(&handle, Duration::from_secs(600)).expect("export"); |
| 655 | 655 | ||
| 656 | let file = File::open(&out).unwrap(); | 656 | let file = File::open(&out).unwrap(); |
| 657 | let size = file.metadata().unwrap().len(); | 657 | let size = file.metadata().unwrap().len(); |
| @@ -782,7 +782,7 @@ fn a_leading_audio_gap_keeps_the_sound_after_it_in_place() { | |||
| 782 | session.pause(); | 782 | session.pause(); |
| 783 | let out = out_path("leading_gap"); | 783 | let out = out_path("leading_gap"); |
| 784 | let handle = session.export_to(&out); | 784 | let handle = session.export_to(&out); |
| 785 | - wait(&handle, Duration::from_secs(180)).expect("export"); | 785 | + wait(&handle, Duration::from_secs(900)).expect("export"); |
| 786 | 786 | ||
| 787 | let (_, chunks) = engine::AudioSession::open(&out) | 787 | let (_, chunks) = engine::AudioSession::open(&out) |
| 788 | .expect("reopen export audio") | 788 | .expect("reopen export audio") |
| @@ -837,7 +837,7 @@ fn exports_a_gapped_timeline_as_black_and_silence() { | |||
| 837 | let out = out_path("gapped"); | 837 | let out = out_path("gapped"); |
| 838 | 838 | ||
| 839 | let handle = session.export_to(&out); | 839 | let handle = session.export_to(&out); |
| 840 | - wait(&handle, Duration::from_secs(180)).expect("export"); | 840 | + wait(&handle, Duration::from_secs(900)).expect("export"); |
| 841 | 841 | ||
| 842 | // Every frame is there, and the ones over the hole are black. | 842 | // Every frame is there, and the ones over the hole are black. |
| 843 | let (video, _) = engine::demux::Demuxer::open(&out).unwrap(); | 843 | let (video, _) = engine::demux::Demuxer::open(&out).unwrap(); |
| @@ -925,7 +925,7 @@ fn a_proxy_is_picture_only_every_frame_a_starting_point_and_cached() { | |||
| 925 | let started = Instant::now(); | 925 | let started = Instant::now(); |
| 926 | while !job.is_finished() { | 926 | while !job.is_finished() { |
| 927 | assert!( | 927 | assert!( |
| 928 | - started.elapsed() < Duration::from_secs(300), | 928 | + started.elapsed() < Duration::from_secs(900), |
| 929 | "the proxy did not finish: {:.0}% in", | 929 | "the proxy did not finish: {:.0}% in", |
| 930 | job.progress() * 100.0 | 930 | job.progress() * 100.0 |
| 931 | ); | 931 | ); |
| @@ -1162,7 +1162,7 @@ fn a_hardware_proxy_is_every_frame_a_starting_point_too() { | |||
| 1162 | let started = Instant::now(); | 1162 | let started = Instant::now(); |
| 1163 | while !job.is_finished() { | 1163 | while !job.is_finished() { |
| 1164 | assert!( | 1164 | assert!( |
| 1165 | - started.elapsed() < Duration::from_secs(300), | 1165 | + started.elapsed() < Duration::from_secs(900), |
| 1166 | "the proxy did not finish" | 1166 | "the proxy did not finish" |
| 1167 | ); | 1167 | ); |
| 1168 | std::thread::sleep(Duration::from_millis(20)); | 1168 | std::thread::sleep(Duration::from_millis(20)); |