From 1213004e5a656f5104172e25b0c1c02896a47c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 12 Sep 2026 22:15:43 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(engine):=20the=20every-conta?= =?UTF-8?q?iner=20seek=20witness=20sanitizes=20VE=5FSW=20at=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The AV1 witness lane's comment rewrite dropped the remove_var the test kept at its top, and sibling tests leak VE_SW=1 by design before it runs alphabetically: under the leaked pin the plugin-only HEVC fixtures refuse at open and the documented full run fails 11/1 at test_hevc.mp4. The sanitizer is back, with the leak named and the --test-threads=1 note that makes it safe. --- crates/engine/tests/hw_decode.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/engine/tests/hw_decode.rs b/crates/engine/tests/hw_decode.rs index 139b9c3..c876e95 100644 --- a/crates/engine/tests/hw_decode.rs +++ b/crates/engine/tests/hw_decode.rs @@ -201,9 +201,13 @@ fn seek_matches_linear() { #[test] #[ignore = "needs libengine_hw.so and a VA-API driver"] fn seek_matches_linear_every_container() { - // The hardware path for these, including AV1's fixture: the point is the - // seek against the same seat a linear decode ran on, which the tests - // below pin for the software seat. + // Sanitize at entry: sibling tests leak `VE_SW=1` by design and run before + // this one alphabetically, and a leaked pin makes the plugin-only HEVC + // fixtures refuse at open. The hardware path for these, including AV1's + // fixture: the point is the seek against the same seat a linear decode ran + // on, which the tests below pin for the software seat. SAFETY: + // --test-threads=1, which the documented invocation keeps. + unsafe { std::env::remove_var("VE_SW") }; for name in [ "test_baseline.mp4", "test_high.mp4",