Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

test(pi): Windows argv 大规模技能用例在 Windows 上放宽单用例超时到 30s (#5352)

FicoWangf0d2cd90da6f
diff --git a/packages/maker-core/src/agents/pi/__tests__/pi-native-auto-compact.test.ts b/packages/maker-core/src/agents/pi/__tests__/pi-native-auto-compact.test.ts
index 72b9ea6770..41280135c0 100644
--- a/packages/maker-core/src/agents/pi/__tests__/pi-native-auto-compact.test.ts
+++ b/packages/maker-core/src/agents/pi/__tests__/pi-native-auto-compact.test.ts
@@ -390,7 +390,12 @@ describe("PiAgent native auto-compaction ownership", () => {
} finally {await handle.close();}
});
- it('keeps hundreds of long managed skill paths out of Windows argv and cleans only session links', async () => {
+ // 350 real skill files + 350 session junctions make this case load-sensitive on the
+ // shared Windows PR runners (repeated "Test timed out in 5000ms", #5350). Only the
+ // Windows budget is widened; the fixture size and every assertion stay as in #5318.
+ it('keeps hundreds of long managed skill paths out of Windows argv and cleans only session links', {
+ timeout: process.platform === 'win32' ? 30_000 : 5_000,
+ }, async () => {
const skills = Array.from({ length: 350 }, (_, index) => {
const file = path.join(agentHome, 'approved', 'revision-'.repeat(12), String(index), 'SKILL.md');
mkdirSync(path.dirname(file), { recursive: true });