Skip to content

fix: resolve failing BATS and agent-zero Python unit tests#9

Open
samir-alsayad wants to merge 1 commit intomainfrom
fix-test-failures-249366311569349836
Open

fix: resolve failing BATS and agent-zero Python unit tests#9
samir-alsayad wants to merge 1 commit intomainfrom
fix-test-failures-249366311569349836

Conversation

@samir-alsayad
Copy link
Copy Markdown
Owner

This pull request fixes a comprehensive set of test failures found across the codebase during a full audit. It patches BATS tests for the core shell scripts (telemetry_aggregator, launcher_logic) and resolves multiple Python testing issues in the agent-zero service, getting the automated test suites back to a passing state.


PR created automatically by Jules for task 249366311569349836 started by @samir-alsayad

- Fixed `telemetry_aggregator.bats` by adding missing Learner Level extraction logic (`jq`) in `core/hud/telemetry_aggregator.sh`.
- Fixed `launcher_logic.bats` by updating the `tmux list-windows` mock to correctly output `0` for window index when the station does not exist (default mode).
- Fixed `agent-zero` Python tests by adding `runtime.is_development()` fallback condition in `websocket_manager.py::_debug` logging method.
- Prevented immediate execution of `asyncio.run()` on test collection in `services/agent-zero/tests/rate_limiter_test.py` via an `if __name__ == "__main__":` block to allow pytest collection to complete without failing due to API authentication errors.
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

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