refactor: fs-router to use new_createPages & fix staticPaths #5246
Annotations
10 errors, 5 warnings, and 1 notice
Run pnpm exec playwright test --shard=2/4:
e2e/create-waku.spec.ts#L1
stderr: node:internal/bootstrap/switches/does_own_process_state:144
cachedCwd = rawMethods.cwd();
^
Error: ENOENT: no such file or directory, uv_cwd
at process.wrappedCwd (node:internal/bootstrap/switches/does_own_process_state:144:28)
at process.cwd (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:45:23)
at process.cwd (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:7749:23)
at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/impl/path.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38842:58)
at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../node_modules/.pnpm/get-source@2.0.12/node_modules/get-source/get-source.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:38933:17)
at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../node_modules/.pnpm/stacktracey@2.1.8/node_modules/stacktracey/stacktracey.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39240:21)
at __require (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:12:50)
at ../cli/default-reporter/lib/reportError.js (/Users/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/dist/pnpm.cjs:39481:42) {
errno: -2,
code: 'ENOENT',
syscall: 'uv_cwd'
}
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-waku.spec.ts#L1
stderr:
Node.js v22.7.0
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-waku.spec.ts#L1
stderr: Could not execute pnpm install. Please run
|
Run pnpm exec playwright test --shard=2/4
50004 stderr: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for /Users/runner/work/waku/waku/node_modules/.pnpm/react-tweet@3.2.0_react-dom@19.0.0-rc-5c56b873-20241107_react@19.0.0-rc-5c56b873-20241107__re_n26otrjmoamx67qv6scqewcd6y/node_modules/react-tweet/dist/twitter-theme/tweet-info-created-at.module.css
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:217:9)
at defaultGetFormat (node:internal/modules/esm/get_format:243:36)
at defaultLoad (node:internal/modules/esm/load:123:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:567:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:45) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
|
Run pnpm exec playwright test --shard=2/4
50004 stderr: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for /Users/runner/work/waku/waku/node_modules/.pnpm/react-tweet@3.2.0_react-dom@19.0.0-rc-5c56b873-20241107_react@19.0.0-rc-5c56b873-20241107__re_n26otrjmoamx67qv6scqewcd6y/node_modules/react-tweet/dist/twitter-theme/tweet-actions.module.css
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:217:9)
at defaultGetFormat (node:internal/modules/esm/get_format:243:36)
at defaultLoad (node:internal/modules/esm/load:123:22)
at async ModuleLoader.load (node:internal/modules/esm/loader:567:7)
at async ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:45) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
|
Run pnpm exec playwright test --shard=2/4:
e2e/use-router.spec.ts#L141
1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('query')
Expected string: "Query: 1"
Received string: "Query: 0"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('query')
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
139 | const incrementLink = page.getByRole('link', { name: 'Increment query' });
140 | await incrementLink.click();
> 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1');
| ^
142 | const incrementButton = page.getByRole('button', {
143 | name: 'Increment query (push)',
144 | });
at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47
|
Run pnpm exec playwright test --shard=2/4:
e2e/use-router.spec.ts#L141
1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('query')
Expected string: "Query: 1"
Received string: "Query: 0"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('query')
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
139 | const incrementLink = page.getByRole('link', { name: 'Increment query' });
140 | await incrementLink.click();
> 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1');
| ^
142 | const incrementButton = page.getByRole('button', {
143 | name: 'Increment query (push)',
144 | });
at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47
|
Run pnpm exec playwright test --shard=2/4:
e2e/use-router.spec.ts#L141
1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('query')
Expected string: "Query: 1"
Received string: "Query: 0"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('query')
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
139 | const incrementLink = page.getByRole('link', { name: 'Increment query' });
140 | await incrementLink.click();
> 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1');
| ^
142 | const incrementButton = page.getByRole('button', {
143 | name: 'Increment query (push)',
144 | });
at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47
|
Run pnpm exec playwright test --shard=2/4:
e2e/use-router.spec.ts#L141
1) [chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ─
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 10000ms waiting for expect(locator).toHaveText(expected)
Locator: getByTestId('query')
Expected string: "Query: 1"
Received string: "Query: 0"
Call log:
- expect.toHaveText with timeout 10000ms
- waiting for getByTestId('query')
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
- locator resolved to <p data-testid="query">…</p>
- unexpected value "Query: 0"
139 | const incrementLink = page.getByRole('link', { name: 'Increment query' });
140 | await incrementLink.click();
> 141 | await expect(page.getByTestId('query')).toHaveText('Query: 1');
| ^
142 | const incrementButton = page.getByRole('button', {
143 | name: 'Increment query (push)',
144 | });
at /Users/runner/work/waku/waku/e2e/use-router.spec.ts:141:47
|
Run pnpm exec playwright test --shard=2/4
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3, actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run pnpm exec playwright test --shard=2/4:
[firefox] › broken-link.spec.ts#L1
[firefox] › broken-link.spec.ts took 55.4s
|
Run pnpm exec playwright test --shard=2/4:
[firefox] › examples-smoke.spec.ts#L1
[firefox] › examples-smoke.spec.ts took 49.6s
|
Run pnpm exec playwright test --shard=2/4:
[firefox] › multi-platform.spec.ts#L1
[firefox] › multi-platform.spec.ts took 30.6s
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "playwright-report-macos-latest-22.7.0-1", "playwright-report-macos-latest-22.7.0-2", "playwright-report-macos-latest-22.7.0-3", "playwright-report-macos-latest-22.7.0-4", "playwright-report-ubuntu-latest-18.17.0-1", "playwright-report-ubuntu-latest-18.17.0-2", "playwright-report-ubuntu-latest-18.17.0-3", "playwright-report-ubuntu-latest-18.17.0-4", "playwright-report-ubuntu-latest-20.8.0-1", "playwright-report-ubuntu-latest-20.8.0-2", "playwright-report-ubuntu-latest-20.8.0-3", "playwright-report-ubuntu-latest-20.8.0-4", "playwright-report-ubuntu-latest-22.7.0-1", "playwright-report-ubuntu-latest-22.7.0-2", "playwright-report-ubuntu-latest-22.7.0-3", "playwright-report-ubuntu-latest-22.7.0-4", "playwright-report-windows-latest-22.7.0-1", "playwright-report-windows-latest-22.7.0-2", "playwright-report-windows-latest-22.7.0-3", "playwright-report-windows-latest-22.7.0-4".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Run pnpm exec playwright test --shard=2/4
1 failed
[chromium] › use-router.spec.ts:136:5 › useRouter › updates query variables › on static pages ──
5 skipped
98 passed (6.9m)
|
Loading