-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(cli): "fancy" progress reporting not disabled on all CI systems #9516
Conversation
Seems that a test is needed. Any suggestions on how to test this are appreciated. The PR that implemented it had no tests #8165 so I'm unsure what to do here. |
Some additional explanation:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have a --ci
flag with autodetection:
https://github.com/aws/aws-cdk/blob/master/packages/aws-cdk/bin/cdk.ts#L85
Please thread that argument through and use it.
I'm also confused why isTTY
should be true
on CircleCI. I would imagine it to be false
, which is why I thought the check that was already there would have sufficed. Do you have any thoughts on that by any chance?
The This was more of a quick band aid for an urgent problem that is breaking output on some CIs. I'm on vacation this week so I won't be able to dive too deep into it. If you can take over in the mean time, please. :) |
Some information about CircleCI and TTY here: https://discuss.circleci.com/t/circleci-terminal-is-a-tty-but-term-is-not-set/9965 |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…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*
@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 |
This doesn't seem to work with 1.61.1. I'm deploying with Octopus deploy and output seems to be the same and output is still coming from StdErr. I've tried
Both times I get the following output. What am I missing here? |
Thank you. This is a bandaid to the underlying issue of non-errors being written to stderr, but it cleans up logs in the short term |
Did this ever get released? |
Fixes: #8696 #8893
Detects whether the
CI
environment variable is set and reverts output tostandard
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