You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/04/26 01:05:54 UTC

[I] test(amber-python): add unit tests for Udon Python UDF debugger [texera]

Yicong-Huang opened a new issue, #4509:
URL: https://github.com/apache/texera/issues/4509

   ## Task Summary
   
   The Python-side runtime of the Udon UDF debugger has **zero unit-test coverage**:
   
   - `core/architecture/managers/debug_manager.py` — wraps `pdb.Pdb` with `SingleBlockingIO` pipes
   - `core/architecture/handlers/control/debug_command_handler.py` — RPC handler that translates frontend debug commands and forwards them to the debugger
   
   Peer managers in the same directory (`pause_manager`, `state_manager`, `executor_manager`) all have `test_*.py` files; debug_manager is the odd one out.
   
   The frontend covers the UI layer (`udf-debug.service.spec.ts`, `code-debugger.component.spec.ts`), but the actual pdb wiring on the worker side is untested.
   
   ## Proposed Action
   
   Add `test_debug_manager.py` and `test_debug_command_handler.py` next to the production files, following the existing pytest pattern used by `test_pause_manager.py` etc. Cover at minimum:
   
   - `DebugManager`: command put/has roundtrip, event has/get, blocking read returns flushed line, prompt is empty.
   - `WorkerDebugCommandHandler.translate_debug_command`: `b`/`break` prepends module name to lineno arg, other commands pass through, condition arg is preserved, whitespace is normalized.
   
   ## Priority
   
   P3 – Low (test-coverage gap)
   
   ## Task Type
   
   - [x] Testing / QA


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] test(amber-python): add unit tests for Udon Python UDF debugger [texera]

Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang closed issue #4509: test(amber-python): add unit tests for Udon Python UDF debugger
URL: https://github.com/apache/texera/issues/4509


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org