[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
db76fc27e5
commit
a67dd44fae
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue