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
DRA: test for structured parameters #123938
DRA: test for structured parameters #123938
Conversation
Unit testing depends on correct handling of |
/cc |
I have a workaround. I'm currently waiting for #123932 to merge, then I will rebase. |
This PR may require API review. If so, when the changes are ready, complete the pre-review checklist and request an API review. Status of requested reviews is tracked in the API Review project. |
Logging claims helps with debugging test failures. Checking the finalizer catches unexpected behavior.
When using structured parameters, the instance name must match and not be in use already. NodeUnprepareResources must be called with the same handle are NodePrepareResources.
1a4517f
to
4179c63
Compare
Coverage was checked with a cover profile. The biggest remaining gap is for isSchedulableAfterClaimParametersChange and isSchedulableAfterClassParametersChange which will get handled when refactoring the foreachPodResourceClaim (kubernetes#123697).
79ed4eb
to
458e227
Compare
/kind bug There is a (minor) fix included here, see first commit. |
/triage accepted |
The guideline in https://github.com/kubernetes/community/blob/master/sig-scheduling/CONTRIBUTING.md#technical-and-style-guidelines is to not compare error strings. This makes the tests less precise. In return, unit tests don't need to be updated when error strings change.
We missed the test freeze, so this is no longer candidate for going to 1.30 or backporting. But maybe we can backport the bugfix, if it's critical. How would you qualify it? If it's critical, split the fix into its own PR to go for 1.30.1 |
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
LGTM label has been added. Git tree hash: 382063ffdcd13dfa9cab39fe51726be36cfbf567
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, pohly 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 |
The bug is highly unlikely to occur in practice. Given that the feature is alpha and new in 1.30, I think we don't need to backport. |
/cc |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
#123516 got merged with some tests still missing due to time pressure. This PR adds those tests. One bug was found while doing so.
Special notes for your reviewer:
Does this PR introduce a user-facing change?