tests.system.common.ai.example_sandbox_toolset_modal

End-to-end system test for SandboxToolset with the Modal backend.

Needs Modal credentials on the worker: modal token new locally, or MODAL_TOKEN_ID and MODAL_TOKEN_SECRET in the environment.

Covers what only a live sandbox can show: that the four tools agree on one filesystem, that a non-zero exit is output rather than a failure, that a command hitting its deadline leaves the sandbox and its files intact (which is where Modal differs from sbx), that the default spec really does deny egress, that none of Airflow’s own environment crosses the boundary, and that teardown terminates the sandbox. A second task checks the address allowlist: a listed address connects on any port, an unlisted one is dropped, and hostnames still resolve.

Attributes

ENV_ID

DAG_ID

MARKER

STATE_PATH

ABSOLUTE_STATE_PATH

dag

test_run

Functions

example_sandbox_toolset_modal()

Module Contents

tests.system.common.ai.example_sandbox_toolset_modal.ENV_ID[source]
tests.system.common.ai.example_sandbox_toolset_modal.DAG_ID[source]
tests.system.common.ai.example_sandbox_toolset_modal.MARKER = 'boundary-ok'[source]
tests.system.common.ai.example_sandbox_toolset_modal.STATE_PATH = 'state.txt'[source]
tests.system.common.ai.example_sandbox_toolset_modal.ABSOLUTE_STATE_PATH = '/workspace/state.txt'[source]
tests.system.common.ai.example_sandbox_toolset_modal.example_sandbox_toolset_modal()[source]
tests.system.common.ai.example_sandbox_toolset_modal.dag = None[source]
tests.system.common.ai.example_sandbox_toolset_modal.test_run[source]

Was this entry helpful?