Browse Source

test(ci): stabilize required snapshot and Windows lanes

pku-xht 1 month ago
parent
commit
7e234bb5b9

+ 2 - 0
.github/workflows/ci.yml

@@ -504,6 +504,8 @@ jobs:
         shell: pwsh
         run: >-
           pnpm exec vitest run
+          --no-file-parallelism
+          --testTimeout 30000
           packages/shell/tool-pwsh/tests/loader.spec.ts
           packages/workflow/workflow-worker-thread/tests/workflow-worker-thread.spec.ts
           packages/workflow/tool-ralph/tests/integration.spec.ts

+ 1 - 1
apps/web/tests/workspace-new-session-folding.e2e.ts

@@ -47,7 +47,7 @@ describe('web e2e: blank New Session folding quota', () => {
     browser = await chromium.launch()
     page = await newEnglishPage(browser)
     tripwire = watchConsole(page)
-    await page.goto(scaffold.baseUrl, { waitUntil: 'load' })
+    await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
     await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
 
     const workspaceTitle = basename(scaffold.workspaceCwd)

+ 5 - 2
scripts/ci-workflow.spec.ts

@@ -113,8 +113,11 @@ describe('CI workflow', () => {
     const nativeTestCommands = nativeTestSteps.filter((step): step is Record<string, unknown> & { run: string } => (
       isRecord(step) && typeof step.run === 'string'
     ))
-    expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('tool-pwsh/tests/loader.spec.ts')
-    expect(nativeTestCommands.map(step => step.run).join('\n')).toContain('workflow-worker-thread.spec.ts')
+    const nativeTestCommand = nativeTestCommands.map(step => step.run).join('\n')
+    expect(nativeTestCommand).toContain('--no-file-parallelism')
+    expect(nativeTestCommand).toContain('--testTimeout 30000')
+    expect(nativeTestCommand).toContain('tool-pwsh/tests/loader.spec.ts')
+    expect(nativeTestCommand).toContain('workflow-worker-thread.spec.ts')
 
     // windows-observational is non-blocking.
     expect(windowsObservational.name).toBe('windows node 24 / observational')