Skip to content

[TRTLLM-17261][infra] Give the trtllm-serve test directories the owners of the code they test - #21407

Open
JunyiXu-nv wants to merge 1 commit into
NVIDIA:mainfrom
JunyiXu-nv:dev-junyix-feat-serve-test-owners
Open

JunyiXu-nv wants to merge 1 commit into
NVIDIA:mainfrom
JunyiXu-nv:dev-junyix-feat-serve-test-owners

Conversation

@JunyiXu-nv

@JunyiXu-nv JunyiXu-nv commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Dev Engineer Review

.github/CODEOWNERS adds three ownership rules for serve test directories. The rules assign /tests/test_common/serve and /tests/unittest/serve to @NVIDIA/trt-llm-runtime-devs, and /tests/unittest/serve/api/visual_gen to @NVIDIA/trt-llm-torch-visual-gen-devs. These are metadata changes; the supplied diff shows no code changes.

QA Engineer Review

No test changes.

Per-File QA Perspective

  • .github/CODEOWNERS: The update changes review ownership for the specified test directories. It does not change test behavior or CI workflows.

Description

Adds three .github/CODEOWNERS rules so that ownership of the trtllm-serve test directories follows ownership of the code they test, as it already does for /tests/unittest/llmapi and /tests/unittest/_torch/visual_gen. Part of the trtllm-serve refactor (epic TRTLLM-17056), task TRTLLM-17261 (pre-move guards and landing zone).

New rule (line on this PR) Directory Owner
.github/CODEOWNERS:138 tests/test_common/serve/ — shared fixtures and fakes that trtllm-serve tests build servers with @NVIDIA/trt-llm-runtime-devs
.github/CODEOWNERS:159 tests/unittest/serve/ — tests mirroring tensorrt_llm/serve/ @NVIDIA/trt-llm-runtime-devs
.github/CODEOWNERS:382 tests/unittest/serve/api/visual_gen/ — VisualGen serving tests @NVIDIA/trt-llm-torch-visual-gen-devs

tensorrt_llm/serve/ belongs to @NVIDIA/trt-llm-runtime-devs and its VisualGen serving part to the VisualGen team, so the tests go to the same teams. Without these rules the three directories fall to @NVIDIA/trt-llm-devs through the broad /tests/test_common and /tests/unittest fallback rules. Each new line is placed after the broader rule it overrides (the file resolves by last matching pattern) and in sorted position within its section, with one owning team per line: several owners on one line are alternatives, which would make the intended team's review optional.

The directories do not exist on main yet: they are created by #21406 ("[TRTLLM-17261][test] Add route, middleware-order and shim-identity snapshots and a CPU test seam for trtllm-serve", open), which may merge before or after this PR. A CODEOWNERS rule whose path matches no file is valid to GitHub and simply takes effect once the directories land; until this PR merges, files there are owned by @NVIDIA/trt-llm-devs.

Related: #21170 ("[TRTLLM-17261][infra] Add trtllm-serve CI coverage lint and a multi-GPU trigger for chat_tokenization.py", open) adds a CI lint whose data file lists required CODEOWNERS rules. That PR is not on main, so this PR does not touch its data file; whichever of the two merges second adds the three test-directory rows there, and from then on the lint checks the owners of these directories on every run.

Once this PR is on main, the component labeler (.github/scripts/label_component.py) adds the advisory VisualGen label to PRs that change files under tests/unittest/serve/api/visual_gen/.

Behavior

No behavior change: no code, test or test-list change. The only effects are the required reviewers for the three (not yet existing) test directories and the advisory VisualGen label.

Moves

None.

