-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Don't unmount entire plugin manager tree on remove #33422
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
This was mistakenly unmounting everything under `plugins/*` instead of just `plugins/<id>/*` anytime a plugin is removed. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
thaJeztah
left a comment
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
can you add a cherry pick label and add it to the tracking issue for cherry picking?
vdemeester
left a comment
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 👼
|
How's this tested? |
|
@mghazizadeh could you open an issue for that instead? Comments on closed/merged pull request can easily get overlooked |
|
I'm not sure a test is warranted in this case. This was a blatant logic mistake akin to a typo we just didn't pick up on it during code review. |
|
But it's not a typo. It's a logic change to recursively unmount up to localDir instead of all the way up to root, therefore a test to satisfy the new logic is warranted despite the fact that it should be quite obvious. |
|
@mghazizadeh The fact that we are unmounting anything at all here is a very low level detail particular to the current implementation and is not part of the package interface. Adding a test for this is fragile and will most likely end up either breaking or effectively testing nothing due to implementation changes. When adding tests we need to be careful about testing the right things. Adding a test to prevent someone from changing this back to the incorrect variable does not seem like the right course. It might be nice to add a new integration test suite for these targeted regressions which may only run nightly rather than on every PR. |
This was mistakenly unmounting everything under
plugins/*instead ofjust
plugins/<id>/*anytime a plugin is removed.ping @fermayo @caervs