Skip to content

feat(pylon): handle Dynamo request-priority headers in Pylon - #673

Draft
along-2017 wants to merge 1 commit into
mainfrom
feat/pylon/dynamo-priority-header
Draft

feat(pylon): handle Dynamo request-priority headers in Pylon#673
along-2017 wants to merge 1 commit into
mainfrom
feat/pylon/dynamo-priority-header

Conversation

@along-2017

Copy link
Copy Markdown
Contributor

TL;DR

Additional Details (optional for docs, build, test, refactor, ci, chore, style, and revert PRs)

For the Reviewer

For QA (optional for docs, build, test, refactor, ci, chore, style, and revert PRs)

Issues

Checklist

  • I am familiar with the Contributing Guidelines.
  • I have signed off my commits for Developer Certificate of Origin (DCO) compliance.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

Pylon owns the engine-facing Dynamo header contract. On every tunneled
inference request it now strips inbound x-dynamo-request-* headers so
client-supplied values never reach the engine, and derives
x-dynamo-request-priority from x-priority when that header is present
(i32::MAX - min(x, i32::MAX); absent stays absent). Derivation sits
behind the default-on --pylon-derive-dynamo-priority flag as a kill
switch; the strip is unconditional. The emitted value is logged with
the request id and recorded on the upstream request span.

mock-dynamo records the priority headers seen on the latest request
per endpoint and model in its /test-control snapshot so cluster QA can
assert what actually reached the engine. The pylon and mock-dynamo
crates gain rust_test Bazel targets; their in-crate tests previously
did not run in CI.

Refs: #620
Signed-off-by: along <along@nvidia.com>
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3216ff77-c31b-4955-bd39-57f454ef59b3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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

@along-2017 along-2017 self-assigned this Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🛡️ CodeQL Analysis

🚨 Found 2 issue(s)

Severity Breakdown:

  • 🔴 Errors: 0
  • 🟡 Warnings: 0
  • 🔵 Notes: 0
📋 Top Issues

🔗 View full details in Security tab

🕐 Last updated: 2026-08-04 22:29:46 UTC | Commit: 1c43f89

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.

1 participant