Simplify Go installation and support standard OpenCode releases
This commit is contained in:
@@ -1,52 +1,26 @@
|
||||
# Installation verification
|
||||
# Verification scope
|
||||
|
||||
Executed on macOS (arm64), using an isolated prefix and ports 18080/18090;
|
||||
the development database and services were not targets of these checks.
|
||||
Regression commands:
|
||||
|
||||
- `go test -race -count=1 ./...`: passed, including fresh empty database,
|
||||
template catalog/create-only protection, workspace allowlisting and symlink
|
||||
rejection, multiline prompt, and run-state regressions.
|
||||
- `go vet ./...`: passed.
|
||||
- `python3 -m unittest discover -s scripts -p 'test_*.py'`: 14 passed (including
|
||||
unchanged argument forwarding to the shared CLI).
|
||||
- `./install.sh --yes --no-autostart --prefix <isolated> --bin-dir <isolated>`:
|
||||
installed native binaries plus isolated Docker ntfy, with private credentials.
|
||||
- Isolated `pipelines doctor`: both health endpoints and host OpenCode API passed.
|
||||
- Actual pseudo-terminal check (`check-install-cli.py` in the session's temporary
|
||||
storage): rendered template browser, editor return without automatic submission,
|
||||
explicit submission, fuzzy CLI selection, multiline composer, and supplied
|
||||
name/prompt confirmation passed.
|
||||
- Isolated `pipelines restart`, retained-data uninstall, reinstall, and a second
|
||||
terminal check: passed; the submitted pipeline survived reinstall.
|
||||
- Authenticated HTTP publication and phone-reader polling: passed. Actual Android
|
||||
app reception is **not tested**.
|
||||
```sh
|
||||
go test -race -count=1 ./...
|
||||
go vet ./...
|
||||
python3 -m unittest discover -s scripts -p 'test_*.py'
|
||||
```
|
||||
|
||||
Full model-driven repository changes, launchd autostart, Linux systemd, privileged
|
||||
`--system-command`, and automatic npm CLI installation are **not tested**.
|
||||
Existing Go-file edit-scope restrictions still apply.
|
||||
Optional no-inference stable OpenCode checks:
|
||||
|
||||
## CLI authoring checks
|
||||
```sh
|
||||
PIPELINES_TEST_OPENCODE_V1=/path/to/opencode \
|
||||
go test ./internal/opencode ./internal/author -run TestStable -count=1 -v
|
||||
```
|
||||
|
||||
- `check-author-cli.py` (session temporary storage): isolated installed help,
|
||||
JSON draft/validate/submit/export/history, and real OpenCode session/skill
|
||||
activation passed. Interactive launch arguments were captured without a model turn.
|
||||
- `check-author-picker.py`: actual terminal fuzzy `edit` selection, draft creation,
|
||||
and real skill preload passed, again without a model turn.
|
||||
- CLI/server regression tests cover stale-version rejection, invalid submission
|
||||
rejection even with `--force`, create-only collisions, headless run idempotency,
|
||||
inspection/cancellation, and bounded waiting that leaves an active run intact
|
||||
on timeout. Execution is controlled in these tests, not a live model.
|
||||
The stable checks use isolated home/config/data/cache directories; they never
|
||||
copy login credentials or invoke a model. They exercise session creation, explicit
|
||||
model selection, stored scoped permissions, abort on the same owned service,
|
||||
session deletion, and authoring instruction preload with `noReply=true`.
|
||||
|
||||
Full interactive model-driven pipeline authoring is **not tested**.
|
||||
|
||||
## Compiled Go command
|
||||
|
||||
- `GOBIN=<isolated> go install ./cmd/pipelines ./cmd/server ./cmd/tui`: passed.
|
||||
- Source installer now uses `go install`; isolated installation and retained-data
|
||||
reinstall passed. The command symlink resolved to a Mach-O Go binary, not a script.
|
||||
- Compiled command `help`, `list --json`, README three-stage example validation /
|
||||
submission, `doctor`, and `restart`: passed against isolated services.
|
||||
- A separately Go-installed CLI selected the same installation using
|
||||
`PIPELINES_PREFIX` and read the retained pipeline successfully.
|
||||
|
||||
Privileged `/usr/local/bin` linking, launchd, and Linux remain **not tested**.
|
||||
Native generation/assistant completion parsing is regression-tested against a
|
||||
controlled HTTP server. Full live inference, permission enforcement by real model
|
||||
tool calls, cancellation during inference, optional Docker deployment, privileged
|
||||
system-wide copying, and OS service-manager registration are **not tested**.
|
||||
|
||||
Reference in New Issue
Block a user