Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
ci: run the computer daemon's Go unit tests
shoudi zheng0a8cc3b6989c
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 26cd1fb0..72f944e0 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,10 +1,11 @@name: CI# The repository gate runs on every pull request; each app's fast check runs-# only when its paths change. Pushes to main run every check. The heavier-# suites (node-services, voice-runtime, computer, integration, containers and-# E2E) stay local: run `make check BASE=<target-ref>` and the targets in the-# Makefile before you open a pull request.+# only when its paths change. Pushes to main run every check. CI runs the+# computer daemon's Go unit tests; the rest of check-computer (TS and process+# tests) and the heavier suites (node-services, voice-runtime, integration,+# containers and E2E) stay local: run `make check BASE=<target-ref>` and the+# targets in the Makefile before you open a pull request.on:pull_request:push:@@ -33,6 +34,7 @@ jobs:desktop: ${{ steps.filter.outputs.desktop }}contracts: ${{ steps.filter.outputs.contracts }}teamhub: ${{ steps.filter.outputs.teamhub }}+ computer-go: ${{ steps.filter.outputs.computer-go }}steps:- uses: actions/checkout@v4with:@@ -62,6 +64,7 @@ jobs:match "$node|^(apps/desktop/|apps/computer/local-daemon/|apps/computer/package\.json|packages/|contracts/generated/typescript/)" desktopmatch "$node|^contracts/" contractsmatch '^(apps/teamhub/|skills/|contracts/generated/go/|contracts/fixtures/|\.golangci\.yml|Makefile|\.github/)' teamhub+ match '^(apps/computer/local-daemon/|contracts/generated/go/runnergateway/|Makefile|\.github/)' computer-gorepository-gate:runs-on: ubuntu-latest@@ -79,7 +82,16 @@ jobs:fail-fast: falsematrix:app:- [web, packages, teamhub-cli, installer, desktop, contracts, teamhub]+ [+ web,+ packages,+ teamhub-cli,+ installer,+ desktop,+ contracts,+ teamhub,+ computer-go,+ ]steps:- name: Skip unchanged appif: needs.changes.outputs[matrix.app] != 'true'diff --git a/Makefile b/Makefileindex 76026944..e490d45a 100644--- a/Makefile+++ b/Makefile@@ -1,7 +1,7 @@.PHONY: contracts-generate contracts-verify computer-release-local source-archive source-dependencies.PHONY: check-teamhub-cli check-installer check-desktop.PHONY: check check-heavy-lane check-web-.PHONY: check-computer check-computer-release check-node-services check-voice-runtime+.PHONY: check-computer check-computer-go check-computer-release check-node-services check-voice-runtime.PHONY: check-teamhub check-teamhub-tooling check-teamhub-integration.PHONY: check-teamhub-integration-process check-teamhub-integration-migrations.PHONY: check-contracts check-packages check-scripts check-scripts-fast check-scripts-heavy check-docs check-repository check-repository-gate@@ -85,10 +85,7 @@ check-computer:pnpm --filter @linger/computer lint$(COMPUTER_TEST_RUNNER) pnpm --filter @linger/computer test$(MAKE) -C apps/teamhub lint-go-daemon- cd apps/computer/local-daemon && go test ./... -run '^$$'- cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./internal/platform/...- cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./cmd/linger-computer-daemon ./cmd/linger-computer-launcher ./internal/computercli ./internal/computerconfig ./internal/daemon ./internal/linger/context ./internal/linger/assignment ./internal/linger/control ./internal/linger/registration ./internal/linger/localskills ./internal/linger/mcpproxy ./internal/linger/transport ./internal/linger/runtimehistory ./internal/linger/localtools ./internal/process ./internal/workspace ./internal/provider ./internal/provider/redact ./internal/permission- cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./internal/provider/native+ $(MAKE) check-computer-goLINGER_GO_LOCAL_DAEMON_TEST=1 $(COMPUTER_TEST_RUNNER) pnpm --filter @linger/node-services exec vitest run --project agent tests/agent/runner-gateway/go-local-daemon-process.test.ts --maxWorkers=2check-teamhub-cli:@@ -109,6 +106,13 @@ check-desktop:# The Go daemon that packaging bundles, for every platform the app ships on.cd apps/desktop && node scripts/build-daemon.mjs --all+# The Go unit tests of check-computer, which CI runs on its own.+check-computer-go:+ cd apps/computer/local-daemon && go test ./... -run '^$$'+ cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./internal/platform/...+ cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./cmd/linger-computer-daemon ./cmd/linger-computer-launcher ./internal/computercli ./internal/computerconfig ./internal/daemon ./internal/linger/context ./internal/linger/assignment ./internal/linger/control ./internal/linger/registration ./internal/linger/localskills ./internal/linger/mcpproxy ./internal/linger/transport ./internal/linger/runtimehistory ./internal/linger/localtools ./internal/process ./internal/workspace ./internal/provider ./internal/provider/redact ./internal/permission+ cd apps/computer/local-daemon && $(COMPUTER_TEST_RUNNER) go test ./internal/provider/native+check-computer-release:pnpm vitest run --no-file-parallelism $(SCRIPT_COMPUTER_RELEASE_TEST)diff --git a/apps/computer/AGENTS.md b/apps/computer/AGENTS.mdindex 38c8f3ca..dc41599c 100644--- a/apps/computer/AGENTS.md+++ b/apps/computer/AGENTS.md@@ -86,7 +86,9 @@source, package, shared Runtime, or generated Runner Gateway changes. Run `make check-scripts-heavy` only for installer,uninstaller, release generator, publish, or image paths;ordinary Computer tests, fixtures, documentation, and example configuration- do not require the full installer lifecycle gate. CI does not replace the+ do not require the full installer lifecycle gate. CI runs+ `make check-computer-go` (the daemon's Go unit tests) when `local-daemon/`+ changes; the rest of `check-computer` stays local. CI does not replace thecorresponding local verification.- When installer or lifecycle behavior changes, verify it under a temporaryHOME (`make check-scripts-heavy`). Preserve install, safety-failure, rollback, and release