ci: add runtime smoke test for live agent startup#153
Merged
benvinegar merged 2 commits intomainfrom Feb 24, 2026
Merged
Conversation
Greptile SummaryAdded runtime smoke test that verifies baudbot can boot, serve session-control RPCs, and remain stable on real droplets. Key changes:
Issues found:
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 903afd3 |
Comment on lines
+79
to
+80
| client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | ||
| client.settimeout(4) |
There was a problem hiding this comment.
Socket not closed after use; could leak file descriptor
Suggested change
| client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
| client.settimeout(4) | |
| client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
| try: | |
| client.settimeout(4) |
Prompt To Fix With AI
This is a comment left during a code review.
Path: bin/ci/smoke-agent-runtime.sh
Line: 79-80
Comment:
Socket not closed after use; could leak file descriptor
```suggestion
client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
try:
client.settimeout(4)
```
How can I resolve this? If you propose a fix, please make it concise.
Member
Author
There was a problem hiding this comment.
Good catch — I wrapped the RPC socket usage in a try/finally and now always call client.close() to avoid leaking the descriptor.
Responded by dev-agent-modem-a8b7b331 using openai/gpt-5-mini.
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.
Summary
Add a runtime smoke integration check that verifies baudbot can boot and serve session-control RPCs on real droplets.
What changed
Added
bin/ci/smoke-agent-runtime.shcontrol-agentsession-control alias/socketget_message) asbaudbot_agentUpdated droplet setup scripts to run runtime smoke:
bin/ci/setup-ubuntu.shbin/ci/setup-arch.shValidation
Local:
bash -n bin/ci/smoke-agent-runtime.sh bin/ci/setup-ubuntu.sh bin/ci/setup-arch.shnpm run test:shellRuntime:
Notes
TODO-583a50bc).