Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test([issue-4863]): pin the llama-server binary in the idle-unload tests
Adam Eivye6314886c8e5
diff --git a/server/services/llamaServerManager.test.js b/server/services/llamaServerManager.test.jsindex 8d972f805f..2defbe8956 100644--- a/server/services/llamaServerManager.test.js+++ b/server/services/llamaServerManager.test.js@@ -1075,6 +1075,14 @@ describe('llamaServerManager', () => {// MTPLX. The flag is recent, and an older build rejects an unknown flag and// exits before it binds — hence the capability probe these tests pin.describe('idle unload', () => {+ // Pin the binary like every other lifecycle test here: CI has no llama.cpp+ // installed, so an unmocked `findCommandOnPath` makes `startLlamaServer`+ // refuse before it ever builds a launch line — a failure that reproduces+ // nowhere on a developer machine that has the real binary on PATH.+ beforeEach(() => {+ vi.spyOn(processEnv, 'findCommandOnPath').mockReturnValue('/usr/local/bin/llama-server');+ });+/** Pin `llama-server --help` output for the capability probe. */const mockHelp = (text) => vi.spyOn(childProcess, 'execFile').mockImplementation((_bin, _args, _opts, cb) => { cb(null, text, ''); return fakeSpawnProcess(); });