From 19d4ff10f30cf03b9657b73a95c5d22026fc80a2 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Tue, 22 Sep 2026 19:01:14 +0200 Subject: [PATCH] test(server): skip the scan-cost budget on Windows The tree it needs is deeper than MAX_PATH allows, and the directory listing cache it measures is disabled on Windows because directory metadata cannot validate it there. --- packages/server/src/utils/directory-suggestions.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/utils/directory-suggestions.test.ts b/packages/server/src/utils/directory-suggestions.test.ts index 3e1c619026..cab15318cf 100644 --- a/packages/server/src/utils/directory-suggestions.test.ts +++ b/packages/server/src/utils/directory-suggestions.test.ts @@ -958,7 +958,10 @@ describe("relative typed-entry configuration", () => { // A home-directory scan is dominated by per-entry bookkeeping, not by reading the tree. These // budgets are expressed against a plain readdir walk of the same tree, so they mean the same // thing on a slow CI runner as on a developer machine. -describe("home-tree scan cost", () => { +// +// Skipped on Windows: the tree this needs is deeper than MAX_PATH allows, and the directory +// listing cache this measures is disabled there because directory metadata cannot validate it. +describe.skipIf(isWindows)("home-tree scan cost", () => { const ENTRIES = 5_000; const DEPTH = 8; // Long names cost more to normalize, and per-entry path work is spent normalizing them.