Skip to content
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

update DRA driver error injection #20

Open
wants to merge 6 commits into
base: PR144-e2e_node-DRA-test-plugin-failures
Choose a base branch
from

Conversation

pohly
Copy link

@pohly pohly commented Apr 30, 2024

This is how I can imaging writing the new E2E node tests.

Note that [sig-node] DRA [Feature:DynamicResourceAllocation] [NodeAlphaFeature:DynamicResourceAllocation] Resource Kubelet Plugin [Serial] [It] must call NodeUnprepareResources for deleted pod after Kubelet restart [sig-node, Feature:DynamicResourceAllocation, Serial] fails for me, kubelet does not call NodeUnprepareResources again after the restart.

/assign @bart0sh

bart0sh and others added 6 commits April 30, 2024 13:56
A call might have started, but not completed yet. That should not be considered
a "successful" call.
…rceptor

Previously, blocking and error injection where implemented inside the kubelet
plugin code of the driver. This was a bit hacky and not thread-safe (no
locking).

For upcoming tests we need more flexibility. Now a test can inject its own gRPC
interceptor into the kubelet plugin code. A pre-built one supports blocking and
error injection, but completely different interceptors are also possible if
needed.
// and some other configuration.
type FileOperations struct {
type PluginConfig struct {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renaming this was overdue. Should have done it already earlier when adding NumResourceInstances...

@bart0sh bart0sh force-pushed the PR144-e2e_node-DRA-test-plugin-failures branch 6 times, most recently from 60321bb to 2068c33 Compare May 3, 2024 21:59
@bart0sh bart0sh force-pushed the PR144-e2e_node-DRA-test-plugin-failures branch 4 times, most recently from 8b82ac1 to da7720f Compare May 20, 2024 08:51
@bart0sh bart0sh force-pushed the PR144-e2e_node-DRA-test-plugin-failures branch 5 times, most recently from 28c9c30 to 200bd1c Compare May 24, 2024 22:55
@bart0sh bart0sh force-pushed the PR144-e2e_node-DRA-test-plugin-failures branch 2 times, most recently from f1b3ac4 to ee0340a Compare June 7, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants