chore: Add debug info when an task fails to deploy#5249
chore: Add debug info when an task fails to deploy#5249mergify[bot] merged 16 commits intoaws:mainlinefrom
Conversation
|
🍕 Here are the new binary sizes!
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## mainline #5249 +/- ##
============================================
- Coverage 69.84% 69.78% -0.07%
============================================
Files 296 296
Lines 44305 44704 +399
Branches 286 286
============================================
+ Hits 30945 31195 +250
- Misses 11865 11996 +131
- Partials 1495 1513 +18
☔ View full report in Codecov by Sentry. |
|
For "In case of Essential container exited" it would be great that we include copilot logs command ( |
CaptainCarpensir
left a comment
There was a problem hiding this comment.
No feedback to give, just a few questions that I'm curious about.
Lou1415926
left a comment
There was a problem hiding this comment.
this is such a huge improvement on the UX ❤️ !!
| Padding: c.padding, | ||
| }, | ||
| &singleLineComponent{ | ||
| Text: fmt.Sprintf("1. You can run %s to see the logs of the last stopped task.", |
There was a problem hiding this comment.
quick question - should we always suggest this, or should we suggest this only if a stopped reason is "essential container exit" 🤔 what do you think?
There was a problem hiding this comment.
According to this doc , incase of ELB health check failurealso there are suggesting to check for the application logs.
Also there might be a scenario where customers can have print/log statements in the application code, in this case copilot svc logs --previous might be helpful. So I am thinking to include this recommendation for all the cases.
This PR will display the latest 2 stopped tasks and the reasons in the progress tracker. 1. In case of Essential container exited <img width="1043" alt="Screenshot 2023-09-05 at 6 15 06 PM" src="https://github.com/aws/copilot-cli/assets/71282729/3cad713f-cead-4414-8cd8-58b00d9100fe"> 2. In case of Unable to pull secrets <img width="1177" alt="Screenshot 2023-09-05 at 6 26 34 PM" src="https://github.com/aws/copilot-cli/assets/71282729/b7122276-9ac9-4341-8202-875e86f27735"> 3. In case of ELB healthCheck failures <img width="1103" alt="Screenshot 2023-09-05 at 6 55 50 PM" src="https://github.com/aws/copilot-cli/assets/71282729/23dbfe88-328d-4be7-848f-796543f08092"> By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
This PR will display the latest 2 stopped tasks and the reasons in the progress tracker.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.