-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
cypress run hangs when executed by TeamCity in 3.5.0 #5558
Comments
Having same issue here. Cypress hangs after running a single spec file when run from TeamCity but works when run manually on the same build agent. Using Cypress 3.6.0. |
Having same issue. Was using 3.5.0. Downgrading to 3.3.2 works fine. |
@hinfaits I see in the logs that you're passing
Then
So this eventually looks like it's being read as:
So, I'm not sure why the Anyway, I don't think this matters cause it seems to find the spec file to run later:
So I'm just making it to the end of your logfile and I actually do not see Cypress hanging. I am seeing Cypress issue an exit code of 1, since 1 test file failed, so I do not see how this is an issue with Cypress. |
For the record - I'm having the same issue - except with Cypress 3.6.0 |
@jennifer-shehane, in the logs the double .js is likely because I was using find/replace to remove some internal data (just to be on the safe side). In the logs where you've identified |
Interesting. Do you happen to have any on Does passing the |
We don't have beforeunload listeners generally. We do have some in an area we do not touch with our Cypress based automation. Running with Please let me know if there's any more information you'd like to debugging I can do. |
I have a similar issue and a very simple test suite. No
it fixes my problem! |
We have a |
This is happening in vsts/azure devops as well. |
This comment has been minimized.
This comment has been minimized.
Unfortunately we'll have to close this issue as there is not enough information to reproduce the problem. This does not mean that your issue is not happening - it just means that we do not have a path to move forward. Please comment in this issue with a reproducible example so we can look into the issue further. |
Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen. |
Current behavior:
This is a full log where the build hangs while running an empty test (our config includes a global hook to load the application and modify localStorage in the support file, but this test is empty). Some stuff has been redacted slightly. - https://pastebin.com/ULeiF83U
When running a normal test, it seems like things go wrong after these lines are spat out. After this there's more messages from the browser and I can see my application idling, making some requests and logging some messages but it doesn't look like any further test steps are executed. It looks like in both cases there's a drop in connectivity with the browser but they may be different issues.
Desired behavior:
Builds do not hang.
Steps to reproduce: (app code and test code)
This is happening consistently but I cannot seem to reproduce this outside of specifically launching our tests on the TeamCity agent from TeamCity Server. When using PsExec to run the tests as the system user (our TeamCity agent uses the system user) everything executes as normal.
I'm not sure how to deliver a full reproducible example as it looks like something specific to our environment. But I will try my best to help debug.
Versions
Cypress 3.5.0
Electron
Windows 8 + Windows 10
The text was updated successfully, but these errors were encountered: