Refresh deploy/ and bin/ from the boilerplate at 09e144d (the release split between the distro and Windows, wsl-setup, the server config, USER 1000, python:3.15-slim) with roledesk's facts put back: no frontend stage, desk, plugins and seed copied, the extras passkeys, embeddings and llm, roles as the table the backup and the importer require, bin/pull.sh and bin/worker.sh with their profile commands, and Install Server.md and Install WSL.md as copies in place of the five old deployment docs

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-27 11:11:19 +01:00
1 parent 83e965dfeb
commit a1f281a23a
40 files changed
+2226 -1287

No files matched your search

+16 -9
View File
@@ -1,17 +1,24 @@
#!/bin/sh
# Test one commit in a throwaway worktree, with the checkout's Linux .venv.
# 1-test-and-promote.ps1 runs this through wsl.exe when the checkout lives
# inside WSL, where the .venv has no Windows python.exe to call. The gates are
# the same as in that script; keep the two lists in step.
# 1-test-and-promote.sh runs this from the checkout root. PYTHON, when set (the
# PYTHON line of release.env), names the interpreter instead of .venv/bin/python.
# The gates are this project's: roledesk has no `frontend/`, so there is no npm
# step, and ruff and mypy stay commented out as the release has run them so far.
# Usage: sh deploy/test-commit.sh <commit> (from the checkout root)
# sh deploy/test-commit.sh --here (the working tree as it is, no worktree: bin/check.sh)
set -eu
root=$(pwd)
python="$root/.venv/bin/python"
[ -x "$python" ] || { echo "no interpreter at $python - run uv sync" >&2; exit 1; }
base=$(mktemp -d /tmp/test-commit-XXXXXXXX)
tree="$base/tree"
trap 'git -C "$root" worktree remove --force "$tree" 2>/dev/null; rm -rf "$base"' EXIT
git worktree add --detach "$tree" "$1" >/dev/null
python="${PYTHON:-$root/.venv/bin/python}"
[ -x "$python" ] || { echo "no interpreter at $python - run uv sync --all-extras, or set PYTHON in deploy/release.env" >&2; exit 1; }
target="${1:?usage: sh deploy/test-commit.sh <commit>|--here}"
if [ "$target" = "--here" ]; then
tree="$root"
else
base=$(mktemp -d /tmp/release-test-XXXXXXXX)
tree="$base/tree"
trap 'git -C "$root" worktree remove --force "$tree" 2>/dev/null; rm -rf "$base"' EXIT
git worktree add --detach "$tree" "$target" >/dev/null
fi
cd "$tree"
"$python" -m pytest -q
# "$python" -m ruff check .