Skip to content

fix(explorer): exit non-zero when query fails or times out - #23

Open
crazywriter1 wants to merge 1 commit into
Allium-Science:mainfrom
crazywriter1:fix/explorer-exit-code-on-failure
Open

crazywriter1 wants to merge 1 commit into
Allium-Science:mainfrom
crazywriter1:fix/explorer-exit-code-on-failure

Conversation

@crazywriter1

Copy link
Copy Markdown

Summary

  • Exit with EXIT_ERROR when run-sql / run polling ends in failed, canceled, or timeout
  • Add unit tests with a mocked HTTP client (no live API required)

Interactive use already prints error messages, but the CLI returned exit code 0 on failure — breaking shell scripts and CI pipelines that rely on $?.

Test plan

  • uv run pytest tests/test_explorer.py -v
  • uv run pytest (72 passed)

This branch has not been deployed

No deployments
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