Skip to content

[TRTLLM-16757][fix] Capture telemetry fields inside configuration model sequences - #19779

Merged
Mgluhovskoi merged 6 commits into
NVIDIA:release/1.3from
Mgluhovskoi:fix/telemetry-model-list-capture
Oct 5, 2026
Merged

Mgluhovskoi merged 6 commits into
NVIDIA:release/1.3from
Mgluhovskoi:fix/telemetry-model-list-capture

Conversation

@Mgluhovskoi

@Mgluhovskoi Mgluhovskoi commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Fix telemetry capture for lists of configuration models, found while reviewing #19736. The manifest could discover fields such as extra_model_inputs.shape, but runtime capture stopped at the list and silently omitted them.

The runtime now captures safe fields through lists of models, and the manifest includes the surrounding list, such as list[tuple[int|literal]]. Privacy exclusions and size limits remain enforced. Field policy version advances to 4; the event schema is unchanged. Duplicate model routes now fail manifest construction, and rejected fields no longer set truncation metadata.

Previously, tuple/set model containers were traversed for the manifest but not captured at runtime. They are now excluded from both. No such fields exist in this branch's reachable TorchLlmArgs configuration models, so no current golden entries are removed. Tuple-valued scalar fields remain supported.

The generated documentation refreshes stale rows and enum domains from the existing release golden; these are not additional fields collected by this fix. This branch does not yet contain #19736's list-of-model declarations, so there are no list-projection rows in the golden or documentation yet.

Targets release/1.3. After combining this with #19736, regenerate the golden manifest so the shape entries include the outer list. Shape reporting requires a build containing both changes. Main-branch cherry-pick: #19811.

Validation: 70 focused capture tests and lint checks passed.

Dev Engineer Review

  • llmapi_config.py discovers nested model routes through unions and lists. Runtime capture follows those routes and applies field policies, sequence limits, and payload limits.
  • If a projected list element is absent or unsafe, runtime capture omits the field. Model-valued tuples and sets remain unsupported. Tuple-valued scalar fields remain supported.
  • Manifest construction rejects duplicate model routes. The field policy version advances from "3" to "4".
  • telemetry.md documents additional captured fields and updated allowed-value domains. The golden manifest must be regenerated to include the outer list in shape entries.
  • The supplied semantic review found no concrete compatibility defect in the inspected paths. It did not execute code or tests, and it did not establish production shape reporting. Supplied CI comments report PR helper pipeline success and failures in two release/1.3/L0_MergeRequest_PR builds. The failed tests are unspecified.

QA Engineer Review

  • Modified tests/unittest/usage/test_llmapi_config_capture.py; its field-policy-version expectation changes to "4".
  • Added tests/unittest/usage/test_llmapi_model_sequences.py. Coverage includes nested model lists, nullable leaves, model unions, unsupported containers, absent or unsafe elements, truncation, payload limits, exclusions, and duplicate routes.
  • These are unit tests, not integration tests. No integration-test-list update applies. Coverage verdict: sufficient for the described model-sequence paths. Test execution results are unavailable.

Per-File QA Perspective

  • docs/source/developer-guide/telemetry.md: Verify documented fields and allowed-value domains against the regenerated manifest, including list projections.
  • tensorrt_llm/usage/llmapi_config.py: Verify nested-list manifest discovery and runtime capture, including duplicate-route errors, privacy exclusions, unsafe or absent elements, and size limits.
  • tests/unittest/usage/test_llmapi_config_capture.py: Verifies the updated field-policy version. It is not an integration-test-list entry.
  • tests/unittest/usage/test_llmapi_model_sequences.py: Covers manifest and payload handling for model sequences, exclusions, and limits. It is not an integration-test-list entry.

@Mgluhovskoi
Mgluhovskoi requested review from a team as code owners October 1, 2026 21:00
@Mgluhovskoi
Mgluhovskoi marked this pull request as draft October 1, 2026 21:01
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/TensorRT-LLM/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: dd5dd2fa-fd13-49fe-960c-52b9e3fcd881

📥 Commits

Reviewing files that changed from the base of the PR and between 837e238 and 4a49d0a.

📒 Files selected for processing (1)
  • tensorrt_llm/usage/llmapi_config.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 9 remain after this review.


Walkthrough

Telemetry manifest generation now tracks nested model routes through unions and lists. Runtime capture projects those routes through model sequences, sanitizes leaf values, and records sequence truncation. The manifest documentation and capture tests were updated.

Changes

Configuration sequence capture

Layer / File(s) Summary
Route-based manifest policies
tensorrt_llm/usage/llmapi_config.py, docs/source/developer-guide/telemetry.md
Manifest generation records model and container routes and derives policies for list projections. The field-policy version and documented captured fields are updated.
Sequence traversal and capture validation
tensorrt_llm/usage/llmapi_config.py, tests/unittest/usage/test_llmapi_model_sequences.py, tests/unittest/usage/test_llmapi_config_capture.py
The collector traverses routes, sanitizes projected values, and reports truncation or exclusion. Tests cover manifest policies, payload shapes, unsafe elements, and payload limits.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant Collector as collect_llm_api_config_payloads
  participant CapturePath as _capture_path
  participant ModelInstances
  Collector->>CapturePath: Resolve and sanitize a manifest route
  CapturePath->>ModelInstances: Match model types and project list values
  CapturePath-->>Collector: Return presence, safety, and captured value
Loading

Merge Risk: ⚪ Minimal · up to 4a49d

