From d5d4687304ab99361a9dfb2c76124edb0f5be6bd Mon Sep 17 00:00:00 2001 From: Chris Busillo Date: Wed, 27 May 2026 14:18:11 -0400 Subject: [PATCH] Fix auto-boost bakeoff metric support --- mediaforce/encoding/bakeoff.py | 2 +- tests/test_bakeoff.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mediaforce/encoding/bakeoff.py b/mediaforce/encoding/bakeoff.py index 4516f0b..aa5f7f0 100644 --- a/mediaforce/encoding/bakeoff.py +++ b/mediaforce/encoding/bakeoff.py @@ -245,7 +245,7 @@ def _engine_candidate( category="scene-aware-candidate", maturity="research-candidate", required_tools=("Auto-Boost-Essential script", "SVT-AV1-Essential or compatible SVT-AV1"), - metric_support=("script-defined"), + metric_support=("script-defined",), command=tuple(command), command_status="research-template-needs-script-validation", sources=("https://github.com/nekotrix/auto-boost-algorithm/tree/main/Auto-Boost-Essential",), diff --git a/tests/test_bakeoff.py b/tests/test_bakeoff.py index 570af31..f135313 100644 --- a/tests/test_bakeoff.py +++ b/tests/test_bakeoff.py @@ -77,6 +77,8 @@ def test_build_bakeoff_plan_uses_size_first_defaults_and_candidates(self) -> Non self.assertIn("ssimulacra2", av1an["command"]) self.assertEqual(av1an["command_status"], "template-needs-host-validation") self.assertIn("https://rust-av.github.io/Av1an/Features/TargetQuality", av1an["sources"]) + auto_boost = item["engines"][3] + self.assertEqual(auto_boost["metric_support"], ["script-defined"]) def test_build_bakeoff_plan_can_limit_engines(self) -> None: config = load_config(Path("config/defaults.toml"))