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

Amplify + Cypress: Deployment test phase hangs indefinitely once all the tests are completed #6065

Closed
jeececab opened this issue Dec 30, 2019 · 7 comments

Comments

@jeececab
Copy link

jeececab commented Dec 30, 2019

Current behavior:

When I try to deploy, the tests run as usual, but the test step hangs indefinitely once the tests are over (At the "All specs passed" line), 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

Desired behavior:

The deploying step should happen after the tests, OR the tests results should show (artefacts, etc) after failure.

Steps to reproduce: (app code and test code)

Deploy on Amplify and add the Cypress tests step in the build

Versions

Cypress 3.8.1 and also tried 3.7.0 (which was working fine before)

@neilbts
Copy link

neilbts commented Dec 31, 2019

I am currently struggling with an identical problem. I have a single very simple test which is passing. When I download the artifacts I can see the test executing successfully.

I've seen a few variations throughout the day and with various tweaks (eg. calling executables with yarn rather than npx, not doing mochawesome reports, skipping merge, etc...) and saw a variety of results which were not consistently reproducible. For example, sometimes it gets past the cypress run and hangs on the postTest phase.

Also, I don't think Cypress is reporting your tests as failing. The headers are just not aligned with the results.

@jeececab
Copy link
Author

@neilbts Oh you're right about the last point, thanks. I removed it from the description.

Interesting points. I tried a few variations too with no success :( Never had problems in the past weeks. It may be a regression on their side (Amplify or Cypress). I also opened an issue with amplify-console:

aws-amplify/amplify-hosting#347

@c32hedge
Copy link

What browser and OS? Could be similar to #6023?

@neilbts
Copy link

neilbts commented Dec 31, 2019

I am running the following...
Browser: Electron 78 (headless)
OS: Amazon Linux 2 Docker container image (137112412989.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:2)

@danieletieghi
Copy link

Same problem here, tests were running correctly last year, now they hang at the end of the test phase (all test passed).

[venting mode on] Actually it's a bit frustrating, I'm new with amplify, but as of now it seems to be complicating my life instead of easing it. I've read "production ready" but it's like everything I'm trying has a bug. [/venting mode off]

@neilbts
Copy link

neilbts commented Jan 2, 2020

For the record I tried with video disabled (--config video=false) thinking it may be an issue with video processing, however, problem persists.

@danieletieghi same feelings about Amplify. It has been overpromised and underdelivered.

@jeececab
Copy link
Author

Closing (issue resolved): see aws-amplify/amplify-hosting#347

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants