From b893d54ff3e35c34fdb83ebcf819ef40ea0fdfbc Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 16 Aug 2026 14:17:01 +0200 Subject: [PATCH] refactor(ci): drop the unreachable sort fallback env_setting returns a non-empty process value, else the default.env value, else KeyError -- an empty process override falls back through the strip check in parser.py. INFINITO_DISCOVERY_SORT is declared non-empty, so the spec the ternary guarded against could never be falsy. Co-Authored-By: Claude Opus 5 (1M context) --- cli/meta/ci/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/meta/ci/query.py b/cli/meta/ci/query.py index 62c6a2d1c9..5ef68dc309 100644 --- a/cli/meta/ci/query.py +++ b/cli/meta/ci/query.py @@ -82,7 +82,7 @@ def sort_spec() -> str: """The discovery sort, behind a clones-last prefix so one representative per dna cluster stays ahead of the budget cut.""" spec = env_setting("INFINITO_DISCOVERY_SORT").strip() - return f"asc clone,{spec}" if spec else "asc clone" + return f"asc clone,{spec}" def _query_argv(