-
Notifications
You must be signed in to change notification settings - Fork 480
WIP: Add integration test for DRA config change #6904
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
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nojnhuh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This is WIP because the test was failing for me locally but I think it's pretty close. It fails because after restarting the controllers, the workload is admitted as expected, but doesn't seem to have reserved any DRA resources. A plain restart of the controllers without changing the config at all also admits the workload, which I wouldn't expect, but makes sense given that first observation. If anything jumps out as the cause for the failure I'm all ears! |
|
@nojnhuh: GitHub didn't allow me to request PR reviews from the following users: helayoty. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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-sigs/prow repository. |
| DeviceClassNames: []corev1.ResourceName{"test-deviceclass-2"}, | ||
| }, | ||
| } | ||
| func managerSetup(modifyConfig func(*config.Configuration)) framework.ManagerSetup { |
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.
Changes here are almost entirely from indentation, so the "hide whitepsace" checkbox should show a more meaningful diff.
|
@nojnhuh: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
|
Thanks @nojnhuh for raising this PR.
There is a difference between how DRA worklaods are processed and how other workloads are processed in Kueue. DRA workloads need some extra get calls, so they are skipped in event handlers and are instead processed in reconcile loop. Considering this backgroud, the scenario you described smells like some event handler is adding DRA workload to scheduler queue before reconcile function gets a chance to pre-process the data. @nojnhuh do we have traces of logs where workload is successfully admitted and where dra-preprocess is complete? the timestamps on those entries will verify the theory also cc @mimowo |
Thanks! I'll take a look there. One thing I forgot to mention is that when I test this scenario by hand on a real cluster, I don't see the same issue. To me, it looks like I'm not restarting things correctly in the test in case that helps inform what the root cause is. |
@alaypatel07 Does the "DRA Integration when DRA is configured via ConfigMap Should admit workload with DRA resource claim templates" test case match those conditions? If not I would need some help tweaking the tests to show what you're looking for. |
|
@alaypatel07: Closed this PR. In response to this:
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-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR addresses the first "Nice to have" item listed in #5873:
This PR extends the existing DRA integration test that ensures a workload with an unmapped DeviceClass is not admitted. After the existing steps are done, this PR adds steps to restart the controllers with new configuration that maps the DeviceClass and ensures the workload is admitted.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?