Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
# Test execution
[test.sh](../test.sh) is the pre-commit gate. With no arguments it selects
Python end-to-end scenarios affected by the change and runs Go end-to-end tests
for CLI changes. `./test.sh --full` runs all end-to-end scenarios and the web
check. Manual tests under `test/manual` are opt-in.
## Gate and resource limits
[test/quick.sh](../test/quick.sh) runs formatting, type, lint, generated-code,
and Go vet checks before the suites. The gate builds a daemon snapshot and
launches suites concurrently. Its end-to-end selection and web checks depend on
the changed paths or `--full`. See [test.sh](../test.sh) for that selection and
[Gleam lint](gleam-lint.md) for lint profiles.
[test/resources.py](../test/resources.py) calculates concurrency limits from CPU
and available memory. It reserves one quarter of memory and rejects a plan with
less than 1 GiB available. `ALBEDO_TEST_*_JOBS` variables can override the
calculated limits. These limits control concurrency, not process memory
allocations.
## Fixture teardown
[test/e2e/harness.py](../test/e2e/harness.py) owns test daemons and fixtures.
`peer_daemon(name, prepare=None)` starts a separate daemon for a test.
`finish_test` cleans up peers and registered resources. Use the shared harness
for daemon scenarios. See [storage migrations](migrations.md) for upgrade
coverage.
A test daemon stops when the suite that started it exits, through
`ALBEDO_PARENT_PID`. A daemon that a scenario installs as a service drops that
variable, so the scenario's own cleanup must stop it. When the gate ends,
[test/reap-daemons.sh](../test/reap-daemons.sh) waits for detached kernels to
finish their grace period, then stops any process still running from the gate's
snapshot and fails the gate, naming each process's `ALBEDO_HOME`. Fix the
scenario that owns that home. Run the script on the scratch root to clear
processes left by an interrupted run. That also stops the daemons of a gate
still running in another checkout.
## Offline Antigravity scenarios
[`antigravity_test.py`](..…