From 6b1680c8da65e1d850492d6b33f017a68ca9f798 Mon Sep 17 00:00:00 2001 From: yetuge <182123929+yetuge@users.noreply.github.com> Date: Sat, 21 Nov 2026 19:00:22 +0800 Subject: [PATCH] test(goal): skip the shared-handoff case on non-POSIX hosts (#8462) present_shared_artifact answers 'requires POSIX' on a native Windows host, so the shared-artifact delivery case fails there while the sibling test_shared_artifact_handoff.py already skips non-POSIX. Guard the helper so every shared-handoff caller skips on Windows; POSIX runs are unchanged. --- backend/tests/test_goal_delivery_consistency.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/tests/test_goal_delivery_consistency.py b/backend/tests/test_goal_delivery_consistency.py index f6b2455caf..a3eeb9ef2a 100644 --- a/backend/tests/test_goal_delivery_consistency.py +++ b/backend/tests/test_goal_delivery_consistency.py @@ -2,6 +2,7 @@ import importlib import json +import os from types import SimpleNamespace from unittest.mock import AsyncMock from uuid import uuid4 @@ -53,6 +54,11 @@ async def _run_goal_delivery( tool body. Its deterministic node emits the tool callbacks normally supplied by the agent; only the evaluator model response is fixed, without provider/network access. """ + if shared_handoff and os.name != "posix": + # The handoff tool answers "requires POSIX" on a native Windows host, so + # the shared-artifact case cannot exercise delivery there. The sibling + # test_shared_artifact_handoff.py skips non-POSIX for the same reason. + pytest.skip("shared artifact handoff requires POSIX") checkpointer = InMemorySaver() failed_terminal_writes = []