Add lab/ scaffolding for resource-light local testing - #166
Open
MyDirdyHobby wants to merge 1 commit into
Open
Conversation
Adds two helper files for testing CHAOS in an isolated, low-footprint setup without spinning up a full VM: - lab/docker-compose.yml: builds the existing Dockerfile, runs the server in SQLite mode, persists database/temp under lab/data/ (already covered by .gitignore). - lab/chaos-client.wsb: Windows Sandbox config with 2GB RAM, clipboard/printer/audio/video off, and a read-only mapped folder for the built client binary. Sandbox is discarded on close, so every run starts clean. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a small
lab/directory with two helper files that make it easierto test CHAOS locally without spinning up a full VM. Nothing in the main
project is touched.
lab/docker-compose.yml— builds the existingDockerfile, runsthe server in SQLite mode on port 8080, and persists
database/andtemp/underlab/data/(already covered by the project.gitignore).One-command server:
cd lab && docker compose up -d --build.lab/chaos-client.wsb— a Windows Sandbox config for testing theWindows client. 2 GB RAM, GPU/audio/video/clipboard/printer disabled,
ProtectedClienton. A read-only mapped folder(
C:\chaos-lab\client→ Desktop) lets you drop the built clientbinary into a disposable sandbox; closing the window discards
everything, so each run starts clean.
Why
Right now contributors have to set up a VM by hand to test client
behaviour safely. This makes the smallest reasonable lab setup a
two-file checkin so it's reproducible and version-controlled.
Notes for reviewers
lab/..wsbrequires Windows 10/11 Pro/Enterprise with the WindowsSandbox optional feature enabled (
Optionalfeatures.exe).lab/data/databaseandlab/data/temp,which match the existing
.gitignorerules (database/,temp/).Test plan
cd lab && docker compose up -d --buildbrings the server up on http://localhost:8080admin/adminworksdocker compose downstops cleanly; data persists inlab/data/chaos-client.wsbon a Windows host opens a sandbox with the mapped client folder on the desktop🤖 Generated with Claude Code