sitespeedio / sitespeedio/sitespeed.io
Error: does not exist, is the path to the file correct?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 624
- Avg merge
- 4h 8m
- Merged PRs (30d)
- 2
Description
Your question
Hey. When I run script through Jenkins. (Jenkins->Pipeline->pull test script from Git -> sh '''docker run --rm -v /var/jenkins_home/workspace/test_ui_pipeline:/sitespeed.io sitespeedio/sitespeed.io /sitespeed.io/login-test.js --multi''', I get this error
node:fs:735
handleErrorFromBinding(ctx);
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (node:fs:735:3)
at tryReadSync (node:fs:420:20)
at readFileSync (node:fs:471:19)
at getAliases (file:///usr/src/app/lib/cli/util.js:89:21)
at parseCommandLine (file:///usr/src/app/lib/cli/cli.js:2253:22)
at start (file:///usr/src/app/bin/sitespeed.js:119:22)
at file:///usr/src/app/bin/sitespeed.js:189:7 {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}
Node.js v20.9.0
But when I run the same test which I have locally everything is fine. Maybe you know what can be a problem. Thank you in advance.
Best regards,
Oleksii
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Jenkins Docker command and compare it with the local invocation, starting with lib/cli/util.js at getAliases and lib/cli/cli.js at parseCommandLine. Check how the mounted workspace and login-test.js are resolved; done means identifying why a directory is read as a file and documenting or correcting the reproducible behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100