CI bookkeeping

  • Multi-GPU table: none
  • CODEOWNERS: the three rules above (this PR's whole diff)
  • legacy-files.txt / ruff-legacy-baseline.json: none
  • Test lists: none

Test Coverage

No test changes (CI metadata only). Checks run locally on the PR head, rebased onto main at a9be7004c7:

  • git diff origin/main -- .github/CODEOWNERS: exactly the three added lines, nothing removed; no other file changed.
  • Effective-owner check (last match wins, the same pattern semantics as .github/scripts/label_component.py), base vs this PR:
Path On main (base) On this PR head
tests/test_common/serve/fakes.py @NVIDIA/trt-llm-devs @NVIDIA/trt-llm-runtime-devs
tests/unittest/serve/test_layering.py @NVIDIA/trt-llm-devs @NVIDIA/trt-llm-runtime-devs
tests/unittest/serve/api/visual_gen/test_routes_visual_gen.py @NVIDIA/trt-llm-devs @NVIDIA/trt-llm-torch-visual-gen-devs
tests/test_common/llm_data.py (neighbor) @NVIDIA/trt-llm-devs @NVIDIA/trt-llm-devs (unchanged)
tests/unittest/api_stability/test_serve_routes.py (neighbor) @NVIDIA/trt-llm-noncommitted-api-review-committee unchanged

PR Checklist

Please review the following before submitting your PR:

  • PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.

  • PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.

  • Test cases are provided for new code paths (see test instructions)

  • If PR introduces API changes, an appropriate PR label is added - either api-compatible or api-breaking. For api-breaking, include BREAKING in the PR title.

  • Any new dependencies have been scanned for license and vulnerabilities

  • CODEOWNERS updated if ownership changes

  • Documentation updated as needed

  • Update tava architecture diagram if there is a significant design change in PR.

  • The reviewers assigned automatically/manually are appropriate for the PR.

  • Please check this after reviewing the above items as appropriate for this PR.

GitHub Bot Help

To see a list of available CI bot commands, please comment /bot help.

🤖 Generated with Claude Code

…rs of the code they test

Add three CODEOWNERS rules so that test ownership follows source
ownership, as it already does for /tests/unittest/llmapi and
/tests/unittest/_torch/visual_gen:

- /tests/test_common/serve -> @NVIDIA/trt-llm-runtime-devs
  (shared fixtures and fakes for trtllm-serve tests)
- /tests/unittest/serve -> @NVIDIA/trt-llm-runtime-devs
  (tests mirroring tensorrt_llm/serve/, owned by runtime-devs)
- /tests/unittest/serve/api/visual_gen -> @NVIDIA/trt-llm-torch-visual-gen-devs
  (VisualGen serving tests)

Without these rules the directories fall to @NVIDIA/trt-llm-devs through
the broad /tests/test_common and /tests/unittest fallback rules. The
directories do not exist on main yet; a CODEOWNERS rule that matches no
file is valid to GitHub and takes effect as soon as the upcoming
test-only change creates them. Each line is placed after the broader
rule it overrides, because the last matching pattern wins.

No behavior change: no code, test or test-list change.

Signed-off-by: JunyiXu-nv <219237550+JunyiXu-nv@users.noreply.github.com>
@JunyiXu-nv

Copy link
Copy Markdown
Collaborator Author

/bot run

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a9be700 and cfd3d9a.

Files selected for processing: 1
  • .github/CODEOWNERS

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

Walkthrough

Three CODEOWNERS rules assign ownership for serve test paths to the runtime and VisualGen teams.

Changes

Serve test ownership

Layer / File(s) Summary
Assign owners to serve test paths
.github/CODEOWNERS
The runtime team is assigned /tests/test_common/serve and /tests/unittest/serve. The VisualGen team is assigned /tests/unittest/serve/api/visual_gen.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: tburt-nv

Merge Risk: Minimal · up to cfd3d

This metadata-only change is ready to merge; the new ownership rules have no demonstrated functional impact.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title names the ticket, the type, and the main change: the trtllm-serve test directories are given the owners of the code they test. It matches the three CODEOWNERS rules in the diff. It follows t…
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.
Description check Passed The pull request description is complete and follows the required structure. It explains the purpose, affected CODEOWNERS rules, behavior, related work, validation checks, test coverage, and checklist…
Full details: Title check

Explanation

The title names the ticket, the type, and the main change: the trtllm-serve test directories are given the owners of the code they test. It matches the three CODEOWNERS rules in the diff. It follows the repository title template, and the title is short and specific.

Full details: Description check

Explanation

The pull request description is complete and follows the required structure. It explains the purpose, affected CODEOWNERS rules, behavior, related work, validation checks, test coverage, and checklist status.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81900 [ run ] triggered by Bot. Commit: cfd3d9a Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #81900 [ run ] completed with state SUCCESS. Commit: cfd3d9a
/LLM/main/L0_MergeRequest_PR pipeline #67548 completed with status: 'SUCCESS'

CI Report

Link to invocation

This branch has not been deployed

No deployments
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.

2 participants