Repository navigation
fix(framework): set the logger in the Coscheduling and Volcano plugins - #4149
Ahmad-Faraj wants to merge 1 commit into
Conversation
|
Ran this locally. With coscheduling.go and volcano.go reverted to master and the new tests kept, both fail with I also traced the wiring. main.go calls One question: is this worth a cherry-pick to release-2.3? The same unset field is there at coscheduling.go:265 and volcano.go:338. |
|
@rishabhsai up to the maintainers. It only drops the error log when the PodGroup CRDs are missing, nothing breaks without it, so I wouldn't push for a cherry-pick. |
abhishekKokadwar
left a comment
There was a problem hiding this comment.
Thanks @Ahmad-Faraj, this looks right to me.
I checked it at 63bd7b11:
| Result | |
|---|---|
PR head, go test on the volcano, coscheduling and framework core packages |
ok |
coscheduling.go and volcano.go from master with the new tests |
both TestReconcilerBuildersLogsMissingPodGroupCRD fail with got logs: "" |
So the tests pin the change, which matches what @rishabhsai saw.
The fix follows the JobSet plugin (jobset.go:84), and JobSet is the only other plugin with a logger field, so no other plugin has the same gap. On master the unset field is a zero logr.Logger, so the error is dropped silently, with no panic.
I only ran unit tests, not a cluster. The branch is 39 commits behind master but still merges cleanly.
One heads-up: #4127 also appends a test at the end of volcano_test.go, so the two will conflict there. I will rebase mine if this merges first.
|
/assign @andreyvelich |
Signed-off-by: Ahmad-Faraj <ahmedfrag4040@gmail.com>
63bd7b1 to
5b422cf
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What this PR does / why we need it:
Sets
loggerinNewfor the Coscheduling and Volcano plugins, the same way the JobSet plugin does. Without it the "PodGroup CRDs must be installed in advance" error is dropped. Added a test per plugin that fails on master.Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...format, will close the issue(s) when PR gets merged):Fixes #4148
Checklist: