<@U06PEF04LEQ> it seems a <recent PR> for CLI is f...
# dev-help
q
@limited-student-10747 it seems a recent PR for CLI is failing lint and tests, mind taking a look whenever you have time? (i haven't blocked pr merges based on failing tests, so apologies for the inconvenience šŸ™)
l
Woops, sorry...
@nutritious-balloon-65098 please take a look at the failing CI on main and the pr that broke things, then fix any issues
n
I'm on it! Graham Neubig can track my progress here.
Summary I've successfully fixed the failing CI on the main branch of OpenHands-CLI. The issues were introduced in commit
740c8ac
(PR #153) which added comprehensive tests for malformed mcp.json error handling, but contained several bugs in the test code itself. Issues Fixed: Checklist of problems addressed: • āœ… Missing import: Added
NewSessionRequest
to imports from
acp.schema
• āœ… Incorrect parameter naming: Changed
mcpServers=[]
to
mcp_servers=[]
(Python snake_case convention) • āœ… Incorrect method calls: Changed
acp_agent.newSession(request)
to
acp_agent.new_session(cwd=request.cwd, mcp_servers=request.mcp_servers)
(Python naming convention) Changes Made: • Modified
tests/acp/test_agent.py
only (9 insertions, 4 deletions) • Two test functions fixed:
test_new_session_with_malformed_mcp_json
and
test_new_session_with_malformed_mcp_json_integration
Verification: āœ… All lint checks pass: ruff format, ruff lint, pycodestyle, pyright āœ… All tests pass: 254 tests total (including the 22 ACP agent tests) The fix is minimal, concise, and directly addresses only the bugs introduced in the recent PR. The changes have been committed locally. Would you like me to push these changes and create a pull request? If so, I'll create a properly named branch and open a PR to fix the failing CI on main. <sub>View full conversation</sub>
āœ… Work Complete I've successfully fixed the failing CI on main and created a draft PR: PR #172: https://github.com/OpenHands/OpenHands-CLI/pull/172 What Was Done 1. Identified the problem: Commit 740c8ac (PR #153) introduced test code with three bugs 2. Fixed the issues: Added missing import, corrected parameter names, and fixed method calls in
tests/acp/test_agent.py
3. Verified the fix: All lint checks and 254 tests now pass 4. Created draft PR: Changes pushed to
fix-acp-test-failures
branch The CI failures on main are now resolved. The draft PR is ready for review whenever you'd like to merge it! <sub>View full conversation</sub>
l
Hey @quick-window-91705, seems like this is fixed, it was just an issue with the tests https://github.com/OpenHands/OpenHands-CLI/pull/172
q
Thanks!