-
Notifications
You must be signed in to change notification settings - Fork 359
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
v5.8.2 causes a hang in running a chrome browser test. #941
Comments
I also have the same problem using yarn classic and reverting to the previous version also works for me (thanks for that), it's probably caused by their last PR #914 to add more info, here's my logs if it helps Run cypress-io/github-action@v5
Received [13](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5271867350/jobs/9533345209#step:13:14)0023424 of 159490239 (81.5%), 117.1 MBs/sec
Received 134217728 of 246805727 (54.4%), 125.0 MBs/sec
Received 159490239 of 159490239 (100.0%), 108.0 MBs/sec
Cache Size: ~152 MB (159490239 B)
/usr/bin/tar -xf /home/runner/work/_temp/874235dc-a472-4345-829e-2a510842b93d/cache.tzst -P -C /home/runner/work/aurelia-slickgrid/aurelia-slickgrid --use-compress-program unzstd
Received 246805727 of 246805727 (100.0%), 134.4 MBs/sec
Cache Size: ~235 MB (246805727 B)
/usr/bin/tar -xf /home/runner/work/_temp/b48efa7a-0495-4e37-bb5d-816ab923e5ba/cache.tzst -P -C /home/runner/work/aurelia-slickgrid/aurelia-slickgrid --use-compress-program unzstd
Cache restored successfully
Cache restored successfully
/usr/local/bin/yarn --frozen-lockfile
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.46s.
/usr/local/bin/yarn cypress cache list
yarn run v1.22.19
$ cypress open cache list
DevTools listening on ws://127.0.0.1:46553/devtools/browser/202a1e77-8ae1-4d05-9cc2-0b7c8fbe73f4
[2259:06[14](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5271867350/jobs/9533345209#step:13:15)/[20](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5271867350/jobs/9533345209#step:13:21)38[22](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5271867350/jobs/9533345209#step:13:23).[28](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5271867350/jobs/9533345209#step:13:29)8207:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
Error: The operation was canceled. I cancelled it because it never stops, just hangs there until I cancel it For comparison again, here's a working execution with previous version ..........
/usr/bin/tar -xf /home/runner/work/_temp/65f5d920-0b22-4ef8-a116-4a087fa1da43/cache.tzst -P -C /home/runner/work/aurelia-slickgrid/aurelia-slickgrid --use-compress-program unzstd
Cache restored successfully
Cache restored successfully
/usr/local/bin/yarn --frozen-lockfile
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 3.22s.
/opt/hostedtoolcache/node/16.20.0/x64/bin/npx cypress cache list
┌─────────┬───────────────────┐
│ version │ last used │
├─────────┼───────────────────┤
│ 12.14.0 │ a few seconds ago │
└─────────┴───────────────────┘
waiting on "http://localhost:9000" with timeout of 60 seconds
DevTools listening on ws://1[27](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5272142390/jobs/9534009453#step:13:28).0.0.1:35979/devtools/browser/93f0e017-0357-44ce-866e-df132e81c58f
[22[29](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5272142390/jobs/9534009453#step:13:30):0614/211[30](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5272142390/jobs/9534009453#step:13:31)8.0[38](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5272142390/jobs/9534009453#step:13:39)518:ERROR:gpu_memory_buffer_support_x11.cc([44](https://github.com/ghiscoding/aurelia-slickgrid/actions/runs/5272142390/jobs/9534009453#step:13:45))] dri3 extension not supported.
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 12.14.0 │
│ Browser: Chrome 113 (headless) │
│ Node Version: v16.16.0 (/home/runner/runners/2.304.0/externals/node16/bin/node) │
.... |
Please give more details about your workflow. If it's a public workflow you can give a link. If it's private, then you could post the workflow together with a log of the workflow run. |
Looking at your logs I see that the workflow causing a problem is Could you please confirm that I am looking at the right workflow? |
Thanks for both of you for your reports. I have submitted PR #942 to revert the change in |
The workflow The reason this fails is because test/cypress/package.json in your repo defines a script "cypress": "cypress open" so when yarn cypress cache list the command is executed instead as yarn cypress open So now the Cypress app (aka the launchpad) is opened and waits for user input, which never happens. The example in the documentation on https://docs.cypress.io/guides/getting-started/opening-the-app#Adding-npm-Scripts suggests using a script name {
"scripts": {
"cypress:open": "cypress open"
}
} I suggest that you follow this example, as defining a script Previously the cache was being displayed using |
Hello, I just merged in @MikeMcC399 's PR and 5.8.3 just released. Please see if that fixes your problem. |
Thank you Ben @nagash77 for the quick response! I forked your repo and confirmed
Your issue should also be resolved, since v5.8.3 is effectively the same as v5.8.1. |
Thanks for all the troubleshooting, this is really helpful and I was quite surprise that the npm script name could affect this github action, I just started my day I'm in the process of updating everything with a PR running on my end. Also nice to see that my log was helpful in finding the issue I had :) So I can confirm that v5.8.3 works for me. Thanks a lot for the quick response |
Thanks all, the reason I'll bring up the documentation to my devs, and we'll look at changing that script name from Appreciate the quick turnaround on this! |
I'm happy to hear that you are back in business with your workflows! My apologies for breaking them temporarily. It was an aspect which I had not considered and it did not come up in testing. It's also good to know that the failure reason was the same in both cases. I added a note to the Discord server in the Best practices channel to alert other users about the pitfalls of redefining the name |
There is now a caution published to the Cypress documentation Getting Started > Opening the App > Adding npm Scripts which explicitly advises against using |
Our chrome browser tests started hanging on version 5.8.2 which was released on 6/13
Updating our action to v5.8.1 fixed our problem.
The text was updated successfully, but these errors were encountered: