From 904bc6988fd8e855c565de7fa65b223847101ed0 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Sat, 22 Aug 2026 09:55:50 +0900 Subject: [PATCH] test: stabilize release integration tests --- integration_tests/openai/test_execution_controls.py | 3 ++- integration_tests/security/test_local_sandbox_isolation.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/integration_tests/openai/test_execution_controls.py b/integration_tests/openai/test_execution_controls.py index f0807fa7..e2db0872 100644 --- a/integration_tests/openai/test_execution_controls.py +++ b/integration_tests/openai/test_execution_controls.py @@ -1,6 +1,7 @@ from __future__ import annotations import asyncio +import re from pathlib import Path from typing import Any, cast @@ -205,7 +206,7 @@ async def test_session_merge_and_model_input_filter_have_distinct_persistence_bo assert callback_inputs[0][0] >= 2 assert callback_inputs[0][1] == "PLACEHOLDER_NEW_INPUT" assert filter_inputs == ["What release word did I provide? Reply only with that word."] - assert result.final_output == "FILTERED:JASPER" + assert re.fullmatch(r"FILTERED:\s*JASPER", result.final_output) assert any("What release word" in str(item.get("content", "")) for item in persisted) assert not any("PLACEHOLDER_NEW_INPUT" in str(item.get("content", "")) for item in persisted) diff --git a/integration_tests/security/test_local_sandbox_isolation.py b/integration_tests/security/test_local_sandbox_isolation.py index ddcc5ef4..fd932787 100644 --- a/integration_tests/security/test_local_sandbox_isolation.py +++ b/integration_tests/security/test_local_sandbox_isolation.py @@ -158,6 +158,7 @@ async def test_runner_owned_local_sandbox_cannot_inspect_trusted_client_credenti exposed_ports: tuple[int, ...] = (), network_mode: Literal["none"] | None = None, session_id: uuid.UUID | None = None, + labels: dict[str, str] | None = None, ) -> Any: container = await super()._create_container( image, @@ -165,6 +166,7 @@ async def test_runner_owned_local_sandbox_cannot_inspect_trusted_client_credenti exposed_ports=exposed_ports, network_mode=network_mode, session_id=session_id, + labels=labels, ) container_id = container.id assert container_id is not None