-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Closed
Copy link
Labels
Bug 🐛good first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
8.14.4
Node.js Version
20.5.0
Mode
Standalone Mode
Which capabilities are you using?
No response
What happened?
When running your tests on multiple instances on chrome, I saw in the logs that it was downloading the latest version of chrome for all running instances at the same time. Presumably this caused a conflict and my tests did not start. As seen in the logs: Error: spawn /tmp/chromedriver/linux-115.0.5790.170/chromedriver-linux64/chromedriver ENOENT it can't find the downloaded driver.
Lowering the maxinstances to 1 fixes the issue.
What is your expected behavior?
It should only be downloaded once.
How to reproduce the bug.
Run multiple instances on chrome.
Relevant log output
[0-1] RUNNING in chrome - file:///src/test/specs/login.spec.js, file:///src/test/specs/Content%20Types%20CRU/newsArticle.spec.js
[0-1] 2023-08-04T08:20:23.639Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] RUNNING in chrome - file:///src/test/specs/dataLayer.spec.js
[0-0] 2023-08-04T08:20:23.765Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2023-08-04T08:20:24.109Z INFO webdriver: Setting up Chrome v115.0.5790.170
[0-1] 2023-08-04T08:20:24.109Z INFO webdriver: Setting up Chrome v115.0.5790.170
[0-1] 2023-08-04T08:20:24.174Z INFO webdriver: Downloading Chrome 0.01%
[0-0] 2023-08-04T08:20:24.200Z INFO webdriver: Downloading Chrome 0.01%
[0-0] 2023-08-04T08:20:25.201Z INFO webdriver: Downloading Chrome 43.60%
[0-1] 2023-08-04T08:20:25.223Z INFO webdriver: Downloading Chrome 43.17%
[0-0] 2023-08-04T08:20:26.201Z INFO webdriver: Downloading Chrome 90.79%
[0-1] 2023-08-04T08:20:26.273Z INFO webdriver: Downloading Chrome 84.83%
[0-0] 2023-08-04T08:20:30.347Z INFO webdriver: Downloading Chromedriver v115.0.5790.170
[0-0] 2023-08-04T08:20:30.431Z INFO webdriver: Downloading Chromedriver 0.22%
[0-1] 2023-08-04T08:20:30.501Z INFO webdriver: Downloading Chromedriver v115.0.5790.170
[0-1] 2023-08-04T08:20:30.544Z INFO webdriver: Downloading Chromedriver 0.22%
[0-0] 2023-08-04T08:20:30.548Z ERROR @wdio/runner: Error: unexpected EOF
[0-0] at /builds/mediahuis-test-automation/cue-team/mediahuis-test-automation-cue-e2e/node_modules/yauzl/index.js:629:23
[0-0] at /builds/mediahuis-test-automation/cue-team/mediahuis-test-automation-cue-e2e/node_modules/fd-slicer/index.js:32:7
[0-0] at FSReqCallback.wrapper [as oncomplete] (node:fs:701:5)
[0-1] 2023-08-04T08:20:30.606Z ERROR @wdio/runner: Error: ENOENT: no such file or directory, open '/tmp/chromedriver/chromedriver-linux64.zip'
[0-0] FAILED in chrome - file:///src/test/specs/dataLayer.spec.js
2023-08-04T08:20:30.689Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2023-08-04T08:20:30.689Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-08-04T08:20:30.690Z INFO @wdio/local-runner: Start worker 0-2 with arg: run,./wdio.conf.js,--suite,regression
[0-1] FAILED in chrome - file:///src/test/specs/login.spec.js, file:///src/test/specs/Content%20Types%20CRU/newsArticle.spec.js
2023-08-04T08:20:30.740Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
2023-08-04T08:20:30.740Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2023-08-04T08:20:30.742Z INFO @wdio/local-runner: Start worker 0-3 with arg: run,./wdio.conf.js,--suite,regression
[0-3] 2023-08-04T08:20:31.700Z INFO @wdio/local-runner: Run worker command: run
[0-2] 2023-08-04T08:20:31.827Z INFO @wdio/local-runner: Run worker command: run
[0-3] RUNNING in chrome - file:///src/test/specs/login.spec.js, file:///src/test/specs/Content%20Types%20CRU/opinionArticle.spec.js
[0-3] 2023-08-04T08:20:32.350Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-2] RUNNING in chrome - file:///src/test/specs/login.spec.js, file:///src/test/specs/Content%20Types%20CRU/featureArticle.spec.js
[0-2] 2023-08-04T08:20:32.516Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-3] 2023-08-04T08:20:32.573Z INFO webdriver: Setting up Chrome v115.0.5790.170
[0-3] 2023-08-04T08:20:32.575Z INFO webdriver: Downloading Chromedriver v115.0.5790.170
[0-3] node:events:492
[0-3] throw er; // Unhandled 'error' event
[0-3] ^
[0-3]
[0-3] Error: spawn /tmp/chromedriver/linux-115.0.5790.170/chromedriver-linux64/chromedriver ENOENT
[0-3] at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19)
[0-3] at onErrorNT (node:internal/child_process:484:16)
[0-3] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[0-3] Emitted 'error' event on ChildProcess instance at:
[0-3] at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)
[0-3] at onErrorNT (node:internal/child_process:484:16)
[0-3] at processTicksAndRejections (node:internal/process/task_queues:82:21) {
[0-3] errno: -2,
[0-3] code: 'ENOENT',
[0-3] syscall: 'spawn /tmp/chromedriver/linux-115.0.5790.170/chromedriver-linux64/chromedriver',
[0-3] path: '/tmp/chromedriver/linux-115.0.5790.170/chromedriver-linux64/chromedriver',
[0-3] spawnargs: [ '--port=44755', '--allowed-origins=*', '--allowed-ips=' ]
[0-3] }
[0-3]Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛good first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested