[https://nvbugs/5883590][fix] Generate HMAC key for MGMN IPC server in disaggregated serving#12670
Conversation
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
|
@Superjomn could you also help to review this PR, thanks. |
📝 WalkthroughWalkthroughAdded HMAC key generation and authentication to the disaggregated leader's proxy process launch. A fresh hex HMAC key is generated and passed to the forked proxy process via an environment variable, with corresponding validation assertions added to ensure the key is present during subprocess initialization. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tensorrt_llm/commands/serve.py`:
- Around line 1302-1304: The HMAC env assignment line is improperly formatted
causing yapf/CI failure; update the statement that sets
LlmLauncherEnvs.TLLM_SPAWN_PROXY_PROCESS_IPC_HMAC_KEY.value to use normal Python
formatting (e.g., a single continuous assignment line) and run the repository
formatter/pre-commit (yapf) so the change is committed; locate the assignment
referencing LlmLauncherEnvs.TLLM_SPAWN_PROXY_PROCESS_IPC_HMAC_KEY in serve.py
and reformat it, then run pre-commit or yapf and commit the resulting formatting
changes.
🪄 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: Pro
Run ID: f1822b6b-b2f9-4969-924c-2350c8fa6310
📒 Files selected for processing (1)
tensorrt_llm/commands/serve.py
Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
|
/bot run |
|
PR_Github #41573 [ run ] triggered by Bot. Commit: |
|
PR_Github #41573 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #41687 [ run ] triggered by Bot. Commit: |
|
PR_Github #41687 [ run ] completed with state
|
|
/bot run |
|
PR_Github #41847 [ run ] triggered by Bot. Commit: |
|
PR_Github #41847 [ run ] completed with state |
…n disaggregated serving (NVIDIA#12670) Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
…n disaggregated serving (NVIDIA#12670) Signed-off-by: Yibin Li <109242046+yibinl-nvidia@users.noreply.github.com>
Summary by CodeRabbit
Description
Test Coverage
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)
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.