-
Notifications
You must be signed in to change notification settings - Fork 1.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
Produce console output while waiting for slow-to-create resources #6574
Comments
@dixler heres a few recommendations, pls only take what is useful to you...
|
That's questionable. A lot of CI systems are going to use a fixed timespan for liveness checks and as soon as we are silent beyond that we'd get killed. |
My preference would be to leave the behavior unchanged with regard to maxing out; i.e. if a slow-to-create resource currently causes Pulumi to time out and give up, I'd say preserve that behavior; otherwise, if Pulumi will currently wait indefinitely, keep that behavior. |
Any ideas on why the spinner is basically disabled in non-interactive mode? pulumi/pkg/backend/display/diff.go Lines 55 to 60 in 9df8d3a
@Frassle |
The spinner assumes it can mutate the screen buffer by sending backspace chars to Printf. That only works if stdout is pointing to a tty (Which is basically what Having said that NewSpinnerAndTicker already has code to check if IsInteractive is true and falls back to just printing plain dots if we don't have a tty. So I'm not sure why this outer check is also here. |
The next scheduled release is next Wednesday (23rd) |
When resources are slow to create, the pulumi CLI produces no console output while waiting for those resources. When running pulumi in a hosted CI environment like, say, CircleCI, that can cause the CI job to be forcibly terminated. CircleCI, for instance, kills jobs that produce no console output after 10 minutes. Naturally, that means the Pulumi update needs to be cancelled via
pulumi cancel
because it was forcibly killed while it was still running. Therefore, subsequent CI jobs will fail immediately.Proposed feature:
--logwaitmessages[=<interval>]
flagI propose that a flag for the pulumi CLI be added so that a "waiting..." message (or similar) will be output to stdout at least every
interval
seconds, with a sane default (30?). This will prevent pulumi from being auto-killed for producing no output for too long.The text was updated successfully, but these errors were encountered: