Skip to content

added cycle state to pick & process results in profile handler #1040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 23, 2025

Conversation

nirrozenbaum
Copy link
Contributor

@nirrozenbaum nirrozenbaum commented Jun 22, 2025

This PR adds CycleState arg to Pick and ProcessResults functions of ProfileHandler.
Additional minor change is being consistent in arguments order across all scheduling plugins.
after this PR all plugins receive first args (context, cycle-state) and then the plugin specific args like request, etc.

This was raised by @kfirtoledo while working on PD scorer, and had the requirement to access some of the scorer calculations in ProcessResults (need to communicate it through CycleState).

NO LOGIC CHANGE.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 22, 2025
@k8s-ci-robot k8s-ci-robot requested a review from kfswain June 22, 2025 10:45
Copy link

netlify bot commented Jun 22, 2025

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

Name Link
🔨 Latest commit c7b3c1b
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/68593704f14047000892430d
😎 Deploy Preview https://deploy-preview-1040--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 requested a review from liu-cong June 22, 2025 10:45
@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 Jun 22, 2025
@nirrozenbaum
Copy link
Contributor Author

fyi @kfirtoledo

@ahg-g
Copy link
Contributor

ahg-g commented Jun 22, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 22, 2025
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 23, 2025
@kfswain
Copy link
Collaborator

kfswain commented Jun 23, 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 Jun 23, 2025
@k8s-ci-robot k8s-ci-robot merged commit 7df5d3d into kubernetes-sigs:main Jun 23, 2025
9 checks passed
@nirrozenbaum nirrozenbaum deleted the cycle-state branch June 23, 2025 16:03
shmuelk pushed a commit to shmuelk/gateway-api-inference-extension that referenced this pull request Jun 24, 2025
…netes-sigs#1040)

* added cycle state to pick + process results of profile handler

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

* wildcard

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

---------

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
rlakhtakia pushed a commit to rlakhtakia/gateway-api-inference-extension that referenced this pull request Jun 26, 2025
…netes-sigs#1040)

* added cycle state to pick + process results of profile handler

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

* wildcard

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

---------

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
rlakhtakia pushed a commit to rlakhtakia/gateway-api-inference-extension that referenced this pull request Jun 26, 2025
…netes-sigs#1040)

* added cycle state to pick + process results of profile handler

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

* wildcard

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

---------

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>
EyalPazz pushed a commit to EyalPazz/gateway-api-inference-extension that referenced this pull request Jul 9, 2025
…netes-sigs#1040)

* added cycle state to pick + process results of profile handler

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

* wildcard

Signed-off-by: Nir Rozenbaum <nirro@il.ibm.com>

---------

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

4 participants