Repository navigation
drop to Debug shell after exit if space bar is pressed - #22
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@hyperrealist @coretl FYI.
This adds a feature to help with debugging. It is useful to be able to cancel the primary process and try re-running it with different arguments. The standard way to do this is to update the K8S manifest and make sleep the entry point, but that often makes us end up switching back and forth between sleep and the normal entrypoint and creates churn in the repo for ArgoCD tracked processes.
For processes such as IOCs wrapped by
stdio-socket, this PR allows you to have the standard entrypoint all of the time. If you then useconsoleto attach to the primary process console you can exit the process and then have 5 seconds to press space in order to drop into a shell. When you finally exit that shell then process 1 exists and k8s will restart the pod as normal.Does this seem sensible?
Also, @GDYendell reported that fastcs-odin, running with
stdio-socketwas truncating a very long stack trace when it crashed. I have added a fix to correctly wait fordo_stdoutto seeEOFbefore exiting.example usage of the debug shell below:
