Skip to content

Move template manager files under parser; update CODEOWNERS - #26052

Merged
hnyls2002 merged 9 commits into
sgl-project:mainfrom
JustinTong0323:codex/add-template-managers-codeowners
Jul 8, 2026
Merged

hnyls2002 merged 9 commits into
sgl-project:mainfrom
JustinTong0323:codex/add-template-managers-codeowners

Conversation

@JustinTong0323

@JustinTong0323 JustinTong0323 commented May 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

1. Move template manager files under srt/parser

  • Move template_detection.py and template_manager.py from srt/managers to srt/parser.
  • Update imports across entrypoints/ (engine, http_server, serving_chat, serving_classify, serving_completions, serving_embedding, serving_responses) and the relocated unit test.
  • Update the two entrypoints/anthropic import sites (serving.py, test_serving.py) that referenced the old managers.template_detection path — they landed on main after the move was authored and would otherwise break.

2. CODEOWNERS updates

Add @JustinTong0323 as CODEOWNER for directories where he is the top contributor by git blame line ownership:

Path Role Rationale
srt/parser sole owner PR's relocation target
srt/entrypoints/anthropic sole owner created the subdir (#18630); 3 commits, top contributor
srt/entrypoints/openai sole owner active maintainer of the OpenAI API surface
srt/function_call sole owner top-2 contributor (17 commits); dropped inactive @CatherineSue (0 commits in 90d)
srt/utils/hf_transformers sole owner created the subdir; 1605 lines, top by 6×
srt/constrained co-owner (+@hnyls2002 @DarkSharpness) top contributor (634 lines, 27.9%)

Testing

  • git diff --check upstream/main...HEAD
  • python3 -m py_compile on all touched Python files
  • pre-commit run --files on the touched files (isort/ruff/black/codespell green)
  • git grep 'managers\.template_' confirms no stale references to the old path remain
  • PYTHONPATH=python pytest -q test/registered/unit/parser/test_template_manager.py test/registered/unit/entrypoints/openai/test_serving_chat.py on rx devbox codex-codeowners-26052 (72 passed, 27 subtests passed) — ran before the CODEOWNERS-only additions; the Python relocation/import tree is unchanged since.

CI States

Latest PR Test (Base): ⏳ Run #28983612186
Latest PR Test (Extra): ⏳ Run #28983612029

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@JustinTong0323
JustinTong0323 force-pushed the codex/add-template-managers-codeowners branch 2 times, most recently from fa460bc to 023712f Compare May 22, 2026 09:32
@JustinTong0323
JustinTong0323 force-pushed the codex/add-template-managers-codeowners branch from 023712f to 8b8a0ad Compare May 22, 2026 09:34
@JustinTong0323 JustinTong0323 changed the title Add CODEOWNERS for template manager files Move template manager files under parser May 22, 2026
@JustinTong0323

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label May 22, 2026
@JustinTong0323
JustinTong0323 force-pushed the codex/add-template-managers-codeowners branch from 8b8a0ad to e027b25 Compare May 22, 2026 11:09
@JustinTong0323

Copy link
Copy Markdown
Collaborator Author

/rerun-failed-ci

# Conflicts:
#	.github/CODEOWNERS
#	test/registered/unit/parser/test_template_manager.py
@JustinTong0323
JustinTong0323 requested a review from HaiShaw as a code owner July 8, 2026 18:09
@JustinTong0323 JustinTong0323 changed the title Move template manager files under parser Move template manager files under parser; update CODEOWNERS Jul 8, 2026
@hnyls2002
hnyls2002 merged commit 074bb92 into sgl-project:main Jul 8, 2026
29 of 35 checks passed
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants