Compare commits
No commits in common. "16d88e951ba52346929ed7d200a47e8b5c0c112f" and "bca7294ec8e26e9781f813224866fe8aa1a25b32" have entirely different histories.
16d88e951b
...
bca7294ec8
5 changed files with 0 additions and 116 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
.git
|
|
||||||
.gitignore
|
|
||||||
.venv
|
|
||||||
docs/wiki
|
|
||||||
**/__pycache__
|
|
||||||
**/*.pyc
|
|
||||||
**/*.pyo
|
|
||||||
*.egg-info
|
|
||||||
.pytest_cache
|
|
||||||
.mypy_cache
|
|
||||||
.ruff_cache
|
|
||||||
.coverage
|
|
||||||
htmlcov
|
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
||||||
24
Dockerfile
24
Dockerfile
|
|
@ -1,24 +0,0 @@
|
||||||
FROM python:3.12-slim
|
|
||||||
|
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
||||||
PYTHONUNBUFFERED=1 \
|
|
||||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
|
||||||
PIP_NO_CACHE_DIR=1
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install build deps separately so the layer caches when source changes.
|
|
||||||
COPY pyproject.toml README.md ./
|
|
||||||
RUN pip install --upgrade pip
|
|
||||||
|
|
||||||
# Copy the project and install editable with dev extras.
|
|
||||||
COPY cli ./cli
|
|
||||||
COPY researchers ./researchers
|
|
||||||
COPY orchestrator ./orchestrator
|
|
||||||
COPY tests ./tests
|
|
||||||
RUN pip install -e ".[dev]"
|
|
||||||
|
|
||||||
# Trace files land here; mount a volume to persist across runs.
|
|
||||||
RUN mkdir -p /root/.marchwarden/traces
|
|
||||||
|
|
||||||
CMD ["pytest", "-q"]
|
|
||||||
14
README.md
14
README.md
|
|
@ -24,20 +24,6 @@ marchwarden ask "What are ideal crops for a garden in Utah?"
|
||||||
marchwarden replay <trace_id>
|
marchwarden replay <trace_id>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Docker test environment
|
|
||||||
|
|
||||||
A reproducible container is available for running the test suite and the
|
|
||||||
CLI without depending on the host's Python install:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scripts/docker-test.sh build # build the image
|
|
||||||
scripts/docker-test.sh test # run pytest
|
|
||||||
scripts/docker-test.sh ask "question" # run `marchwarden ask` end-to-end
|
|
||||||
# (mounts ~/secrets ro and ~/.marchwarden rw)
|
|
||||||
scripts/docker-test.sh replay <id> # replay a trace from ~/.marchwarden/traces
|
|
||||||
scripts/docker-test.sh shell # interactive bash in the container
|
|
||||||
```
|
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- **[Architecture](https://forgejo.labbity.unbiasedgeek.com/archeious/marchwarden/wiki/Architecture)** — system design, researcher contract, MCP flow
|
- **[Architecture](https://forgejo.labbity.unbiasedgeek.com/archeious/marchwarden/wiki/Architecture)** — system design, researcher contract, MCP flow
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@ dependencies = [
|
||||||
dev = [
|
dev = [
|
||||||
"pytest>=7.0",
|
"pytest>=7.0",
|
||||||
"pytest-cov>=4.0",
|
"pytest-cov>=4.0",
|
||||||
"pytest-asyncio>=0.21",
|
|
||||||
"black>=23.0",
|
"black>=23.0",
|
||||||
"ruff>=0.1.0",
|
"ruff>=0.1.0",
|
||||||
"mypy>=1.0",
|
"mypy>=1.0",
|
||||||
|
|
|
||||||
|
|
@ -1,62 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
# Helper for the dockerized test/run environment.
|
|
||||||
#
|
|
||||||
# Usage:
|
|
||||||
# scripts/docker-test.sh build Build the image
|
|
||||||
# scripts/docker-test.sh test Run pytest in the container
|
|
||||||
# scripts/docker-test.sh ask "..." Run `marchwarden ask` end-to-end
|
|
||||||
# (mounts ~/secrets ro and ~/.marchwarden rw)
|
|
||||||
# scripts/docker-test.sh shell Drop into a bash shell in the container
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
IMAGE="marchwarden-test"
|
|
||||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
||||||
|
|
||||||
cmd="${1:-test}"
|
|
||||||
shift || true
|
|
||||||
|
|
||||||
case "$cmd" in
|
|
||||||
build)
|
|
||||||
docker build -t "$IMAGE" "$ROOT"
|
|
||||||
;;
|
|
||||||
|
|
||||||
test)
|
|
||||||
docker run --rm -v "$ROOT:/app" "$IMAGE" pytest -q "$@"
|
|
||||||
;;
|
|
||||||
|
|
||||||
ask)
|
|
||||||
if [ ! -f "$HOME/secrets" ]; then
|
|
||||||
echo "error: ~/secrets not found on host" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
mkdir -p "$HOME/.marchwarden/traces"
|
|
||||||
docker run --rm -it \
|
|
||||||
-v "$ROOT:/app" \
|
|
||||||
-v "$HOME/secrets:/root/secrets:ro" \
|
|
||||||
-v "$HOME/.marchwarden:/root/.marchwarden" \
|
|
||||||
"$IMAGE" marchwarden ask "$@"
|
|
||||||
;;
|
|
||||||
|
|
||||||
replay)
|
|
||||||
mkdir -p "$HOME/.marchwarden/traces"
|
|
||||||
docker run --rm \
|
|
||||||
-v "$ROOT:/app" \
|
|
||||||
-v "$HOME/.marchwarden:/root/.marchwarden" \
|
|
||||||
"$IMAGE" marchwarden replay "$@"
|
|
||||||
;;
|
|
||||||
|
|
||||||
shell)
|
|
||||||
docker run --rm -it \
|
|
||||||
-v "$ROOT:/app" \
|
|
||||||
-v "$HOME/secrets:/root/secrets:ro" \
|
|
||||||
-v "$HOME/.marchwarden:/root/.marchwarden" \
|
|
||||||
"$IMAGE" bash
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
echo "unknown command: $cmd" >&2
|
|
||||||
echo "usage: $0 {build|test|ask|replay|shell}" >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
Loading…
Reference in a new issue