The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(tenancy): pin the four cells red on base as strict xfails naming their fix PRs
teknium1404cdc9ab4b9
diff --git a/tests/e2e/core/tenancy/test_routing_truth_table.py b/tests/e2e/core/tenancy/test_routing_truth_table.pyindex ea153146232..da003ff5518 100644--- a/tests/e2e/core/tenancy/test_routing_truth_table.py+++ b/tests/e2e/core/tenancy/test_routing_truth_table.py@@ -292,7 +292,19 @@ def cli_outcomes(tmp_path_factory: pytest.TempPathFactory) -> dict[str, Any]:return {cid: fut for cid, fut in futures.items()}[email protected]("case", CASES, ids=[c.id for c in CASES])+# Real production bugs on base, fixed on test/core-tenancy and landing as their own PRs.+# strict: each cell flips red (XPASS) once its fix is in, so the mark comes off with it.+KNOWN_BUGS = {+ "bare_custom_without_base_url_fails_fast": pytest.mark.xfail(+ strict=True, raises=AssertionError,+ reason="bare `provider: custom` with no endpoint falls through to OpenRouter and ships the "+ "OPENAI_BASE_URL-bound OPENAI_API_KEY there (fix: fix/cred-leak-foreign-hosts)"),+}++[email protected]("case", [+ pytest.param(c, id=c.id, marks=[KNOWN_BUGS[c.id]] if c.id in KNOWN_BUGS else [])+ for c in CASES])def test_cli_routing_truth_table(case: Case, cli_outcomes: dict[str, Any]) -> None:fleet, outcomes = cli_outcomes[case.id].result(timeout=900)for i, out in enumerate(outcomes):@@ -330,6 +342,12 @@ class Switch:keyless: bool = False # the host may also see NO credential (withholding a key is not a leak)+ strict=True, raises=AssertionError,+ reason="leg 5: `/model <id> --provider X` adopts an alias's endpoint+key for the same model "+ "(fix: fix/model-switch-explicit-provider-alias); leg 6: the pre-request Anthropic "+ "credential refresh puts ANTHROPIC_API_KEY on an alias's foreign host "+ "(fix: fix/cred-leak-foreign-hosts). Flips once both land.")def test_tui_gateway_model_switch_routing(tmp_path: Path) -> None:"""One live session walks the switch matrix; after every switch the next turn lands onexactly the selected host with exactly its key, and nothing reaches any other host."""diff --git a/tests/e2e/core/tenancy/test_two_tenant_desktop_backend.py b/tests/e2e/core/tenancy/test_two_tenant_desktop_backend.pyindex 250b8abc835..0acb081ad26 100644--- a/tests/e2e/core/tenancy/test_two_tenant_desktop_backend.py+++ b/tests/e2e/core/tenancy/test_two_tenant_desktop_backend.py@@ -93,6 +93,12 @@ def _await_cron(tenants: dict[str, H.Tenant], fires: int) -> None:f"cron fire #{fires} in every profile")+ strict=True, raises=AssertionError,+ reason="session.create / the first state.db row use the launch profile's model and "+ "model.save_key writes the launch profile's .env (fix: fix/tui-profile-scope-save-key-model); "+ "gateway.run's import-time config bridge writes a secondary session's terminal.* into the "+ "process env, red ~6/7 runs (fix: fix/multiplex-terminal-env-scope). Flips once all land.")def test_desktop_backend_never_crosses_tenants(fleet) -> None:root, tenants, backends = fleetdiff --git a/tests/e2e/core/tenancy/test_two_tenant_gateway.py b/tests/e2e/core/tenancy/test_two_tenant_gateway.pyindex 5d5de20d8a0..32152f0b385 100644--- a/tests/e2e/core/tenancy/test_two_tenant_gateway.py+++ b/tests/e2e/core/tenancy/test_two_tenant_gateway.py@@ -151,6 +151,11 @@ def _await_cron(tenants: dict[str, H.Tenant], at_least: int) -> None:f"cron fire #{at_least} in every profile")+ strict=True, raises=AssertionError,+ reason="phase 1: session-less work (cron) for a routed profile keys the shared 'default' "+ "terminal env, so alpha/beta cron tool calls inherit default's .env, cwd and shell "+ "state (fix: fix/multiplex-terminal-env-scope)")def test_multiplexed_gateway_never_crosses_tenants(fleet) -> None:root, tenants, gw = fleethome = root / "home"