Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests are cancelled by timeout #1

Open
vagabondan opened this issue Nov 1, 2023 · 1 comment
Open

Tests are cancelled by timeout #1

vagabondan opened this issue Nov 1, 2023 · 1 comment

Comments

@vagabondan
Copy link

vagabondan commented Nov 1, 2023

Example:
https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071

Run bash tests-selfmade-project-3-public/run.sh
  bash tests-selfmade-project-3-public/run.sh
  shell: /usr/bin/bash -e {0}
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@[2](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:2). I'll try to do my best with it!

> [email protected] install /home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-[3](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:3)-public/node_modules/canvas
> node-pre-gyp install --fallback-to-build

[canvas] Success: "/home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/node_modules/canvas/build/Release/canvas.node" is installed via remote

> puppeteer@15.[4](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:5).0 install /home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/node_modules/puppeteer
> node install.js


Chromium (1011831) downloaded to /home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/node_modules/puppeteer/.local-chromium/linux-1011831
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

added 386 packages from 29[5](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:6) contributors and audited 38[6](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:7) packages in 14.043s

80 packages are looking for funding
  run `npm fund` for details

found 15 vulnerabilities (2 low, 11 moderate, 2 high)
  run `npm audit fix` to fix them, or `npm audit` for details
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at pptr://__puppeteer_evaluation_script__:1:103
    at Array.map (<anonymous>)
    at pptr://__puppeteer_evaluation_script__:1:82
    at ExecutionContext._ExecutionContext_evaluate (file:///home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/node_modules/puppeteer/lib/esm/puppeteer/common/ExecutionContext.js:282:15)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async ExecutionContext.evaluate (file:///home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/node_modules/puppeteer/lib/esm/puppeteer/common/ExecutionContext.js:114:16)
    at async checkBodyElements (file:///home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/src/lib.js:2:[7](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:8)24)
    at async Promise.all (index 4)
    at async runTests (file:///home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/src/tests.js:1:6[9](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:10)4)
    at async app (file:///home/runner/work/nado_sdelat_idealno/nado_sdelat_idealno/tests-selfmade-project-3-public/src/index.js:1:[23](https://github.com/vagabondan/nado_sdelat_idealno/actions/runs/6696822682/job/18195380071#step:6:24)1)
Error: The operation was canceled.
@vagabondan
Copy link
Author

vagabondan commented Nov 1, 2023

Problem is here, this filter is not enough:
filter(a=>'#text'!==a.nodeName)
should be changed to: check tagName at element
filter(a=>'#text'!==a.nodeName&&a.tagName)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant