https://cypress.io logo
Test failed on Github action
# cypress-cloud
r
Can someone help me to understand the causes to fail the test on CI? All my tests get passed when I run locally, I have implemented the GitHub action to run tests on push there is no issue with installing dependencies but the issue is that some tests are failing. Both local and CI use the same specs:  chrome version
chrome 112
, cypress version (12.9.0), and node(14.21.0). Difference: Github action I used parallel. One error I found is:
Failed to save: Unable to reserve cache with key yarn-linux-x64-somekey, another job may be creating this cache. More details: Cache already exists. Scope: refs/heads/qa/development, Key: yarn-linux-x64-
Any possible reasons?
m
Hi @rich-pharmacist-74804 The reason for failure on GitHub may not be due to the
github-action
. I had the opposite experience yesterday where Cypress tests failed locally and were successful on GitHub. This can be due to different timing and performance of the GitHub runner. I see that you are using an older version of Node.js. That goes to end of life at the end of this month. If you are seeing unexplained problems, I would try to isolate the failing tests and run these individually e.g. use
it.only
. Also you could enable debugging - see https://github.com/cypress-io/github-action#debugging.
r
Sure. will do that. Thanks
3 Views