Skip to content

drop to Debug shell after exit if space bar is pressed - #22

Merged
gilesknap merged 7 commits into
mainfrom
debug-shell
Jan 14, 2026
Merged

gilesknap merged 7 commits into
mainfrom
debug-shell

Conversation

@gilesknap

@gilesknap gilesknap commented Jan 10, 2026 •

Copy link
Copy Markdown
Member

@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 use console to 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-socket was truncating a very long stack trace when it crashed. I have added a fix to correctly wait for do_stdout to see EOF before exiting.

example usage of the debug shell below:
image

@gilesknap
gilesknap merged commit 85adda6 into main Jan 14, 2026
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.

1 participant