test(sglang): cover disaggregated OTLP tracing - #11742
Conversation
|
/ok to test f4fe8c3 |
This comment has been minimized.
This comment has been minimized.
|
/ok to test b2f44e6 |
|
/ok to test 704d836 |
WalkthroughChangesOTLP span validation
Estimated code review effort: 3 (Moderate) | ~25 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/serve/test_sglang.py`:
- Around line 28-31: Update the assertions in test_sglang.py, including the
additional affected range, to validate each engine.generate span as an expected
(service.name, disagg_role) pair rather than comparing service names and roles
as independent sets. Reuse the existing wait_for_engine_generate_count and
wait_for_engine_generate_roles helpers where appropriate, preserving the
expected prefill/decode role-to-service mapping.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 82c93965-6938-4281-87e4-75430b19bba0
📒 Files selected for processing (3)
tests/frontend/test_unified_worker_otlp_export.pytests/serve/test_sglang.pytests/utils/otel.py
|
/ok to test 37c57ec |
|
/ok to test 4fb4124 |
Signed-off-by: Kavita Narang <knarang@nvidia.com>
Signed-off-by: Kavita Narang <knarang@nvidia.com>
Signed-off-by: Kavita Narang <knarang@nvidia.com>
Signed-off-by: Kavita Narang <knarang@nvidia.com>
Signed-off-by: Kavita Narang <knarang@nvidia.com>
Signed-off-by: Kavita Narang <knarang@nvidia.com>
4fb4124 to
7fea4ef
Compare
Signed-off-by: Kavita Narang <knarang@nvidia.com>
|
/ok to test 09ddca6 |
Signed-off-by: Kavita Narang <knarang@nvidia.com>
|
/ok to test ab67a74 |
Signed-off-by: Kavita Narang <knarang@nvidia.com>
|
/ok to test 213b1db |
Signed-off-by: Kavita Narang <knarang@nvidia.com>
|
Follow-up on the I removed the disaggregated SGLang OTLP E2E from this PR and restored the sidecar launcher. Validation showed that the legacy The SGLang E2E should be reintroduced after native disaggregated gRPC support is available in the supported runtime image. The remaining PR diff is limited to shared OTLP attribute/role helpers used by existing frontend tests. Validation evidence:
|
|
/ok to test 0e3d4be |
Overview:
Centralize OTLP span-attribute and engine-role parsing used by the existing frontend tracing tests.
Details:
generaterolesWhere should reviewer start?
tests/utils/otel.pyfor the shared OTLP helperstests/frontend/test_unified_worker_otlp_export.pyfor their use in the existing testRelated Issues
Validation
0e3d4beabe17ad33387afa6ed10a20a5c6182675