You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(conformance): port gateway-behavior cases from the Python SDK E2E suites #6137
#5624 deletes e2e/python/test_{exec_admission,sandbox_api,sandbox_exec_python,workspace_api}.py because sdk-python runs copies of them. Those copies aren't coverage for core:
They run against a pinned core release (OPENSHELL_CORE_REF = "v0.1.10" in sdk-python's mise.toml).
sdk-python's e2e job isn't part of its required ci check.
Only sdk-python changes and core release bumps trigger them. No core PR does.
16 of the 18 tests check gateway behavior. The 2 exec_python tests check SDK behavior and stay in sdk-python.
Gateway behavior without a conformance test
Exec admission. Retrying an exec with the same request_id returns REQUEST_OUTCOME_UNCERTAIN while it runs, REQUEST_ID_PAYLOAD_MISMATCH for a changed payload, and REQUEST_STREAM_UNAVAILABLE after it exits. The command never runs twice, including after an exec timeout or a client cancel. Cover both ExecSandbox and ExecSandboxInteractive.
Sandbox mutation replay. Replayed Create, Stop, Start, UpdateConfig and Delete requests return the original result with openshell-replayed, and a replayed delete leaves a same-name replacement alone.
Workspace replay. Request IDs are scoped to each workspace name, a payload mismatch returns FAILED_PRECONDITION, and a replayed delete leaves a replacement alone.
GetWorkspace and DeleteWorkspace on a missing workspace return NOT_FOUND. Conformance checks only that workspace get fails.
Workspace labels round-trip.
Interactive exec.tty decides whether the fds are TTYs, and stdout and stderr stay separate without one. Output and the exit status still arrive after the client closes its input.
Sandbox listing. A workspace's list excludes other workspaces' sandboxes, and all_workspaces includes both. Conformance checks this only for templates.
The gateway generates a sandbox name when the request has none.
Unit tests in crates/openshell-server/src/grpc/mutation_replay/ cover some of the replay logic, but not with a real supervisor or driver.
Proposed work
Add these cases to tests/suites/conformance, so every driver lane runs them.
Activity