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: isolate cleanup ownership inventory and remove duplicate scheduler bindings
[._.]/ Adam Eivy8215e9237a76
diff --git a/scripts/browser-fidelity.test.js b/scripts/browser-fidelity.test.jsindex 0b02c70c92..bfd574729c 100644--- a/scripts/browser-fidelity.test.js+++ b/scripts/browser-fidelity.test.js@@ -5,6 +5,7 @@ import { spawnSync } from 'node:child_process';import { afterEach, describe, expect, it, vi } from 'vitest';import { publishBrowserFidelity } from './browser-fidelity.js';import { BROWSER_FIDELITY_TESTS, BROWSER_FIDELITY_FILES } from './lib/browserTestProfiles.js';+import * as ownedProcesses from './lib/testOwnedProcesses.js';const head = 'a'.repeat(40), base = 'b'.repeat(40), merge = 'c'.repeat(40), tree = 'd'.repeat(40);const roots = [];@@ -88,7 +89,13 @@ describe('local fidelity publication through the existing runner and status bounexpect(existsSync(join(dirname(failed.seen.diagnostics), '.owner.pid'))).toBe(true);// Simulate the owning process having exited.writeFileSync(join(dirname(failed.seen.diagnostics), '.owner.pid'), '2147483646 0\n');- await publishBrowserFidelity(fixture().options);+ // Reclamation also requires a complete inventory; unrelated host processes+ // may have unreadable ownership metadata on the machine running this test.+ const inventory = vi.spyOn(ownedProcesses, 'readTestProcesses').mockReturnValue([+ { pid: process.pid, ppid: process.ppid, args: [], env: {} },+ ]);+ try { await publishBrowserFidelity(fixture().options); }+ finally { inventory.mockRestore(); }expect(existsSync(dirname(failed.seen.diagnostics))).toBe(false);});diff --git a/server/services/taskSchedule.test.js b/server/services/taskSchedule.test.jsindex 5c46affc3a..a6a43044fd 100644--- a/server/services/taskSchedule.test.js+++ b/server/services/taskSchedule.test.js@@ -2,11 +2,6 @@ vi.mock('../lib/retirementCheckoutObservation.js', () => ({ isCurrentRetirementCimport { isCurrentRetirementCheckout } from '../lib/retirementCheckoutObservation.js';import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'-vi.mock('./branchReconcileInventoryPrune.js', async importOriginal => ({- ...await importOriginal(), findGoneInventoryRows: vi.fn(async () => []),-}));-import { findGoneInventoryRows } from './branchReconcileInventoryPrune.js';-vi.mock('./cosEvents.js', () => ({cosEvents: { emit: vi.fn() },emitLog: vi.fn()@@ -217,7 +212,6 @@ import { parseCronToNextRun } from './eventScheduler.js'import { addNotification, exists as notificationExists, removeByMetadata } from './notifications.js'import { isInstanceFeatureEnabled } from './instanceFeatures.js'import { inputsUnchangedSince } from './taskInputGate.js'-import { getAppById } from './apps.js'const mockSchedule = ({ tasks = {}, executions = {}, templates = [], onDemandRequests = [] } = {}) => {readJSONFile.mockResolvedValue({ version: 2, tasks, executions, templates, onDemandRequests })