Deploy from a WSL checkout, from boilerplate 1679e88

When the checkout lives under \\wsl.localhost, step 1 runs its tests in the
distro through deploy/test-commit.sh and db.ps1 push makes its snapshot
there, because the .venv is a Linux one. pipeline/context.py narrows by
sys.platform so mypy passes on Linux. See boilerplate docs/wsl.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-26 19:43:50 +02:00
1 parent 36860f0cfe
commit 515d2250fc
5 files changed
+52 -4

No files matched your search

+7 -2
View File
@@ -19,6 +19,7 @@ import logging
import os
import signal
import subprocess
import sys
import tempfile
import time
from collections.abc import Callable, Sequence
@@ -168,8 +169,12 @@ def spawn(argv: Sequence[str], *, check: Callable[[], None] | None = None,
Started detached — its own process group, or Windows' equivalent — purely
so `kill_tree` has something to aim at.
"""
detach: dict[str, Any] = ({"creationflags": subprocess.CREATE_NEW_PROCESS_GROUP}
if os.name == "nt" else {"start_new_session": True})
# An `if`, because mypy narrows `sys.platform` in statements only.
detach: dict[str, Any]
if sys.platform == "win32":
detach = {"creationflags": subprocess.CREATE_NEW_PROCESS_GROUP}
else:
detach = {"start_new_session": True}
with tempfile.TemporaryFile() as out, tempfile.TemporaryFile() as err:
popen.setdefault("stdout", out)
popen.setdefault("stderr", err)