Skip to content

Add Python extension API handlers and router system#19

Merged
reiase merged 2 commits intomasterfrom
feature/refine_ray_support
Nov 28, 2025
Merged

Add Python extension API handlers and router system#19
reiase merged 2 commits intomasterfrom
feature/refine_ray_support

Conversation

@reiase
Copy link
Copy Markdown
Contributor

@reiase reiase commented Nov 27, 2025

  • Implemented a new module for Python extension API handlers in python/probing/handlers/pythonext.py.
  • Created a router system for handling API requests in python/probing/handlers/router.py.
  • Added an __init__.py file to the handlers package for better organization and automatic handler registration.
  • Developed unit tests for the new handlers and router functionality in tests/handlers/test_python_handlers.py.
  • Handlers include functionality for Ray timeline, Chrome tracing, and PyTorch profiling.

- Implemented a new module for Python extension API handlers in `python/probing/handlers/pythonext.py`.
- Created a router system for handling API requests in `python/probing/handlers/router.py`.
- Added an `__init__.py` file to the handlers package for better organization and automatic handler registration.
- Developed unit tests for the new handlers and router functionality in `tests/handlers/test_python_handlers.py`.
- Handlers include functionality for Ray timeline, Chrome tracing, and PyTorch profiling.
- Added comprehensive unit tests for the Python extension API handlers and router system.
- Included tests for extension list display, error handling, and parameter parsing.
- Enhanced test coverage for the PythonNamespace and tracing functionalities.
- Improved existing tests for better clarity and organization.
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 27, 2025

Codecov Report

❌ Patch coverage is 54.35140% with 278 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
python/probing/handlers/pythonext.py 13.87% 180 Missing ⚠️
probing/extensions/python/src/extensions/python.rs 41.22% 67 Missing ⚠️
python/probing/handlers/router.py 86.40% 17 Missing ⚠️
tests/handlers/test_python_handlers.py 88.99% 12 Missing ⚠️
tests/core/test_init.py 87.50% 2 Missing ⚠️
Files with missing lines Coverage Δ
...ng/extensions/python/src/extensions/python/tbls.rs 50.23% <100.00%> (ø)
python/probing/handlers/__init__.py 100.00% <100.00%> (ø)
tests/ext/test_tracing_span.py 100.00% <ø> (ø)
tests/inspect/test_trace_helpers.py 98.03% <ø> (ø)
tests/core/test_init.py 89.60% <87.50%> (ø)
tests/handlers/test_python_handlers.py 88.99% <88.99%> (ø)
python/probing/handlers/router.py 86.40% <86.40%> (ø)
probing/extensions/python/src/extensions/python.rs 28.73% <41.22%> (ø)
python/probing/handlers/pythonext.py 13.87% <13.87%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@reiase reiase merged commit 2404578 into master Nov 28, 2025
16 of 17 checks passed
@reiase reiase deleted the feature/refine_ray_support branch January 1, 2026 12:04
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