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.
The snapcompact tests in `gleam test` render frames through `albedo-render`. The
daemon looks for it in `priv/bin`, then on `PATH`. The gate installs it with
[native/render/install.sh](../native/render/install.sh) before its suites. When
`gleam test` runs alone and finds no renderer, its entry point,
[test/albedo_test.gleam](../test/albedo_test.gleam), runs that script first. The
script needs `cargo` from `nix develop`. Run it again after changing
`native/render`, because `gleam test` does not rebuild a renderer that is
already installed.
[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.
## Expected reports in `gleam test`
Some tests provoke failure paths on purpose, and the daemon code they drive logs
those failures. A passing run prints these lines, each from the named test:
- `listener was killed`, `listener did not start: port taken`, and
`giving the listener up` come from
`a_bounded_listener_stops_after_its_failed_restarts_test` in
[listener_test](../test/daemon/listener_test.gleam).
- `kernel_cleanup_failed` with `plugin cleanup did not finish within…