-
Notifications
You must be signed in to change notification settings - Fork 116
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 get stuck on deploy after test phase #1167
Comments
Hi @rubfergor -- Sorry that you are experiencing this. We'll take a look. |
We are having the same issue. Our preview app deployment hangs on
amplify.yml
I moved the tests into the build phase as a workaround (hat tip to #115 (comment)). |
@litwicki @gwryssekk we are facing similar issue when running Testcafe e2e tests in test phase..... Logs from deploy phase: Here is the appId: However we are running same set of Testcafe tests in develop as part of build phase and it works..... |
@sugi-s This particular scenario is something we are investigating a root cause for and prioritizing as soon as we can. In the meantime are you able to use the workaround proposed? |
Just noticed this issue and it's similar to what I was experiencing. In my case I was missing configFilePath in the tests > artifacts section. Once I added that pointing to my test report file it starting working. An example is configFilePath: '**/mochawesome.json' as in the documentation here - https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html (just before the disabling tests section). |
Hi @litwicki ! Is there any advance? Can I help you somehow in debugging the issue? |
@rubfergor we have not started working on the permanent fix for this issue yet. Are you able to use the workaround proposed here: #1167 (comment) |
@litwicki Any updates with this issue??? With the workaround we cannot download the screenshots and it is getting difficult to debug issues when there are test failures in CI pipeline. Appreciate if this can be looked into |
@litwicki no, I wasn't able to get it up and running with that |
@rubfergor @sugi-s we're looking at a comprehensive approach to resolving this issue permanently that is taking longer than we had originally thought to properly design. We'll be focusing on that with a majority of the team next week and will share updates as we have them. |
+1 for resolving this issue with some urgency. @litwicki please let us know expected timeline for a fix, as it was already several weeks since you mentioned your team would focus on this 🙏 |
Managed to resolve the deployment failure by including all possible parameters (even though I'm not using them as in Alchemists post). For anyone doing a similar test regime:
|
Thanks, @monscamus. We had the same issue for months and had just started moving everything over to gitlab-ci because of that. What frustrates me is not that the Amplify CI requires you to set that parameter even when it's not required (I can live with that), but that there was no useful error message in the pipeline. The Deploy stage would only output these two lines:
How on earth were we supposed to guess that there is a syntax error in the test stage of the amplify.yml from that? And this is not the first issue we ran into with mysterious stage failures in the Amplify CI. Using the Amplify CI has been a terrible user experience so far, because of not providing any useful error logs when things go wrong. Please, Amplify console team, prioritize fixing this. |
Any update on this? |
Resolving this issue as we have not observed issues with this after we fixed deployment failures. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
This issue has been automatically locked. |
Hi,
I'm running a site using a Create React App monorepo. The first build was successful, but after I added a test section Amplify run the tests and tries to publish the test artifacts instead of the frontend ones in a similar scenario to #1160. If I don't put anything in the artifact section of the test, the build complete but the test phase fails but if I put a dummy file with a report from jest it get stuck on deployment after saying that it has published my test artifacts.
For reference, my region is us-east-1 and my appId is d1s2p57h03rwzi, in build 5 or previous. My YAML file is this:
The text was updated successfully, but these errors were encountered: