Skip to content
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

kubernetesapply: improve cmd timeout handling #5221

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

milas
Copy link
Contributor

@milas milas commented Nov 23, 2021

If the process is killed due to context timeout, it'll have a
non-zero exit code (typically 137).

In these instances, we'll let the user know the command took too
long and point them at the Tiltfile API for update_settings so
they can increase the timeout value if needed.

Additionally, if stdout is empty on failure (which, given that
the commands are only supposed to write YAML on success to it, it
generally will be), it won't be output, so you don't get a blank
stdout: in the logs.

If the process is killed due to context timeout, it'll have a
non-zero exit code (typically 137).

In these instances, we'll let the user know the command took too
long and point them at the Tiltfile API for `update_settings` so
they can increase the timeout value if needed.

Additionally, if stdout is empty on failure (which, given that
the commands are only supposed to write YAML on success to it, it
generally will be), it won't be output, so you don't get a blank
`stdout:` in the logs.
@milas milas self-assigned this Nov 23, 2021
@milas milas merged commit f99cc73 into master Nov 29, 2021
@milas milas deleted the milas/ka-cmd-timeout branch November 29, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants