Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

Run the 20 CI-skipped Open Knowledge test files on CI (#5135)

Nick Gomez393ed028dddc
diff --git a/packages/app/tests/integration/conflict-aware-write-surfaces.test.ts b/packages/app/tests/integration/conflict-aware-write-surfaces.test.ts
index c1af17ff3..d0f17473f 100644
--- a/packages/app/tests/integration/conflict-aware-write-surfaces.test.ts
+++ b/packages/app/tests/integration/conflict-aware-write-surfaces.test.ts
@@ -393,9 +393,7 @@ describe('a conflict raised while the doc was unloaded still gates its first loa
}, 30_000);
});
-const describeBoot = process.env.CI ? describe.skip : describe;
-
-describeBoot('FR14: boot-time conflict admission from conflicts.json', () => {
+describe('FR14: boot-time conflict admission from conflicts.json', () => {
test('conflicts.json with entry X → the entry is listed + an immediate POST returns 409', async () => {
const cleanups: Array<() => Promise<void> | void> = [];
try {
diff --git a/packages/cli/src/utils/open-browser.test.ts b/packages/cli/src/utils/open-browser.test.ts
index 8fba832cc..bd0185c8c 100644
--- a/packages/cli/src/utils/open-browser.test.ts
+++ b/packages/cli/src/utils/open-browser.test.ts
@@ -1,4 +1,4 @@
-import { describe as _bunDescribe, afterEach, beforeEach, expect, it, vi } from 'vitest';
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { openBrowser } from './open-browser.ts';
const { execFileMock } = vi.hoisted(() => ({ execFileMock: vi.fn() }));
@@ -8,8 +8,6 @@ vi.mock('node:child_process', async (importOriginal) => {
return { ...actual, execFile: (...args: unknown[]) => execFileMock(...args) };
});
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
describe('openBrowser', () => {
const originalPlatform = process.platform;
@@ -73,7 +71,7 @@ describe('openBrowser', () => {
});
});
-_bunDescribe('openBrowser URL validation', () => {
+describe('openBrowser URL validation', () => {
const originalPlatform = process.platform;
beforeEach(() => {
diff --git a/packages/cli/tests/integration/detached-spawn-lifetime.test.ts b/packages/cli/tests/integration/detached-spawn-lifetime.test.ts
index 0d7d157ed..359396e2e 100644
--- a/packages/cli/tests/integration/detached-spawn-lifetime.test.ts
+++ b/packages/cli/tests/integration/detached-spawn-lifetime.test.ts
@@ -4,9 +4,7 @@ import { request as httpRequest } from 'node:http';
import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
import { setTimeout as wait } from 'node:timers/promises';
-import { describe as _describe, afterEach, beforeEach, expect, it } from 'vitest';
-
-const describe = process.env.CI ? _describe.skip : _describe;
+import { afterEach, beforeEach, describe, expect, it } from 'vitest';
function isProcessAlive(pid: number): boolean {
try {
diff --git a/packages/cli/tests/integration/mcp-host-config-race.test.ts b/packages/cli/tests/integration/mcp-host-config-race.test.ts
index fee894ef2..a1f574a06 100644
--- a/packages/cli/tests/integration/mcp-host-config-race.test.ts
+++ b/packages/cli/tests/integration/mcp-host-config-race.test.ts
@@ -41,9 +41,7 @@ function spawnConfigWriter(configPath: string, serverKey: string): Promise<Worke
});
}
-const describeCrossProcess = process.env.CI ? describe.skip : describe;
-
-describeCrossProcess('mcp host config — concurrent-write race', () => {
+describe('mcp host config — concurrent-write race', () => {
let testRoot: string;
let configPath: string;
diff --git a/packages/cli/tests/integration/multi-project-locks.test.ts b/packages/cli/tests/integration/multi-project-locks.test.ts
index ae325991a..af1920013 100644
--- a/packages/cli/tests/integration/multi-project-locks.test.ts
+++ b/packages/cli/tests/integration/multi-project-locks.test.ts
@@ -220,97 +220,94 @@ function stopLockWorker(handle: WorkerHandle): Promise<void> {
});
}
-(process.env.CI ? describe.skip : describe)(
- 'multi-project lock isolation — cross-process (A1)',
- () => {
- let testRoot: string;
- let workers: WorkerHandle[];
-
- beforeEach(() => {
- testRoot = resolve(
- tmpdir(),
- `multi-project-locks-xp-${Date.now()}-${Math.random().toString(36).slice(2)}`,
- );
- mkdirSync(testRoot, { recursive: true });
- workers = [];
- });
+describe('multi-project lock isolation — cross-process (A1)', () => {
+ let testRoot: string;
+ let workers: WorkerHandle[];
- afterEach(async () => {
- await Promise.all(workers.map(stopLockWorker));
- rmSync(testRoot, { recursive: true, force: true });
- });
+ beforeEach(() => {
+ testRoot = resolve(
+ tmpdir(),
+ `multi-project-locks-xp-${Date.now()}-${Math.random().toString(36).slice(2)}`,
+ );
+ mkdirSync(testRoot, { recursive: true });
+ workers = [];
+ });
- it('three concurrent worker processes each hold their own server lock (no cross-contamination)', async () => {
- const lockDirs = [1, 2, 3].map((i) => {
- const lockDir = join(testRoot, `project-${i}`, '.ok', LOCAL_DIR);
- mkdirSync(lockDir, { recursive: true });
- return { i, lockDir, serverPort: 52100 + i };
- });
+ afterEach(async () => {
+ await Promise.all(workers.map(stopLockWorker));
+ rmSync(testRoot, { recursive: true, force: true });
+ });
- const spawnResults = await Promise.allSettled(
- lockDirs.map(({ lockDir, serverPort }) => spawnLockWorker(lockDir, serverPort)),
- );
- workers = spawnResults.flatMap((result) =>
- result.status === 'fulfilled' ? [result.value] : [],
- );
- const failedSpawn = spawnResults.find(
- (result): result is PromiseRejectedResult => result.status === 'rejected',
- );
- if (failedSpawn) throw failedSpawn.reason;
+ it('three concurrent worker processes each hold their own server lock (no cross-contamination)', async () => {
+ const lockDirs = [1, 2, 3].map((i) => {
+ const lockDir = join(testRoot, `project-${i}`, '.ok', LOCAL_DIR);
+ mkdirSync(lockDir, { recursive: true });
+ return { i, lockDir, serverPort: 52100 + i };
+ });
- for (const w of workers) {
- expect(isProcessAlive(w.pid)).toBe(true);
- }
+ const spawnResults = await Promise.allSettled(
+ lockDirs.map(({ lockDir, serverPort }) => spawnLockWorker(lockDir, serverPort)),
+ );
+ workers = spawnResults.flatMap((result) =>
+ result.status === 'fulfilled' ? [result.value] : [],
+ );
+ const failedSpawn = spawnResults.find(
+ (result): result is PromiseRejectedResult => result.status === 'rejected',
+ );
+ if (failedSpawn) throw failedSpawn.reason;
- const workerPids = workers.map((w) => w.pid);
- expect(new Set(workerPids).size).toBe(3);
+ for (const w of workers) {
+ expect(isProcessAlive(w.pid)).toBe(true);
+ }
- for (const pid of workerPids) {
- expect(pid).not.toBe(process.pid);
- }
+ const workerPids = workers.map((w) => w.pid);
+ expect(new Set(workerPids).size).toBe(3);
- for (const w of workers) {
- const serverLockPath = join(w.lockDir, 'server.lock');
- expect(existsSync(serverLockPath)).toBe(true);
+ for (const pid of workerPids) {
+ expect(pid).not.toBe(process.pid);
+ }
- const serverLock = JSON.parse(readFileSync(serverLockPath, 'utf-8'));
- expect(serverLock.pid).toBe(w.pid);
- expect(serverLock.port).toBe(w.serverPort);
- }
+ for (const w of workers) {
+ const serverLockPath = join(w.lockDir, 'server.lock');
+ expect(existsSync(serverLockPath)).toBe(true);
- const allPorts = workers.map((w) => w.serverPort);
- expect(new Set(allPorts).size).toBe(3);
- });
+ const serverLock = JSON.parse(readFileSync(serverLockPath, 'utf-8'));
+ expect(serverLock.pid).toBe(w.pid);
+ expect(serverLock.port).toBe(w.serverPort);
+ }
- it('a fourth worker against an already-held lockDir collides on the live foreign pid (US-001 collision branch)', async () => {
- const lockDir = join(testRoot, 'shared-project', '.ok', LOCAL_DIR);
- mkdirSync(lockDir, { recursive: true });
+ const allPorts = workers.map((w) => w.serverPort);
+ expect(new Set(allPorts).size).toBe(3);
+ });
- const holder = await spawnLockWorker(lockDir, 52200);
- workers.push(holder);
+ it('a fourth worker against an already-held lockDir collides on the live foreign pid (US-001 collision branch)', async () => {
+ const lockDir = join(testRoot, 'shared-project', '.ok', LOCAL_DIR);
+ mkdirSync(lockDir, { recursive: true });
- const colliderProc = nativeSpawn(
- 'node',
- ['--import', 'tsx', LOCK_WORKER_PATH, lockDir, '52201'],
- {
- stdio: ['ignore', 'pipe', 'pipe'],
- },
- );
- let colliderStderr = '';
- colliderProc.stderr?.on('data', (chunk) => {
- colliderStderr += chunk.toString('utf-8');
- });
- const colliderExit = await new Promise<number>((resolveExit) => {
- colliderProc.once('exit', (code) => resolveExit(code ?? -1));
- });
-
- expect(colliderExit).not.toBe(0);
- expect(colliderStderr).toContain('acquire failed');
- expect(colliderStderr).toContain(`pid ${holder.pid}`);
-
- const serverLock = JSON.parse(readFileSync(join(lockDir, 'server.lock'), 'utf-8'));
- expect(serverLock.pid).toBe(holder.pid);
- expect(serverLock.port).toBe(52200);
+ const holder = await spawnLockWorker(lockDir, 52200);
+ workers.push(holder);
+
+ const colliderProc = nativeSpawn(
+ 'node',
+ ['--import', 'tsx', LOCK_WORKER_PATH, lockDir, '52201'],
+ {
+ stdio: ['ignore', 'pipe', 'pipe'],
+ },
+ );
+ let colliderStderr = '';
+ colliderProc.stderr?.on('data', (chunk) => {
+ colliderStderr += chunk.toString('utf-8');
+ });
+ const colliderExit = await new Promise<number>((resolveExit) => {
+ colliderProc.once('exit', (code) => resolveExit(code ?? -1));
});
- },
-);
+
+ expect(colliderExit).not.toBe(0);
+ expect(colliderStderr).toContain('acquire failed');
+ expect(colliderStderr).toContain(`pid ${holder.pid}`);
+
+ const serverLock = JSON.parse(readFileSync(join(lockDir, 'server.lock'), 'utf-8'));
+ expect(serverLock.pid).toBe(holder.pid);
+ expect(serverLock.port).toBe(52200);
+ });
+});
diff --git a/packages/server/src/boot.test.ts b/packages/server/src/boot.test.ts
index a0f6d8be1..c0517967d 100644
--- a/packages/server/src/boot.test.ts
+++ b/packages/server/src/boot.test.ts
@@ -1,9 +1,3 @@
-import { describe as _bunDescribe, afterEach, beforeEach, expect, test, vi } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
-const describeEvenOnCI = _bunDescribe;
-
import { execFile } from 'node:child_process';
import { existsSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs';
import { mkdtemp, rm } from 'node:fs/promises';
@@ -19,6 +13,7 @@ import {
InMemorySpanExporter,
SimpleSpanProcessor,
} from '@opentelemetry/sdk-trace-base';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { bootServer } from './boot.ts';
import { getBootTimings } from './boot-timings.ts';
import { ConfigSchema } from './config/schema.ts';
@@ -442,7 +437,7 @@ describe('bootServer — reactShellDistDir end-to-end HTTP shape', () => {
});
});
-describeEvenOnCI('bootServer — MCP internal RPC stays loopback under a public externalUrl', () => {
+describe('bootServer — MCP internal RPC stays loopback under a public externalUrl', () => {
const MCP_PROTOCOL_VERSION = '2025-06-18';
const UNREACHABLE_EXTERNAL_URL = 'https://prd-8062-unreachable.invalid';
@@ -871,7 +866,7 @@ describe('parseKeepaliveConnectionId', () => {
});
});
-describeEvenOnCI('bootServer — exposure consent interlock', () => {
+describe('bootServer — exposure consent interlock', () => {
async function tryBoot(
server: Record<string, unknown>,
passServerRuntime = false,
@@ -967,7 +962,7 @@ describeEvenOnCI('bootServer — exposure consent interlock', () => {
});
});
-describeEvenOnCI('bootServer — multi-address bind', () => {
+describe('bootServer — multi-address bind', () => {
test('every bind address answers on the same port; teardown closes all listeners', async () => {
const contentDir = mkdtempSync(resolve(tmpDir, 'multibind-'));
await execFileAsync('git', ['init', '--initial-branch=main', contentDir]);
diff --git a/packages/server/src/mcp-local-dispatch-parity.test.ts b/packages/server/src/mcp-local-dispatch-parity.test.ts
index 2bc99d338..bf50f26b9 100644
--- a/packages/server/src/mcp-local-dispatch-parity.test.ts
+++ b/packages/server/src/mcp-local-dispatch-parity.test.ts
@@ -1,7 +1,3 @@
-import { describe as _bunDescribe, afterAll, beforeAll, expect, test } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdirSync, writeFileSync } from 'node:fs';
import { mkdtemp, rm } from 'node:fs/promises';
import { createServer, type Server } from 'node:http';
@@ -10,6 +6,7 @@ import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
import { OK_DIR } from '@inkeep/open-knowledge-core';
import type { Client } from '@modelcontextprotocol/sdk/client/index.js';
+import { afterAll, beforeAll, describe, expect, test } from 'vitest';
import { type BootedServer, bootServer } from './boot.ts';
import { ConfigSchema } from './config/schema.ts';
import { connectMcpTestClient } from './mcp/client.test-helper.ts';
diff --git a/packages/server/src/mcp/logger.test.ts b/packages/server/src/mcp/logger.test.ts
index e1a10676c..3e5eeaaca 100644
--- a/packages/server/src/mcp/logger.test.ts
+++ b/packages/server/src/mcp/logger.test.ts
@@ -1,10 +1,7 @@
-import { describe as _bunDescribe, afterEach, beforeEach, expect, test, vi } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join, resolve } from 'node:path';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { getCurrentMcpLogger, McpLogger, runWithMcpLogger } from './logger.ts';
describe('McpLogger', () => {
diff --git a/packages/server/src/mcp/tool-logging.test.ts b/packages/server/src/mcp/tool-logging.test.ts
index 30e2f9a00..955a7085d 100644
--- a/packages/server/src/mcp/tool-logging.test.ts
+++ b/packages/server/src/mcp/tool-logging.test.ts
@@ -1,6 +1,4 @@
-import { describe as _bunDescribe, afterEach, beforeEach, expect, test, vi } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { getCurrentMcpLogger, McpLogger } from './logger.ts';
import { createLoggedServer, wrapToolHandlerForLogging } from './tool-logging.ts';
diff --git a/packages/server/src/mcp/tools/audit.test.ts b/packages/server/src/mcp/tools/audit.test.ts
index f277fca23..7ea1eb6e0 100644
--- a/packages/server/src/mcp/tools/audit.test.ts
+++ b/packages/server/src/mcp/tools/audit.test.ts
@@ -1,15 +1,7 @@
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import type { AuditDeps } from './audit.ts';
import { DESCRIPTION, register } from './audit.ts';
@@ -22,10 +14,6 @@ import {
HOCUSPOCUS_NOT_RUNNING_ERROR,
} from './shared.ts';
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
-const describeEvenOnCI = _bunDescribe;
-
const BASE_CONFIG: Config = ConfigSchema.parse({});
interface ToolResult {
@@ -369,7 +357,7 @@ describe('audit — unified project audit', () => {
});
});
-describeEvenOnCI('audit — broken-link suppression', () => {
+describe('audit — broken-link suppression', () => {
test('a filtered clean audit exposes a content-free suppression marker', async () => {
const { server, getTool } = createFakeServer();
register(server, makeDeps(baseUrl, tmpDir));
diff --git a/packages/server/src/mcp/tools/checkpoint.test.ts b/packages/server/src/mcp/tools/checkpoint.test.ts
index c65537fd7..1907580ac 100644
--- a/packages/server/src/mcp/tools/checkpoint.test.ts
+++ b/packages/server/src/mcp/tools/checkpoint.test.ts
@@ -1,22 +1,13 @@
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { type CheckpointDeps, DESCRIPTION, register } from './checkpoint.ts';
import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';
import type { ServerInstance } from './shared.ts';
import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
const BASE_CONFIG: Config = ConfigSchema.parse({});
interface ToolResult {
diff --git a/packages/server/src/mcp/tools/config.test.ts b/packages/server/src/mcp/tools/config.test.ts
index aec72e573..4e7a5a27f 100644
--- a/packages/server/src/mcp/tools/config.test.ts
+++ b/packages/server/src/mcp/tools/config.test.ts
@@ -1,10 +1,7 @@
-import { describe as _bunDescribe, expect, test } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdirSync, mkdtempSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
+import { describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { register } from './config.ts';
import type { ServerInstance } from './shared.ts';
diff --git a/packages/server/src/mcp/tools/history.test.ts b/packages/server/src/mcp/tools/history.test.ts
index de29d2501..351fd0314 100644
--- a/packages/server/src/mcp/tools/history.test.ts
+++ b/packages/server/src/mcp/tools/history.test.ts
@@ -1,22 +1,11 @@
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
-import { bindTestUiServerLock } from './preview-url-test-helpers.ts';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';
import { type GetHistoryDeps, register } from './history.ts';
+import { bindTestUiServerLock } from './preview-url-test-helpers.ts';
import type { ServerInstance } from './shared.ts';
const BASE_CONFIG: Config = ConfigSchema.parse({});
diff --git a/packages/server/src/mcp/tools/links.test.ts b/packages/server/src/mcp/tools/links.test.ts
index 4b44796b3..d4b400ace 100644
--- a/packages/server/src/mcp/tools/links.test.ts
+++ b/packages/server/src/mcp/tools/links.test.ts
@@ -1,15 +1,7 @@
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';
import { DESCRIPTION, type LinksDeps, register } from './links.ts';
@@ -17,8 +9,6 @@ import { bindTestUiServerLock } from './preview-url-test-helpers.ts';
import type { ServerInstance } from './shared.ts';
import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
const BASE_CONFIG: Config = ConfigSchema.parse({});
interface ToolResult {
diff --git a/packages/server/src/mcp/tools/lint.test.ts b/packages/server/src/mcp/tools/lint.test.ts
index 14b4b7f8c..76b139dbf 100644
--- a/packages/server/src/mcp/tools/lint.test.ts
+++ b/packages/server/src/mcp/tools/lint.test.ts
@@ -1,15 +1,7 @@
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';
import { DESCRIPTION, type LintDeps, register } from './lint.ts';
@@ -20,8 +12,6 @@ import {
HOCUSPOCUS_NOT_RUNNING_ERROR,
} from './shared.ts';
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
const BASE_CONFIG: Config = ConfigSchema.parse({});
interface ToolResult {
diff --git a/packages/server/src/mcp/tools/preview-url.test.ts b/packages/server/src/mcp/tools/preview-url.test.ts
index 0a45e3822..f9fbce5f6 100644
--- a/packages/server/src/mcp/tools/preview-url.test.ts
+++ b/packages/server/src/mcp/tools/preview-url.test.ts
@@ -1,11 +1,8 @@
-import { describe as _bunDescribe, afterEach, beforeEach, expect, test } from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
import { LOCAL_DIR, OK_DIR } from '@inkeep/open-knowledge-core';
+import { afterEach, beforeEach, describe, expect, test } from 'vitest';
import {
acquireServerLock,
markServerLockDraining,
diff --git a/packages/server/src/mcp/tools/restore-version.test.ts b/packages/server/src/mcp/tools/restore-version.test.ts
index 8d1640fde..6f39bff8c 100644
--- a/packages/server/src/mcp/tools/restore-version.test.ts
+++ b/packages/server/src/mcp/tools/restore-version.test.ts
@@ -1,22 +1,13 @@
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import { type FetchTestServer, startFetchTestServer } from './fetch-test-server.test-helper.ts';
import { DESCRIPTION, type RestoreVersionDeps, register } from './restore-version.ts';
import type { ServerInstance } from './shared.ts';
import { HOCUSPOCUS_NOT_RUNNING_ERROR } from './shared.ts';
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
const BASE_CONFIG: Config = ConfigSchema.parse({});
const SHA = '0123456789abcdef0123456789abcdef01234567';
diff --git a/packages/server/src/mcp/tools/summary-passthrough.test.ts b/packages/server/src/mcp/tools/summary-passthrough.test.ts
index ec7055fc7..9e56ef719 100644
--- a/packages/server/src/mcp/tools/summary-passthrough.test.ts
+++ b/packages/server/src/mcp/tools/summary-passthrough.test.ts
@@ -1,18 +1,7 @@
-import {
- describe as _bunDescribe,
- afterAll,
- afterEach,
- beforeAll,
- beforeEach,
- expect,
- test,
-} from 'vitest';
-
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
import { mkdtemp, rm } from 'node:fs/promises';
import { tmpdir } from 'node:os';
import { resolve } from 'node:path';
+import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'vitest';
import type { z } from 'zod';
import { type Config, ConfigSchema } from '../../config/schema.ts';
import type { AgentIdentity } from '../agent-identity.ts';
diff --git a/packages/server/src/persistence-ytext-truth.test.ts b/packages/server/src/persistence-ytext-truth.test.ts
index ebe683c61..eba0717cc 100644
--- a/packages/server/src/persistence-ytext-truth.test.ts
+++ b/packages/server/src/persistence-ytext-truth.test.ts
@@ -1,12 +1,9 @@
-import { describe as _vitestDescribe, afterEach, beforeEach, expect, test, vi } from 'vitest';
-
-const describe = process.env.CI ? _vitestDescribe.skip : _vitestDescribe;
-
import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { MarkdownManager, sharedExtensions } from '@inkeep/open-knowledge-core';
import simpleGit from 'simple-git';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { __resetQuiescenceForTests, __setQuiescentOverrideForTests } from './bridge-quiescence.ts';
import { __resetBridgeWatchdogForTests } from './bridge-watchdog.ts';
import { getMetrics, resetMetrics } from './metrics.ts';
diff --git a/packages/server/src/serialize-doc-vs-git-show-byte-equality.test.ts b/packages/server/src/serialize-doc-vs-git-show-byte-equality.test.ts
index 7272d4497..cf49525eb 100644
--- a/packages/server/src/serialize-doc-vs-git-show-byte-equality.test.ts
+++ b/packages/server/src/serialize-doc-vs-git-show-byte-equality.test.ts
@@ -3,7 +3,7 @@ import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { prependFrontmatter, stripFrontmatter } from '@inkeep/open-knowledge-core';
import simpleGit from 'simple-git';
-import { describe as _bunDescribe, afterEach, beforeEach, expect, test, vi } from 'vitest';
+import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
import { __resetQuiescenceForTests } from './bridge-quiescence.ts';
import { resetMetrics } from './metrics.ts';
import { createServer } from './server-factory.ts';
@@ -20,8 +20,6 @@ function reconstructSerializeDoc(
return prependFrontmatter(frontmatter, body);
}
-const describe = process.env.CI ? _bunDescribe.skip : _bunDescribe;
-
vi.setConfig({ testTimeout: 20_000, hookTimeout: 20_000 });
interface Fixture {
diff --git a/scripts/known-reds-allowlist.json b/scripts/known-reds-allowlist.json
index 3269aa5d7..74edf9a07 100644
--- a/scripts/known-reds-allowlist.json
+++ b/scripts/known-reds-allowlist.json
@@ -1,144 +1,3 @@
{
- "ciSkips": [
- {
- "path": "packages/app/tests/integration/conflict-aware-write-surfaces.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips the suites declared through `describeBoot` on CI. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/cli/src/utils/open-browser.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/cli/tests/integration/detached-spawn-lifetime.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_describe.skip` there. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/cli/tests/integration/mcp-host-config-race.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips the suites declared through `describeCrossProcess` on CI. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/cli/tests/integration/multi-project-locks.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips this describe on CI. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/boot.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp-local-dispatch-parity.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/logger.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tool-logging.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/audit.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/checkpoint.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/config.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/history.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/links.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/lint.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/preview-url.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/restore-version.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/mcp/tools/summary-passthrough.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/persistence-ytext-truth.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_vitestDescribe.skip` there. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- },
- {
- "path": "packages/server/src/serialize-doc-vs-git-show-byte-equality.test.ts",
- "condition": "process.env.CI",
- "owner": "known-reds",
- "until": "2026-12-15",
- "reason": "Skips every describe in the file on CI: `describe` is rebound to `_bunDescribe.skip` there, a guard kept from the Bun migration. The known-reds cleanup runs it on CI, pins any deterministic red and quarantines any flake."
- }
- ]
+ "ciSkips": []
}