Skip unrelated required checks without losing their names (#2542)
* 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
This commit is contained in:
@@ -169,7 +169,7 @@ export async function createTempDirs(): Promise<{ paseoHome: string; workDir: st
|
||||
* Wait for daemon to be ready by running `paseo agent ls`
|
||||
* This connects via WebSocket and ensures the daemon is responsive
|
||||
*/
|
||||
async function probeDaemonReady(port: number): Promise<boolean> {
|
||||
async function probeDaemonReady(port: number, env?: NodeJS.ProcessEnv): Promise<boolean> {
|
||||
try {
|
||||
const { exitCode } = await runPaseoCli(
|
||||
{
|
||||
@@ -182,6 +182,7 @@ async function probeDaemonReady(port: number): Promise<boolean> {
|
||||
stop: async () => {},
|
||||
},
|
||||
["agent", "ls"],
|
||||
{ env },
|
||||
);
|
||||
return exitCode === 0;
|
||||
} catch {
|
||||
@@ -189,11 +190,15 @@ async function probeDaemonReady(port: number): Promise<boolean> {
|
||||
}
|
||||
}
|
||||
|
||||
async function waitForDaemonReady(port: number, timeout = 30000): Promise<void> {
|
||||
async function waitForDaemonReady(
|
||||
port: number,
|
||||
timeout = 30000,
|
||||
env?: NodeJS.ProcessEnv,
|
||||
): Promise<void> {
|
||||
const deadline = Date.now() + timeout;
|
||||
|
||||
async function poll(): Promise<void> {
|
||||
if (await probeDaemonReady(port)) return;
|
||||
if (await probeDaemonReady(port, env)) return;
|
||||
if (Date.now() >= deadline) {
|
||||
throw new Error(`Daemon failed to become ready on port ${port} within ${timeout}ms`);
|
||||
}
|
||||
@@ -314,7 +319,7 @@ export async function startTestDaemon(options?: {
|
||||
|
||||
// Wait for daemon to be ready
|
||||
try {
|
||||
await waitForDaemonReady(port, timeout);
|
||||
await waitForDaemonReady(port, timeout, options?.env);
|
||||
ctx.isReady = true;
|
||||
} catch (err) {
|
||||
// Daemon failed to start - clean up and rethrow
|
||||
|
||||
Reference in New Issue
Block a user