Skip to content

Conversation

nirrozenbaum
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:

This PR adds back the writing of Prefix State to CycleState.
When switching to use PluginState instead of CycleState in Prefix plugin, I forgot that PD profile handler in llm-d consumes the prefix state through CycleState variable.
This PR does a temporary fix to write the state to both PluginState and CycleState and is only meant to solve the issue for llm-d release.
once we release, I will work on a long term fix - exposing in PluginState the fields that are needed by the plugin extension points, and exposing in CycleState a different struct, that may be beneficial for other plugins, like sharing the hit percentage per endpoint (which is used by llm-d). This fix will also solve a different problem, where llm-d profile handler needs to access the prefix plugin block hash size in order to calculate the hit percentage (it's not the role of pd handler to calc the prefix hit percentage, it's prefix plugin role).

Which issue(s) this PR fixes:

blocker for llm-d release

Does this PR introduce a user-facing change?:

NONE

cc: @kfswain @liu-cong

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Aug 31, 2025
Copy link

netlify bot commented Aug 31, 2025

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit 3232a17
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/68b43677f5d5df00080a6c88
😎 Deploy Preview https://deploy-preview-1509--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nirrozenbaum

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 31, 2025
@k8s-ci-robot k8s-ci-robot requested review from ahg-g and liu-cong August 31, 2025 11:48
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 31, 2025
@nirrozenbaum nirrozenbaum changed the title prefix state prefix state temp fix - write state to both plugin state and cycle state Aug 31, 2025
@kfswain
Copy link
Collaborator

kfswain commented Aug 31, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 31, 2025
@k8s-ci-robot k8s-ci-robot merged commit 3d4a636 into kubernetes-sigs:main Aug 31, 2025
11 checks passed
@nirrozenbaum nirrozenbaum deleted the prefix-state branch August 31, 2025 15:29
nirrozenbaum added a commit that referenced this pull request Sep 2, 2025
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants