Skip to content

chore: fix robots tests #727

chore: fix robots tests

chore: fix robots tests #727

Triggered via push September 29, 2024 06:18
Status Failure
Total duration 1m 22s
Artifacts

test.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors
test/ci.test.ts > ci > tests harlanzw.com: test/ci.test.ts#L45
Error: Command failed with exit code 1: node /home/runner/work/unlighthouse/unlighthouse/packages/unlighthouse/bin/unlighthouse-ci.cjs --root /home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395 --debug --site harlanzw.com [warn] [Unlighthouse] Dynamic sampling is in effect, some of your routes will not be scanned. To disable this behavior, set `scanner.dynamicSampling` to `false`. [error] Cannot read properties of undefined (reading 'length') at matches (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:361:33) at matchPathToRule (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:398:10) at queueRoute (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1472:20) at /home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1569:37 at Array.forEach (<anonymous>) at Object.queueRoutes (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1569:18) at ctx.start (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:2043:12) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async run (/home/runner/work/unlighthouse/unlighthouse/packages/cli/dist/ci.mjs:358:22) [debug] [Unlighthouse] Starting Unlighthouse at root: `/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395` cwd: /home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395 [debug] [Unlighthouse] Discovered config definition { config: { site: 'https://harlanzw.com', cache: false, scanner: { device: 'desktop', throttle: false }, ci: { budget: [Object] }, lighthouseOptions: { onlyCategories: [Array] }, debug: true }, sources: [ '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395/unlighthouse.config.ts' ], dependencies: [ 'file:///home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395/unlighthouse.config.ts' ] } [debug] [Unlighthouse] Unable to locale page files, disabling route discovery. [info] [Unlighthouse] Using system chrome located at: `/usr/bin/google-chrome-stable`. [debug] [Unlighthouse] Post config resolution { routerPrefix: '/', apiPrefix: '/api', cache: false, client: { groupRoutesKey: 'route.definition.name', columns: { overview: [Array], accessibility: [Array], 'best-practices': [Array], seo: [Array] } }, scanner: { customSampling: {}, ignoreI18nPages: true, maxRoutes: 200, skipJavascript: true, samples: 1, throttle: false, crawler: true, dynamicSampling: 8, sitemap: true, robotsTxt: true, device: 'desktop', exclude: [ '/cdn-cgi/*' ] }, server: { port: 5678, showURL: false, open: true }, discovery: false, root: '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395', outputPath: '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590779395/.unlighthouse', debug: true, puppeteerOptions: { headless: true, ignoreHTTPSErrors: true, timeout: 0, protocolTimeout: 0, defaultViewport: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false }, executablePath: '/usr/bin/google-chrome-stable' }, puppeteerClusterOptions: { timeout: 300000, monitor: true, workerCreationDelay: 500, retryLimit: 3, maxConcurrency: 3, skipDuplicateUrls: false, retryDelay: 2000, concurrency: 3, puppeteer: PuppeteerNode { _isPuppeteerCore: true, _changedBrowsers: false, connect: [Function: bound bound connect], defaultBrowserRevision: '129.0.6668.58', configuration: [Object], launch: [Function: bound launch], executablePath: [Function: bound executablePath], defaultArgs: [Function: bound defaultArgs], trimCache: [Function: bound trimCache] AsyncFunction } }, lighthouseOptions: { onlyCategories: [ 'accessibility', 'best-practices', 'seo' ], throttlingMethod: 'simulate', throttling: { rttMs: 150,
test/ci.test.ts > ci > tests harlanzw.com and generate json expanded: test/ci.test.ts#L45
Error: Command failed with exit code 1: node /home/runner/work/unlighthouse/unlighthouse/packages/unlighthouse/bin/unlighthouse-ci.cjs --root /home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167 --debug --site harlanzw.com [warn] [Unlighthouse] Dynamic sampling is in effect, some of your routes will not be scanned. To disable this behavior, set `scanner.dynamicSampling` to `false`. [error] Cannot read properties of undefined (reading 'length') at matches (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:361:33) at matchPathToRule (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:398:10) at queueRoute (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1472:20) at /home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1569:37 at Array.forEach (<anonymous>) at Object.queueRoutes (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:1569:18) at ctx.start (/home/runner/work/unlighthouse/unlighthouse/packages/core/dist/index.mjs:2043:12) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async run (/home/runner/work/unlighthouse/unlighthouse/packages/cli/dist/ci.mjs:358:22) [debug] [Unlighthouse] Starting Unlighthouse at root: `/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167` cwd: /home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167 [debug] [Unlighthouse] Discovered config definition { config: { site: 'https://harlanzw.com', cache: false, scanner: { device: 'desktop', throttle: false }, ci: { budget: [Object], reporter: 'jsonExpanded' }, debug: true }, sources: [ '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167/unlighthouse.config.ts' ], dependencies: [ 'file:///home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167/unlighthouse.config.ts' ] } [debug] [Unlighthouse] Unable to locale page files, disabling route discovery. [info] [Unlighthouse] Using system chrome located at: `/usr/bin/google-chrome-stable`. [debug] [Unlighthouse] Post config resolution { routerPrefix: '/', apiPrefix: '/api', cache: false, client: { groupRoutesKey: 'route.definition.name', columns: { overview: [Array], performance: [Array], accessibility: [Array], 'best-practices': [Array], seo: [Array] } }, scanner: { customSampling: {}, ignoreI18nPages: true, maxRoutes: 200, skipJavascript: true, samples: 1, throttle: false, crawler: true, dynamicSampling: 8, sitemap: true, robotsTxt: true, device: 'desktop', exclude: [ '/cdn-cgi/*' ] }, server: { port: 5678, showURL: false, open: true }, discovery: false, root: '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167', outputPath: '/home/runner/work/unlighthouse/unlighthouse/test/.cache/1727590781167/.unlighthouse', debug: true, puppeteerOptions: { headless: true, ignoreHTTPSErrors: true, timeout: 0, protocolTimeout: 0, defaultViewport: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false }, executablePath: '/usr/bin/google-chrome-stable' }, puppeteerClusterOptions: { timeout: 300000, monitor: true, workerCreationDelay: 500, retryLimit: 3, maxConcurrency: 3, skipDuplicateUrls: false, retryDelay: 2000, concurrency: 3, puppeteer: PuppeteerNode { _isPuppeteerCore: true, _changedBrowsers: false, connect: [Function: bound bound connect], defaultBrowserRevision: '129.0.6668.58', configuration: [Object], launch: [Function: bound launch], executablePath: [Function: bound executablePath], defaultArgs: [Function: bound defaultArgs], trimCache: [Function: bound trimCache] AsyncFunction } }, lighthouseOptions: { onlyCategories: [ 'performance', 'accessibility', 'best-practices', 'seo' ], throttlingMethod: 'simulate
build (18.x, ubuntu-latest)
Process completed with exit code 1.