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: give the real Windows event-log query room on a loaded runner
Claude7ad81046de1d
diff --git a/scripts/ci-windows-crash-diagnostics.test.js b/scripts/ci-windows-crash-diagnostics.test.jsindex 336fab3aa2..d35dffb202 100644--- a/scripts/ci-windows-crash-diagnostics.test.js+++ b/scripts/ci-windows-crash-diagnostics.test.js@@ -85,10 +85,22 @@ describe.runIf(process.platform === 'win32')('real Windows PowerShell diagnosticit('can query the real Application Error provider with a bounded empty future window', async () => {const options = setup();- options.run = (command, args, spawnOptions) => bufferedSpawn(command, args, {- ...spawnOptions,- env: { ...spawnOptions.env, PORTOS_CRASH_UNTIL: new Date(Date.now() + 120_000).toISOString() },- });- expect(await reportWindowsCrashDiagnostics(Date.now() + 60_000, options)).toEqual({ outcome: 'no-events' });+ let spawned;+ options.run = async (command, args, spawnOptions) => {+ spawned = await bufferedSpawn(command, args, {+ ...spawnOptions,+ // The 10s production budget runs after the test step, on a quiet runner.+ // Here a cold powershell.exe + Get-WinEvent module load competes with+ // every vitest worker, and a timeout reads as 'unavailable' — that is+ // load, not the query semantics this case pins.+ timeoutMs: 25_000, // inside the 30s test budget, so the facts below still print+ env: { ...spawnOptions.env, PORTOS_CRASH_UNTIL: new Date(Date.now() + 120_000).toISOString() },+ });+ return spawned;+ };+ const result = await reportWindowsCrashDiagnostics(Date.now() + 60_000, options);+ // Bounded facts only: stderr can name the runner's machine or paths.+ expect(result, `timedOut=${spawned?.timedOut} code=${spawned?.code} stdoutBytes=${spawned?.stdout?.length}`)+ .toEqual({ outcome: 'no-events' });});});