#!/usr/bin/env bash # Every check that must pass before a commit. # # The daemon tests start a daemon with `gleam run`, so they stay outside # `gleam test`: a nested build would wait on the build lock this suite holds. # test/manual is opt-in and not run here; those harnesses need a provider, # a PTY, or artifacts from an earlier benchmark run. set -euo pipefail cd "$(dirname "$0")" export ALBEDO_NO_BROWSER=1 gleam format --check src test cargo test --release --locked --manifest-path native/render/Cargo.toml native/render/install.sh gleam test python3 test/harness/python_plugin_test.py python3 test/harness/commands_plugin_test.py python3 test/harness/files_plugin_test.py python3 test/harness/view_plugin_test.py python3 test/harness/api_docs_test.py python3 test/harness/trace_test.py python3 test/harness/job_wake_test.py python3 test/harness/remote_kernel_test.py python3 test/harness/remote_plugin_test.py if [ -f cli/go.mod ]; then (cd cli && go vet ./...) (cd cli && go test ./...) fi [ -d cli/node_modules ] || npm --prefix cli install npm --prefix cli run typecheck npm --prefix cli test python3 test/daemon/integration.py python3 test/daemon/extensions_integration.py python3 test/daemon/proxy_integration.py python3 test/daemon/mcp_integration.py python3 test/daemon/context_integration.py python3 test/daemon/kernel_reset_integration.py python3 test/daemon/idle_reap_integration.py python3 test/daemon/job_wake_integration.py