Repository navigation
Colab CLI console fixes and looking for more bugs #110
Dts0
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Colab CLI console fixes and looking for more bugs
Summary
I recently found out that Colab can be used through the CLI, so I decided to give it a try. While using
colab console, I ran into a couple of bugs and ended up fixing them.After these fixes, I was able to keep a Colab console session running continuously for about 11 hours, with
toprunning during the test, and it stayed stable.The fixes are in this PR:
#109
What I fixed
Issue #106 — long-running sessions break after about an hour
#106
How to reproduce:
Keep a Colab console session running for around 60 minutes. Once the runtime-proxy token expires, the connection can fail and the console may appear to freeze or disconnect even though the Colab runtime itself is still alive.
The fix refreshes the runtime-proxy credentials and allows the session to recover instead of treating an expired token as a dead runtime.
Issue #89 — console freezes after a large amount of output
#89
How to reproduce:
Start
colab consoleand run something that produces more than much greater than 600 KB of terminal output.For example:
python -c "print('A' * 7000000)"Previously, the console would stop receiving output after around 600 KB.
This turned out to be related to the
/colab/ttyflow-control protocol. The runtime expects acknowledgements for marked output chunks, and without them the remote PTY eventually pauses.The fix now sends those acknowledgements correctly after flushing the output locally.
Any other bugs?
I've mainly tested long-running interactive console sessions so far.
If anyone has run into other reproducible issues with
colab consoleor long-running Colab CLI sessions, please let me know. Reproduction steps would be especially helpful.I'd be happy to take a look and see if they can be fixed in the same PR.
All reactions