46 lines
2.2 KiB
Markdown
46 lines
2.2 KiB
Markdown
# Verification scope
|
|
|
|
Regression commands:
|
|
|
|
```sh
|
|
go test -race -count=1 ./...
|
|
go vet ./...
|
|
python3 -m unittest discover -s scripts -p 'test_*.py'
|
|
```
|
|
|
|
Optional no-inference stable OpenCode checks:
|
|
|
|
```sh
|
|
PIPELINES_TEST_OPENCODE_V1=/path/to/opencode \
|
|
go test ./internal/opencode ./internal/author -run TestStable -count=1 -v
|
|
```
|
|
|
|
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`.
|
|
|
|
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**.
|
|
|
|
Autostart regression tests exercise both service-definition formats, scoped
|
|
environment capture, escaping, private files, refusal to overwrite unmanaged
|
|
files/symlinks, preview without side effects, and lifecycle calls using a mock OS
|
|
manager. The installed macOS CLI's preview was validated with `plutil -lint`.
|
|
`GOOS=linux GOARCH=amd64 go build ./cmd/...` also passed. Actual launchd/systemd
|
|
registration, logout/login restart, and Linux lingering remain **not tested**.
|
|
|
|
An isolated installed-CLI check started the server in one directory and invoked
|
|
`pipelines run` from two other directories. With a mock OpenCode executable, both
|
|
runs completed and recorded/executed in the client invocation directory. The
|
|
autostart preview required no repository configuration and passed `plutil -lint`.
|
|
CLI and dashboard regression tests also check invocation-directory selection.
|
|
|
|
The installation tests were also executed as a Linux binary in Debian with
|
|
systemd installed. The native `systemd-analyze verify` regression passed for the
|
|
generated unit, including a directory containing spaces, quotes, and `%`/`$`.
|
|
This reproduced and fixed the invalid quoted `WorkingDirectory` setting. A
|
|
container syntax check does not prove live user-service startup or login restart.
|