Skip to content

feat(browser): support --inspect-brk #11269

feat(browser): support --inspect-brk

feat(browser): support --inspect-brk #11269

Triggered via pull request September 8, 2024 14:48
Status Failure
Total duration 12m 22s
Artifacts

ci.yml

on: pull_request
Diff: node-latest, ubuntu-latest
8s
Diff: node-latest, ubuntu-latest
Lint: node-latest, ubuntu-latest
2m 21s
Lint: node-latest, ubuntu-latest
Matrix: test-browser
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

19 errors
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 stderr: ❯ specs/inspect.test.ts:21:16
specs/server-url.test.ts > server-url http: test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at http://loca…' - Expected + Received - Browser runner started at http://localhost:5173/ + + RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url + Browser runner started at http://localhost:5174/ + + ✓ basic.test.ts (1 test) 1ms + + Test Files 1 passed (1) + Tests 1 passed (1) + Start at 14:51:17 + Duration 561ms (transform 0ms, setup 0ms, collect 4ms, tests 1ms, environment 0ms, prepare 15ms) + + ❯ specs/server-url.test.ts:13:18
specs/server-url.test.ts > server-url https: test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 /Users/runner/w…' to contain 'Browser runner started at https://loc…' - Expected + Received - Browser runner started at https://localhost:5173/ + + RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/server-url + Browser runner started at https://localhost:5174/ + + ✓ basic.test.ts (1 test) 1ms + + Test Files 1 passed (1) + Tests 1 passed (1) + Start at 14:51:17 + Duration 636ms (transform 0ms, setup 0ms, collect 5ms, tests 1ms, environment 0ms, prepare 14ms) + + ❯ specs/server-url.test.ts:22:18
Browser: chromium, macos-14
Process completed with exit code 1.
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ Vitest caught 1 unhandled error during the test run. This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Test Files no tests Tests no tests Errors 1 error Start at 14:51:07 Duration 128ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms) stderr: ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ Error: browserType.launch: Executable doesn't exist at /Users/runner/work/vitest/vitest/.cache/ms-playwright/chromium-1129/chrome-mac/Chromium.app/Contents/MacOS/Chromium ╔═════════════════════════════════════════════════════════════════════════╗ ║ Looks like Playwright Test or Playwright was just installed or updated. ║ ║ Please run the following command to download new browsers: ║ ║ ║ ║ pnpm exec playwright install ║ ║ ║ ║ <3 Playwright Team ║ ╚═════════════════════════════════════════════════════════════════════════╝ ❯ ../../../../packages/browser/dist/webdriver-Cv9wga63.js:50:58 ❯ PlaywrightBrowserProvider.createContext ../../../../packages/browser/dist/webdriver-Cv9wga63.js:61:21 ❯ PlaywrightBrowserProvider.openBrowserPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:113:21 ❯ PlaywrightBrowserProvider.openPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:131:25 ❯ executeTests ../../../../packages/browser/dist/index.js:2476:5 ❯ runWorkspaceTests ../../../../packages/browser/dist/index.js:2493:7 ❯ executeTests ../../../../packages/vitest/dist/chunks/resolveConfig.-K5hHm0S.js:5134:5 ❯ ../../async file:/Users/runner/work/vitest/vitest/packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10233:9 ❯ Vitest.runFiles ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10253:12 ❯ Vitest.start ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10087:7 ❯ startVitest ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:11209:7 ❯ start ../../../../packages/vitest/dist/chunks/cac.CSYbb0EX.js:1505:17 ❯ specs/inspect.test.ts:21:16
Browser: webkit, macos-14
Process completed with exit code 1.
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ Vitest caught 1 unhandled error during the test run. This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Test Files no tests Tests no tests Errors 1 error Start at 14:52:03 Duration 265ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms) stderr: ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ Error: browserType.launch: Executable doesn't exist at D:\a\vitest\vitest\.cache\ms-playwright\chromium-1129\chrome-win\chrome.exe ╔═════════════════════════════════════════════════════════════════════════╗ ║ Looks like Playwright Test or Playwright was just installed or updated. ║ ║ Please run the following command to download new browsers: ║ ║ ║ ║ pnpm exec playwright install ║ ║ ║ ║ <3 Playwright Team ║ ╚═════════════════════════════════════════════════════════════════════════╝ ❯ ../../../../packages/browser/dist/webdriver-Cv9wga63.js:50:58 ❯ PlaywrightBrowserProvider.createContext ../../../../packages/browser/dist/webdriver-Cv9wga63.js:61:21 ❯ PlaywrightBrowserProvider.openBrowserPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:113:21 ❯ PlaywrightBrowserProvider.openPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:131:25 ❯ executeTests ../../../../packages/browser/dist/index.js:2476:5 ❯ runWorkspaceTests ../../../../packages/browser/dist/index.js:2493:7 ❯ executeTests ../../../../packages/vitest/dist/chunks/resolveConfig.-K5hHm0S.js:5134:5 ❯ ../../async file:/D:/a/vitest/vitest/packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10233:9 ❯ Vitest.runFiles ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10253:12 ❯ Vitest.start ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10087:7 ❯ startVitest ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:11209:7 ❯ start ../../../../packages/vitest/dist/chunks/cac.CSYbb0EX.js:1505:17 ❯ specs/inspect.test.ts:21:16
Browser: webkit, windows-latest
Process completed with exit code 1.
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 /Users/runner/work/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ Vitest caught 1 unhandled error during the test run. This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Test Files no tests Tests no tests Errors 1 error Start at 14:51:10 Duration 124ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms) stderr: ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ Error: browserType.launch: Executable doesn't exist at /Users/runner/work/vitest/vitest/.cache/ms-playwright/chromium-1129/chrome-mac/Chromium.app/Contents/MacOS/Chromium ╔═════════════════════════════════════════════════════════════════════════╗ ║ Looks like Playwright Test or Playwright was just installed or updated. ║ ║ Please run the following command to download new browsers: ║ ║ ║ ║ pnpm exec playwright install ║ ║ ║ ║ <3 Playwright Team ║ ╚═════════════════════════════════════════════════════════════════════════╝ ❯ ../../../../packages/browser/dist/webdriver-Cv9wga63.js:50:58 ❯ PlaywrightBrowserProvider.createContext ../../../../packages/browser/dist/webdriver-Cv9wga63.js:61:21 ❯ PlaywrightBrowserProvider.openBrowserPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:113:21 ❯ PlaywrightBrowserProvider.openPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:131:25 ❯ executeTests ../../../../packages/browser/dist/index.js:2476:5 ❯ runWorkspaceTests ../../../../packages/browser/dist/index.js:2493:7 ❯ executeTests ../../../../packages/vitest/dist/chunks/resolveConfig.-K5hHm0S.js:5134:5 ❯ ../../async file:/Users/runner/work/vitest/vitest/packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10233:9 ❯ Vitest.runFiles ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10253:12 ❯ Vitest.start ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10087:7 ❯ startVitest ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:11209:7 ❯ start ../../../../packages/vitest/dist/chunks/cac.CSYbb0EX.js:1505:17 ❯ specs/inspect.test.ts:21:16
Browser: firefox, macos-14
Process completed with exit code 1.
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 stderr: ❯ specs/inspect.test.ts:21:16
specs/server-url.test.ts > server-url http: test/browser/specs/server-url.test.ts#L13
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at http://loca…' - Expected + Received - Browser runner started at http://localhost:5173/ + + RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url + Browser runner started at http://localhost:5174/ + + ✓ basic.test.ts (1 test) 2ms + + Test Files 1 passed (1) + Tests 1 passed (1) + Start at 14:53:56 + Duration 831ms (transform 0ms, setup 0ms, collect 8ms, tests 2ms, environment 0ms, prepare 32ms) + + ❯ specs/server-url.test.ts:13:18
specs/server-url.test.ts > server-url https: test/browser/specs/server-url.test.ts#L22
AssertionError: expected '\n RUN v2.1.0-beta.6 D:/a/vitest/vit…' to contain 'Browser runner started at https://loc…' - Expected + Received - Browser runner started at https://localhost:5173/ + + RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/server-url + Browser runner started at https://localhost:5174/ + + ✓ basic.test.ts (1 test) 2ms + + Test Files 1 passed (1) + Tests 1 passed (1) + Start at 14:53:57 + Duration 867ms (transform 0ms, setup 0ms, collect 7ms, tests 2ms, environment 0ms, prepare 30ms) + + ❯ specs/server-url.test.ts:22:18
Browser: chromium, windows-latest
Process completed with exit code 1.
specs/inspect.test.ts > --inspect-brk stops at test file: test/browser/specs/inspect.test.ts#L21
Error: Timeout when waiting for error "Debugger listening on ws:127.0.0.1:9123". Received: stdout: Re-optimizing dependencies because vite config has changed RUN v2.1.0-beta.6 D:/a/vitest/vitest/test/browser/fixtures/inspect Browser runner started at http://localhost:5173/ Debugger listening on ws://127.0.0.1:9123 ⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯ Vitest caught 1 unhandled error during the test run. This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Test Files no tests Tests no tests Errors 1 error Start at 14:52:36 Duration 286ms (transform 0ms, setup 0ms, collect 0ms, tests 0ms, environment 0ms, prepare 0ms) stderr: ⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯ Error: browserType.launch: Executable doesn't exist at D:\a\vitest\vitest\.cache\ms-playwright\chromium-1129\chrome-win\chrome.exe ╔═════════════════════════════════════════════════════════════════════════╗ ║ Looks like Playwright Test or Playwright was just installed or updated. ║ ║ Please run the following command to download new browsers: ║ ║ ║ ║ pnpm exec playwright install ║ ║ ║ ║ <3 Playwright Team ║ ╚═════════════════════════════════════════════════════════════════════════╝ ❯ ../../../../packages/browser/dist/webdriver-Cv9wga63.js:50:58 ❯ PlaywrightBrowserProvider.createContext ../../../../packages/browser/dist/webdriver-Cv9wga63.js:61:21 ❯ PlaywrightBrowserProvider.openBrowserPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:113:21 ❯ PlaywrightBrowserProvider.openPage ../../../../packages/browser/dist/webdriver-Cv9wga63.js:131:25 ❯ executeTests ../../../../packages/browser/dist/index.js:2476:5 ❯ runWorkspaceTests ../../../../packages/browser/dist/index.js:2493:7 ❯ executeTests ../../../../packages/vitest/dist/chunks/resolveConfig.-K5hHm0S.js:5134:5 ❯ ../../async file:/D:/a/vitest/vitest/packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10233:9 ❯ Vitest.runFiles ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10253:12 ❯ Vitest.start ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:10087:7 ❯ startVitest ../../../../packages/vitest/dist/chunks/cli-api.BFA3iggn.js:11209:7 ❯ start ../../../../packages/vitest/dist/chunks/cac.CSYbb0EX.js:1505:17 ❯ specs/inspect.test.ts:21:16
specs/runner.test.ts > running browser tests > tests are actually running: test/browser/specs/runner.test.ts#L27
AssertionError: expected [ { …(6) }, { …(6) }, { …(6) }, …(13) ] to have a length of 17 but got 16 - Expected + Received - 17 + 16 ❯ specs/runner.test.ts:27:25
Browser: firefox, windows-latest
Process completed with exit code 1.
Build&Test: node-20, macos-14
Process completed with exit code 1.