Skip to content
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

BUG - Deployment test phase hangs indefinitely once all the tests are completed (using Cypress) #347

Closed
jeececab opened this issue Dec 30, 2019 · 16 comments
Labels
archived This issue has been locked. bug Something isn't working pending-release Pending code push.

Comments

@jeececab
Copy link

jeececab commented Dec 30, 2019

When I try to deploy, the tests run as usual, but the test step hangs indefinitely once the tests are over, therefore the deployment never happens. Had no similar problem before. I did a deployment last week with no problem whatsoever. I didn't change the build settings.

bb

Build settings:

fddfd

@kahdojay kahdojay added the bug Something isn't working label Dec 30, 2019
@kahdojay
Copy link
Contributor

@jeececab are you using 3.4.1? Please see #115 (comment)

@jeececab
Copy link
Author

jeececab commented Dec 30, 2019

@kahdojay

@jeececab are you using 3.4.1? Please see #115 (comment)

Hey! Thanks for the follow up,
Nah, I was using 3.7.0. It was working well until last week. I also tried 3.8.1 and no luck

@kahdojay
Copy link
Contributor

kahdojay commented Jan 2, 2020

@jeececab can you try 3.4.1? Let us know if you still experience the issue using that version of Cypress.

@neilbts
Copy link

neilbts commented Jan 2, 2020

I have the same problem and confirmed it exists on 3.8.1 as well as 3.4.1.

@danieletieghi
Copy link

Same problem for me (v3.8.1). I would try with 3.4.1, but now I'm blocked by another problem in the build phase.

@germain-receeve
Copy link

germain-receeve commented Jan 7, 2020

Same issue here, downgrading to cypress 3.4.1 didn't help.
Did anybody figured out a way around this issue?

@patleeman
Copy link

I have the same issue.

The build hangs on test, or gets past test and shows a deploy failed. I've been trying many different variations with no luck.

ARN arn:aws:amplify:us-east-1:641747502493:apps/dd79gp2sncpp1

@patleeman
Copy link

For those having issues see #352 (comment)

@ben-elsen
Copy link

I am facing the same issue!

@soysaucem
Copy link

I temporarily fix it by running cypress tests in the build phase. But you can't download the videos if tests fail

@jeececab
Copy link
Author

@kahdojay Hi! No 3.4.1 didn't resolve the issue.

@cslogan-red
Copy link

As per @patleeman (#352) and our latest comment on #115 , the recent change in mochawesome-merge syntax is causing this behavior, the exception is being eaten and not re-thrown properly, as described on #115, each fix is currently pending release and will be GA next week. In the meantime updating the syntax of the final postTest command as described will get your tests working again.

@cslogan-red cslogan-red added the pending-release Pending code push. label Jan 16, 2020
@swaminator
Copy link
Contributor

@jeececab @neilbts @trietjack @ben-elsen Please verify the fix. Closing the issue.

@neilbts
Copy link

neilbts commented Jan 23, 2020

@swaminator I confirmed it is working as of this morning. Thank you!

@loera140
Copy link

loera140 commented May 2, 2020

I came across this as my project started to hang while starting the development server.

Screen Shot 2020-05-02 at 10 40 10 AM For me I was able to narrow it down to something to do with react-scripts. I found that "react-scripts": "^3.4.1" could not start my app within Amplify. However, by pinning the version to "react-scripts": "3.4.0" I was able to run all the tests successfully. Hopefully, this helps somebody.

Just for reference:
Screen Shot 2020-05-02 at 10 47 00 AM

Also, I ran into this same problem on a Jenkins server and fixed it there as well with this change

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the archived This issue has been locked. label Oct 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived This issue has been locked. bug Something isn't working pending-release Pending code push.
Projects
None yet
Development

No branches or pull requests