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
Fix the wrong status returned from RunPreFilterPlugins
#112029
Conversation
@chendave: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
|
||
plugins := &config.Plugins{PreFilter: config.PluginSet{Enabled: []config.Plugin{{Name: preFilterPluginName}}}} | ||
|
||
t.Run("TestPreFilterPluginStatus", func(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say you don't need to use subtest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect this testcase to expand a little bit to cover more scenario of RunPreFilterPlugins
, but for now, yes, it's only used to test the fixing of the bug.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If considering the future expansion, we can implement it as table-driven tests with only one table for now.
I left it up to you to decide; implement as table-driven tests or as a single test as it is now. Either way seems fine to me.
/priority important-soon /assign @sanposhiho @ahg-g |
event msg will be impacted due to the wrong status is returned. e.g. Warning FailedScheduling ... running PreFilter plugin "PodTopologySpread": %!!(MISSING)w(<nil>) Signed-off-by: Dave Chen <dave.chen@arm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/retest
/approve Thanks |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, chendave 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 |
…#112029-upstream-release-1.25 Automated cherry pick of #112029: Fix the wrong status returned from `RunPreFilterPlugins`
fix kubernetes/kubernetes#112334 fix kubernetes/kubernetes#112029 Signed-off-by: Joseph <joseph.t.lee@outlook.com>
event msg will be impacted due to the wrong status is returned.
e.g.
/kind bug
Signed-off-by: Dave Chen dave.chen@arm.com
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/sig scheduling