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: repair the three main-inherited CI failures from today's merges
[._.]/ Adam Eivyec55a5065fbe
diff --git a/server/lib/fileUtils.test.js b/server/lib/fileUtils.test.jsindex 9e4c34004c..4b21616e08 100644--- a/server/lib/fileUtils.test.js+++ b/server/lib/fileUtils.test.js@@ -1381,11 +1381,13 @@ describe('fileUtils', () => {await atomicWrite(target, { durable: true });- expect(calls).toEqual([['writeFile', true], ['rename'], ['dirSync', tmpRoot]]);+ // Windows cannot open a directory for fsync, so syncDirectory skips it there.+ const expectedCalls = [['writeFile', true], ['rename'], ...(process.platform === 'win32' ? [] : [['dirSync', tmpRoot]])];+ expect(calls).toEqual(expectedCalls);expect(JSON.parse(readFileSync(target, 'utf8'))).toEqual({ durable: true });});- it('keeps a published write when the directory cannot be fsynced, warning once per directory', async () => {+ it.skipIf(process.platform === 'win32')('keeps a published write when the directory cannot be fsynced, warning once per directory', async () => {const warn = vi.spyOn(console, 'warn').mockImplementation(() => {});try {const target = join(tmpRoot, 'netfs.json');diff --git a/server/services/agentCliSpawning.test.js b/server/services/agentCliSpawning.test.jsindex 23992c5e3c..bf48fca239 100644--- a/server/services/agentCliSpawning.test.js+++ b/server/services/agentCliSpawning.test.js@@ -921,7 +921,11 @@ describe('stream error containment', () => {expect(JSON.parse(await fs.readFile(join(dir, 'state.json'), 'utf8')).lines).toEqual(['complete batch\n', 'later batch\n']);fakeProcess.emit('close', 0);- await vi.waitFor(() => expect(runSpawnerCompletionCleanup).toHaveBeenCalled());+ // Completion runs after the in-flight transcript write lands, and since+ // #12025 every atomicWrite fsyncs: the Windows runner needs more than+ // vi.waitFor's 1s default (observed 1045ms) while a never-called cleanup+ // still fails within the budget.+ await vi.waitFor(() => expect(runSpawnerCompletionCleanup).toHaveBeenCalled(), { timeout: 10_000 });} finally {finish();writeFileGuarded.mockResolvedValue(undefined);@@ -951,7 +955,11 @@ describe('stream error containment', () => {});const finish = async () => {fakeProcess.emit('close', 0);- await vi.waitFor(() => expect(runSpawnerCompletionCleanup).toHaveBeenCalled());+ // Completion runs after the in-flight transcript write lands, and since+ // #12025 every atomicWrite fsyncs: the Windows runner needs more than+ // vi.waitFor's 1s default (observed 1045ms) while a never-called cleanup+ // still fails within the budget.+ await vi.waitFor(() => expect(runSpawnerCompletionCleanup).toHaveBeenCalled(), { timeout: 10_000 });};const emitTextAndFlush = async text => {fakeProcess.stdout.emit('data', Buffer.from(text));diff --git a/server/test/jsonWritebackExceptions.js b/server/test/jsonWritebackExceptions.jsindex 09c9530f35..80cd003d27 100644--- a/server/test/jsonWritebackExceptions.js+++ b/server/test/jsonWritebackExceptions.js@@ -1,11 +1,6 @@// Reviewed lifecycle exceptions from #6970–#6976. Keys are service-relative// module + normalized first argument, never source positions. See JSON_WRITEBACK.md.export const JSON_WRITEBACK_EXCEPTIONS = [- {- key: 'fleetLlmUsage.js :: USAGE_FILE',- reason: 'The usage ledger hydrates with a non-strict read so a missing or damaged optional report does not prevent the host from serving; writes remain atomic.',- issue: '#7753',- },{"key": "agentRunReconciler.js :: path","reason": "No failed-read write-back: repair planning and its final re-read skip null run metadata."