diff --git a/studio/backend/run.py b/studio/backend/run.py index d0d279ce04..8e4f34f45c 100644 --- a/studio/backend/run.py +++ b/studio/backend/run.py @@ -1363,7 +1363,6 @@ def run_server( def _warm_sandbox_probe(): try: from core.inference.sandbox import sandbox_available - sandbox_available() except Exception as exc: # never let the probe crash server startup logger.debug("sandbox availability probe failed at startup: %s", exc) diff --git a/studio/backend/tests/test_sandbox.py b/studio/backend/tests/test_sandbox.py index 81389460ef..3724704ae0 100644 --- a/studio/backend/tests/test_sandbox.py +++ b/studio/backend/tests/test_sandbox.py @@ -59,7 +59,10 @@ def sandboxed_workdir(tmp_path, monkeypatch): # that flag is set, an unavailable sandbox here is a real regression, so # fail. Otherwise (local dev, or a runner that genuinely cannot create # unprivileged user namespaces) skip rather than turn the run red. - if os.environ.get("UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE", "").strip().lower() in _TRUTHY_CI_VALUES: + if ( + os.environ.get("UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE", "").strip().lower() + in _TRUTHY_CI_VALUES + ): pytest.fail( "sandbox unavailable but UNSLOTH_STUDIO_SANDBOX_CI_ENFORCE=1: the " "CI runner confirmed bubblewrap/sandbox-exec works, so this "