Repository navigation
[TRTLLM-16757][fix] Forward-port configuration model-list telemetry capture to main - #19811
Conversation
Signed-off-by: Maxim Gluhovskoi <[email protected]> (cherry picked from commit b2e156a)
Signed-off-by: Maxim Gluhovskoi <[email protected]> (cherry picked from commit 0b04f8f)
Signed-off-by: Maxim Gluhovskoi <[email protected]> (cherry picked from commit 6c82a3a)
Signed-off-by: Maxim Gluhovskoi <[email protected]> (cherry picked from commit 271a669)
Signed-off-by: Maxim Gluhovskoi <[email protected]> (cherry picked from commit 837e238)
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review. WalkthroughTelemetry capture now records nested model routes in its field manifest and uses matching routes to capture safe values at runtime. The documentation and tests reflect the updated policy version, captured fields, and sequence handling. ChangesTelemetry capture
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant collector
participant capture_path as _capture_path
participant route as PolicyVariant route
collector->>capture_path: request capture for a field
capture_path->>route: traverse runtime models and lists
capture_path-->>collector: return presence, safety, and sanitized value
collector->>collector: add present safe value to payload
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The telemetry changes are ready to merge after normal checks; no unresolved issue was established in the reviewed paths. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 28 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/bot run |
|
PR_Github #76087 [ run ] triggered by Bot. Commit: |
brnguyen2
left a comment
There was a problem hiding this comment.
Approving — the comments below are optional touch-ups, not blockers.
Ran the three tests/unittest/usage files locally against this head: 89 passed, including the committed-golden match. Route/segment handling in _capture_path holds up: the model count in every route equals the path segment count, so the shared segment_index stays consistent across variants.
Two whole-PR notes:
- The
telemetry.mdrefresh is already two rows behind the golden in this branch's own base (see inline). Since the description says the doc diff "refreshes stale rows from the existing golden", regenerate it from the current golden before merge. [None]on a behavior-changing fix with a field-policy-version bump: fine if the release PR #19779 carries the tracking, but if that one also has no ticket, this is the place to add one since the wire format for list-projected keys is new.
|
Automatically added "ci: full pre-merge approved" because this PR has satisfied the required GitHub review approvals. Unresolved review conversations and other required checks remain independent merge requirements. |
Signed-off-by: Maxim Gluhovskoi <[email protected]>
|
/bot run |
|
PR_Github #76114 [ run ] triggered by Bot. Commit: |
|
PR_Github #76087 [ run ] completed with state |
|
PR_Github #76114 [ run ] completed with state |
…atches_committed_golden The golden manifest is current again on main (regenerated most recently in NVIDIA#20077, after drifting via NVIDIA#19811 while this waiver hid the gate), so re-enable the premerge privacy gate. Signed-off-by: Faraz Khoubsirat <[email protected]>
…atches_committed_golden The golden manifest is current again on main (regenerated most recently in NVIDIA#20077, after drifting via NVIDIA#19811 while this waiver hid the gate), so re-enable the premerge privacy gate. Signed-off-by: Faraz Khoubsirat <[email protected]>
Cherry-pick forward-port of #19779 from
release/1.3tomain, including Brian's duplicate-route guard and the truncation-metadata fix.Capture safe fields inside lists of configuration models and describe their outer lists in the manifest, for example
list[tuple[int|literal]]. Privacy exclusions and size limits remain enforced. Field policy version advances to 4; the event schema is unchanged.The old traversal listed fields beneath tuple/set model containers but could not capture them. Those containers now stay out of the manifest too; no existing golden entries are removed. Tuple-valued scalar fields remain supported. The documentation diff refreshes stale rows from the existing golden, not additional collection introduced here.
Neither this main snapshot nor the release PR's snapshot contains the extra-input declarations from #19736, so there are no list-projection golden/doc rows yet. Regenerate the golden after combining the corresponding feature with this fix.
Validation: 70 focused capture tests passed on each branch, plus 19 manifest/documentation tests on main. Lint checks passed and the main golden matches generated output. No GPU inference or live ingestion testing was performed.
Dev Engineer Review
4. The event schema remains unchanged.QA Engineer Review
tests/unittest/usage/test_llmapi_config_capture.pyupdates the expected field policy version to4.tests/unittest/usage/test_llmapi_model_sequences.pyadds CPU-only coverage for manifest and payload agreement, empty and unset parents, duplicate routes, nullable leaves, unsupported containers, union-arm policies, unsafe elements, truncation, payload limits, and excluded fields.main. They also report lint passing and themaingolden matching generated output. No GPU inference or live ingestion testing was performed.Per-File QA Perspective
tensorrt_llm/usage/llmapi_config.py— Verify that list projections include only fields allowed by the active model route. Check that exclusions, unsafe elements, truncation, and payload limits produce the expected capture metadata.docs/source/developer-guide/telemetry.md— Verify that manifest counts, captured fields, and categorical choices match the generated golden. The supplied objectives note that extra-input declarations are absent from both snapshots, so related list-projection documentation and golden rows are not included.tests/unittest/usage/test_llmapi_config_capture.py— Checks failure metadata’s field policy version and existing capture-safety behavior. This unit test is not listed in the integration CI or manual-QA lists.tests/unittest/usage/test_llmapi_model_sequences.py— Checks nested model-list capture, route matching, privacy exclusions, and size limits. This unit test is not listed in the integration CI or manual-QA lists.