Repository navigation
A Taskfile smoke test that stops the local service even when the check fails #3104
jiangxingfan1-coder
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.
I made a small Taskfile example for testing a local service that has to outlive a single command. It starts a gateway in a fresh temporary directory, checks its authenticated catalog using an offline sample, and registers the stop command before startup:
The directory matters: cleanup stops the gateway started for that invocation, not whatever happens to own the port. I ran the happy path and an intentionally wrong expected agent with Task 3.54.0 on macOS. The failure remained visible, and a separate TCP check found no listener after either run.
The example is for Open Agent API, which I maintain. It uses no model provider account. If the gateway is useful to you, a Star is appreciated.
All reactions