Nested-model lists can now contribute safe telemetry fields, and rejected projections do not falsely report truncation. The review establishes no actionable current-head issue; the reported CI failures remain unattributed and do not establish a code regression.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 26.92% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 26 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title uses the required ticket and type format and clearly describes the main change: capturing telemetry fields inside configuration model sequences.
Description check ✅ Passed The description explains the issue, solution, compatibility details, related changes, target branch, follow-up work, and validation. It covers the required Description and Test Coverage information, a…
  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Comment @coderabbitai help to get the list of available commands.

@Mgluhovskoi
Mgluhovskoi marked this pull request as ready for review October 1, 2026 23:46
@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

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.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76029 [ run ] triggered by Bot. Commit: 6c82a3a Link to invocation

@brnguyen2 brnguyen2 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — the comments below are optional touch-ups, not blockers.

Route-based matching closes the gap where list[Model] fields were in the manifest but never captured. The tests check the privacy cases that matter here: one arm can't use another arm's leaf policy, an unsafe element past the truncation point still excludes the field, and no null is emitted for a missing element.

Process items:

  • Ticket: this is a bug fix to telemetry and privacy capture on a release branch, so please put an NVBug or JIRA in the title instead of [None].
  • Main counterpart: the PR targets release/1.3 only. Please link the matching main PR, or say this will be forward-ported, so main doesn't keep the dropped-field behavior or diverge on FIELD_POLICY_VERSION.
  • Docs diff: telemetry.md gains six rows unrelated to this change (cache_transceiver_config.agent_bounce_buffer_enable, enable_return_routed_experts, enable_tokenization_cache, sparse_attention_config.fuse_qkv_index_projection, sparse_attention_config.uses_spcompress, speculative_config.skip_ctx_buffer_budget_check, plus speculative_config.moe_backend) and new enum values, presumably from regenerating against current release/1.3. The table has no list-projection rows, since there are no list-of-model fields on this branch yet. Please say this in the description so reviewers don't look for rows that aren't there.
  • Removed traversal: the description says tuple/set containers of models "remain excluded", but _nested_models used to traverse tuple and set element types. Any key under a tuple[Model, ...] or set[Model] field now disappears from the manifest. If no such field exists in TorchLlmArgs today, please say so in the description; if one does, it's a removed field and consumers should hear about it.

Comment thread tensorrt_llm/usage/llmapi_config.py Resolved
Comment thread tensorrt_llm/usage/llmapi_config.py Resolved
@trtllm-agent

This comment has been minimized.

@coderabbitai

This comment has been minimized.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown

Semantic conflict review

The verdict of record is the Semantic conflict with target branch / PR #19779 commit status on the requested head commit. This summary updates on reply events and may lag between a new request and its reply.

Latest recorded state: No semantic conflict found (best effort) for head 6c82a3ae4ab7ab19e7ee35ca166c0061ab947505, target a5874beb8999b86d72071956480ce0e9185883a6, merge base 8ae24cb730acb4da7358fea51705351e32af2908 (request ed729eae-c6b9-4971-9967-1204f9f7d5e4). CodeRabbit analysis.

Best-effort AI judgment for the recorded revisions. PASS, FAIL and INCONCLUSIVE may be incomplete or incorrect. PR authors and reviewers should independently verify the evidence and relevant behavior. This semantic review and its status/workflow are advisory, not required merge checks under current repository rules; other merge requirements still apply. Advisory status does not make a confirmed defect safe to ignore.

Requested (UTC) Head Target Verdict Comment
2026-10-02T01:18:58Z 6c82a3ae4ab7 a5874beb8999 PASS reply

Processed request and reply comments are minimized to reduce timeline noise; they remain expandable for audit.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76029 [ run ] completed with state SUCCESS. Commit: 6c82a3a
/LLM/release-1.3/L0_MergeRequest_PR pipeline #28 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76051 [ run ] triggered by Bot. Commit: 6c82a3a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76051 [ run ] completed with state SUCCESS. Commit: 6c82a3a
/LLM/release-1.3/L0_MergeRequest_PR pipeline #30 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi
Mgluhovskoi force-pushed the fix/telemetry-model-list-capture branch from 837e238 to 4a49d0a Compare October 2, 2026 17:33
@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76103 [ run ] triggered by Bot. Commit: 4a49d0a Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@Mgluhovskoi Mgluhovskoi changed the title [None][fix] Capture telemetry fields inside configuration model sequences [TRTLLM-16757][fix] Capture telemetry fields inside configuration model sequences Oct 2, 2026
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76112 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github/19779-4a49d0a #76103 was force-killed by a newer pipeline run.
L0 job information not available (job may not have been triggered yet).

Link to superseding invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76112 [ run ] completed with state SUCCESS. Commit: 1d71e38
/LLM/release-1.3/L0_MergeRequest_PR pipeline #36 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76125 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76125 [ run ] completed with state FAILURE. Commit: 1d71e38
/LLM/release-1.3/L0_MergeRequest_PR pipeline #39 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76143 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76143 [ run ] completed with state FAILURE. Commit: 1d71e38
/LLM/release-1.3/L0_MergeRequest_PR pipeline #43 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76144 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76144 [ run ] completed with state FAILURE. Commit: 1d71e38
/LLM/release-1.3/L0_MergeRequest_PR pipeline #44 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76158 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76158 [ run ] completed with state FAILURE. Commit: 1d71e38

Link to invocation

@Mgluhovskoi

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76251 [ run ] triggered by Bot. Commit: 1d71e38 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #76251 [ run ] completed with state SUCCESS. Commit: 1d71e38
/LLM/release-1.3/L0_MergeRequest_PR pipeline #49 completed with status: 'SUCCESS'

CI Report

Link to invocation

@Mgluhovskoi
Mgluhovskoi merged commit 351f9eb into NVIDIA:release/1.3 Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants