github-action: Action timing out as of a few days ago
I see some others having similar issues as of a few days ago but despite having upgraded to v2.3.9 of this plugin we’re still seeing a timeout:
Starting the development server...
http://localhost:3000 timed out
Error: Timeout awaiting 'request' for 1000ms
Any ideas?
Full logs:
Run cypress-io/github-action@v2.3.9
Received 83886080 of 173170025 (48.4%), 80.0 MBs/sec
Received 146800640 of 173170025 (84.8%), 70.0 MBs/sec
Received 168975721 of 173170025 (97.6%), 53.7 MBs/sec
Received 168975721 of 173170025 (97.6%), 40.3 MBs/sec
Received 168975721 of 173170025 (97.6%), 32.2 MBs/sec
Received 168975721 of 173170025 (97.6%), 26.8 MBs/sec
Received 168975721 of 173170025 (97.6%), 23.0 MBs/sec
Received 168975721 of 173170025 (97.6%), 20.1 MBs/sec
Received 173170025 of 173170025 (100.0%), 18.1 MBs/sec
Cache Size: ~165 MB (173170025 B)
/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/395f82d7-f931-4439-a531-26fcc49358d3/cache.tzst -P -C /home/runner/work/frontwork/frontwork
/usr/bin/yarn --frozen-lockfile
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.2.1: The platform "linux" is incompatible with this module.
info "fsevents@2.2.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform "linux" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @testing-library/user-event@12.2.2" has unmet peer dependency "@testing-library/dom@>=7.21.4".
warning " > react-image-annotation@0.9.10" has unmet peer dependency "prop-types@^15.6.0".
warning "@storybook/react > @babel/preset-react@7.12.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @babel/plugin-transform-react-jsx@7.12.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
warning " > @graphql-codegen/typescript-react-apollo@2.0.7" has unmet peer dependency "graphql-tag@^2.0.0".
warning " > @storybook/addon-essentials@6.0.28" has unmet peer dependency "babel-loader@^8.0.0".
warning " > @storybook/addon-essentials@6.0.28" has unmet peer dependency "react-is@^16.8.0".
warning "@storybook/addon-essentials > @storybook/addon-docs@6.0.28" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/addon-essentials > @storybook/addon-docs@6.0.28" has unmet peer dependency "babel-loader@^8.0.0".
warning "@storybook/addon-essentials > @storybook/addon-docs@6.0.28" has unmet peer dependency "react-is@^16.8.0".
warning "@storybook/react > @storybook/core@6.0.28" has unmet peer dependency "@babel/core@*".
warning "@storybook/addon-essentials > @storybook/addon-docs > @storybook/core > @babel/plugin-proposal-export-default-from@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @storybook/core > @babel/register@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "@storybook/addon-essentials > @storybook/addon-docs > @storybook/core > @babel/plugin-proposal-export-default-from > @babel/plugin-syntax-export-default-from@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > @storybook/preset-create-react-app@3.1.5" has unmet peer dependency "@babel/core@*".
warning " > @storybook/preset-create-react-app@3.1.5" has unmet peer dependency "@storybook/node-logger@*".
warning " > @storybook/react@6.0.28" has unmet peer dependency "@babel/core@^7.0.1".
warning "@storybook/react > @babel/preset-flow@7.12.1" has unmet peer dependency "@babel/core@^7.0.0-0".
warning " > storybook-react-router@1.0.8" has unmet peer dependency "@storybook/addon-actions@^4.0.0||^5.0.0||5.2.0-beta.13".
warning " > storybook-react-router@1.0.8" has unmet peer dependency "react-router@^4.0.0||^5.0.0".
[4/4] Building fresh packages...
Done in 46.55s.
/opt/hostedtoolcache/node/12.19.0/x64/bin/npx cypress cache list
┌─────────┬──────────────┐
│ version │ last used │
├─────────┼──────────────┤
│ 5.6.0 │ a minute ago │
└─────────┴──────────────┘
/opt/hostedtoolcache/node/12.19.0/x64/bin/npx cypress verify
25l[19:17:37] Verifying Cypress can run /home/runner/.cache/Cypress/5.6.0/Cypress [started]
[19:17:40] Verifying Cypress can run /home/runner/.cache/Cypress/5.6.0/Cypress [completed]
25h25h::debug::saving NPM modules
/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/frontwork/frontwork --files-from manifest.txt
Cache saved successfully
/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/frontwork/frontwork --files-from manifest.txt
Cache saved successfully
start server with command "yarn start"
current working directory "/home/runner/work/frontwork/frontwork/client"
waiting on "http://localhost:3000" with timeout of 30 seconds
/usr/bin/yarn start
yarn run v1.22.5
$ npm run watch:css && cross-env EXTEND_ESLINT=true react-app-rewired start
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1605467898479-0.33537419860463835/node but npm is using /opt/hostedtoolcache/node/12.19.0/x64/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
> frontwork@0.1.0 watch:css /home/runner/work/frontwork/frontwork/client
> postcss src/tailwind.css -o src/main.css
ℹ 「wds」: Project is running at http://10.1.0.4
ℹ 「wds」: webpack output is served from
ℹ 「wds」: Content not from webpack is served from /home/runner/work/frontwork/frontwork/client/public
ℹ 「wds」: 404s will fallback to /
Starting the development server...
http://localhost:3000 timed out
Error: Timeout awaiting 'request' for 1000ms
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 30 (11 by maintainers)
I don’t think it has been resolved. I’m going back to 2.3.8 again 🤷♂️
That might be it @jrparish - I have added a test with server that takes 5 seconds and it used to fail, now it is passing in https://github.com/cypress-io/github-action/pull/245
Ok. Here’s the debug log to compare between working and non-working versions:
v2.3.8 (working)
v2 (not working)
From what I understand from the log, my Rails server has already started after 10 seconds but somehow the newest wait-on implementation is giving ETIMEDOUT and waited for 120 seconds as configured in
wait-on-timeout.This is the config, if it’s helpful:
@barisbora 's suggestion worked for me too. I believe the new changes related to
wait-onis the problem, I’ll try to get the debug log or an example.When I switch back to @v2.3.8 problem gone!