-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[cli] - New progress bar method of giving feedback while deploying the stacks hides useful details #8893
Comments
To be fair you can use the CLI et al too, but yes, this has been driving me
bonkers. You routinely even just see a blank screen on a stack with 50+
resources. Esp if you are running in a VSCode Integrated terminal.
+1 cli option or flag please. If someone links me to the original change,
I'll implement the flag.
…On Fri, Jul 3, 2020 at 11:00 AM farzad-xgen ***@***.***> wrote:
❓ General Issue The Question
The new feedback method, showing the progress bar plus the few last lines
of the CloudFormation events, hides useful information from the user:
1- It doesn't give you the proper sense of progress by hiding what is
really going on.
2- You cannot review the changes while it is deploying, finding possible
flaws.
3- If the update fails, you have no way to know what was the cause unless
you open the CloudFormation console and review the events from there.
I really appreciate if you provide using this new feedback method
optional, or at least provide a flag so I can fall back to the old one
(progressive report of all the CloudFormation events)
Environment
- *CDK CLI Version:*
- *Module Version:* 1.49.1 (build 7d6321f
<7d6321f>
)
- *Node.js Version:* v10.21.0
- *OS:* Ubuntu 18.04.4 LTS
- *Language (Version):* Python 3.6.9
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8893>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAIL57SLJ3QJHN6VH5TQCLRZXXBNANCNFSM4OP4EGPQ>
.
--
Philip M. Gollucci
IT Executive and Engineering Leader
http://www.linkedin.com/in/pgollucci/
301.818.0719
|
I'd like to understand the objections in a little more detail though.
I specifically changed this to show you "what is going on", right now. What information are you missing?
What kind of flaws do you normally detect in this way, and how do you detect them?
It should definitely be showing you the failures front and center, all the time, instead of burying it in a scrollback log. Another one of the purposeful changes I made. If you aren't seeing the failures, I'd consider that a bug. Can you share an example?
I assume this is because of a small vertical terminal height, right? Or does the display malfunction in another way inside an embedded VSCode terminal? |
I have this issue, and the error I see a lot is:
Lots of this... and then the message (with the error) in vertical: So the error is there (if I read the vertical line I can see the error) but hard to read. |
Wooaahhh. Thought that was already fixed :( |
Can you share CDK CLI version if you get the cut-off column? |
OP also says it's in 1.49.1 |
I am on cdk cli 1.50.0 and still getting the cut-off column |
This happens when there's a failed update mostly because some of the outputs can't be deleted or other dependency related issues. I've also seen that when something very resource-related goes wrong. As shown above, the actual error message is gone and only the final failed message is shown. I'm using CLI 1.49.1 |
-v doesn't work for me, it throws out too much irrelevant and debug information. I really prefer to have the option to see the progress like before. |
Things getting mixed here. This ain't no bug @SomayaB. This is a request to implement a flag to use the old output. Fixing the output issues does not resolve this issue. I first liked the new progress output but it has become the single most annoying thing in CDK for me. If my stacks were not using the latest @aws-cdk's I would downgrade the cdk program. I spent a full day yesterday trying to trick cdk believing, it runs in a non-interactive shell. I failed. Please, implement a flag for this or check for a
I do not want to permanently stare on the screen to see what's going on. I want a summary. Not only in CI. |
Success on day 2. I experimented with wrapping cdk in small ruby and perl scripts. No success. I finally came up with this workaround: #!/bin/bash
CDK_LOG=$(mktemp)
tail -f "${CDK_LOG}" &
PID=$!
/usr/local/bin/cdk "$@" &> "${CDK_LOG}"
kill "${PID}" &> /dev/null Redirecting stderr is the only way to change the behavior. Unfortunately this is the same trigger that disabled color output. If you want to use this, save it in your $PATH as |
I would just like to add to the request to have an option to use the CI behaviour when running with a TTY. Usually I just kick off a build, wander off, make a tea, whatever. When I come back it is immensely more useful to see a log of what happened, rather than just a summary of whether it worked. CF already doesn't report on resources that were not changed, so all of the CREATE / UPDATE / DELETE messages are very useful, particularly I want to keep an eye out for any DELETE messages that I didn't expect! With just the progress bar I might see 'all good' when in fact a bunch of stuff was accidentally deleted. |
Any updates? This progress bar is really annoying, and it's useless. I'm wondering why it was introduced at the first place, I mean, who did request the feature? I think it wasn't anything out of UI, just some nice-looking feature. I really need the old one, now I need to keep the Cloudformation console open to trace any failed stack deployment. The error messages are simply gone in the aws-cdk deploy task and can't be traced without referring to CloudFormation. |
Agreed. I'd like to get rid of the progress bar entirely and go back to the previous "log-style" output. |
The code that determines whether 'fancy' output is available is here:
It seems like it's be pretty trivial to add an additional command line option. Maybe Or I see the 'verbose' flag can now be specified multiple times, fa4196b once for |
Here's an example of where it is much more difficult to provide support in a forum because of the new style output: https://www.reddit.com/r/aws/comments/i0tof3/aws_cdk_api_gateway_endpoints_arent_being_created/ If the old style output was there it would be obvious whether CF was creating a new 'Deployment' for API Gateway or not. |
I opened a PR at #9516 that detects whether the It's a minor change, so to anyone that is affected by this:
I have confirmed that this fixes the problem with garbled output on CircleCI. |
…ws#9516) Fixes: aws#8696 aws#8893 Detects whether the `CI` environment variable is set and reverts output to `standard` behavior. The fancy output was especially broken on CircleCI. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
I'm still seeing the issue in 1.60.0 -- here's some debug logging from my CI server:
|
(comment copied from #9516 (comment)) @andreialecu @rix0rrr I'm still not retaining the cfn events. Also, using Using export CI=""; cdk deploy
^[IsaidCloudFrontDistribution: deploying...
IsaidCloudFrontDistribution: creating CloudFormation changeset...
[██████████████████████████████████████████████████████████] (2/2)
✅ IsaidCloudFrontDistribution
Stack ARN:
arn:aws:cloudformation:us-west-2:123456789:stack/IsaidCloudFrontDistribution/c12044d0-e22b-11ea-858b-06675510bae4 Using cdk deploy --ci
IsaidCloudFrontDistribution: deploying...
IsaidCloudFrontDistribution: creating CloudFormation changeset...
[██████████████████████████████████████████████████████████] (2/2)
✅ IsaidCloudFrontDistribution
Stack ARN:
arn:aws:cloudformation:us-west-2:123456789:stack/IsaidCloudFrontDistribution/c12044d0-e22b-11ea-858b-06675510bae4 |
I hope this stays open. Unless there is an option to disable the bad progress bar without disabling the colors (=Original behavior) there is an issue. The ci flag disabled colors. |
Oh, no, perfect! Thanks @robertd |
Finally was able to test this with 1.62.0. Works nicely! Thanks so much @shivlaks ❤️ |
Thanks @udondan, glad it's working! Closing the issue. |
|
❓ General Issue
The Question
The new feedback method, showing the progress bar plus the few last lines of the CloudFormation events, hides useful information from the user:
1- It doesn't give you the proper sense of progress by hiding what is really going on.
2- You cannot review the changes while it is deploying, finding possible flaws.
3- If the update fails, you have no way to know what was the cause unless you open the CloudFormation console and review the events from there.
I really appreciate if you make using this new feedback method optional, or at least provide a flag so I can fall back to the old one (progressive report of all the CloudFormation events).
Environment
The text was updated successfully, but these errors were encountered: