Skip to content

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

fix: keep lifecycle fixture ownership beside process attribution (#13314)

[._.]/ Adam Eivy509c1776c207
diff --cc scripts/vitestTempRoot.test.js
index 4c44737ed7,919262b444..ee6b7128c4
--- a/scripts/vitestTempRoot.test.js
+++ b/scripts/vitestTempRoot.test.js
@@@ -6,13 -6,9 +6,14 @@@ import { join, relative } from 'node:pa
import { fileURLToPath } from 'node:url';
import { createVitestTempFixture, runWatchConfigRestart } from './lib/vitestTempRootFixture.js';
import { STALE_ROOT_AGE_MS, killTestBrowsersUnder, sweepStaleRunRoots, writeOwnerFile } from './lib/vitestStaleRunRoots.js';
+import { ownTestBodies, recordTempRootOwner } from '../server/lib/mockPathsDataRoot.js';
+ import { readTestProcesses } from './lib/testOwnedProcesses.js';
import { isProcessAlive } from '../server/test/processAlive.js';
+// Vitest can cancel a wrapper before its async body reaches finally.
+const owned = ownTestBodies(it);
+afterAll(() => owned.drain());
+
describe('real workspace runner temp lifecycle', () => {
const workspace = 'server';
describe.each(['vitest.config.js', 'vitest.config.db.js'])('%s', (config) => {