* fix(ci): skip unrelated required checks cleanly Matrix jobs had to start no-op runners to preserve interpolated required-check names. Static named jobs let GitHub report genuine skipped conclusions while keeping those names stable. * fix(ci): gate changes to install patching script * fix(ci): route cross-package test contracts narrowly * fix(ci): keep routed contracts merge-blocking * fix(server): exclude nested test utilities from builds * fix(ci): cover app-owned native and browser domains * refactor(ci): align tests with runtime domains Own browser specs, desktop specs, and Electron-only app code by stable directories so PR routing does not depend on filename conventions. Keep desktop integration coverage inside the required desktop check. * fix(ci): keep routing and desktop suites isolated The routing regression must run before dependency installation, and desktop Vitest must not collect Playwright-owned specs. * fix(ci): isolate desktop e2e runtime * perf(test): isolate Playwright workers * perf(test): parallelize Playwright within specs * fix(test): keep Playwright file scheduling * fix(test): share dynamic Metro fixture * fix(test): preserve own-host restart fixtures * fix(ci): preserve routed contracts after rebase * Stabilize Playwright wheel-scroll assertions
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
export const TEST_HOST_LABEL = "localhost";
|
|
|
|
export const TEST_PROVIDER_PREFERENCES = {
|
|
claude: { model: "haiku" },
|
|
codex: { model: "gpt-5.4-mini", thinkingOptionId: "low" },
|
|
} as const;
|
|
|
|
export function buildDirectTcpConnection(endpoint: string) {
|
|
return {
|
|
id: `direct:${endpoint}`,
|
|
type: "directTcp" as const,
|
|
endpoint,
|
|
};
|
|
}
|
|
|
|
export function buildSeededHost(input: {
|
|
serverId: string;
|
|
endpoint: string;
|
|
label?: string;
|
|
nowIso: string;
|
|
}) {
|
|
const connection = buildDirectTcpConnection(input.endpoint);
|
|
return {
|
|
serverId: input.serverId,
|
|
label: input.label ?? TEST_HOST_LABEL,
|
|
connections: [connection],
|
|
preferredConnectionId: connection.id,
|
|
createdAt: input.nowIso,
|
|
updatedAt: input.nowIso,
|
|
};
|
|
}
|
|
|
|
export const TEST_MOCK_PROVIDER_PREFERENCES = {
|
|
...TEST_PROVIDER_PREFERENCES,
|
|
mock: { model: "ten-second-stream" },
|
|
} as const;
|
|
|
|
export function buildCreateAgentPreferences(serverId: string) {
|
|
return {
|
|
serverId,
|
|
provider: "mock" as const,
|
|
providerPreferences: TEST_MOCK_PROVIDER_PREFERENCES,
|
|
};
|
|
}
|