Skip to content

Conversation

@cpuguy83
Copy link
Member

This was mistakenly unmounting everything under plugins/* instead of
just plugins/<id>/* anytime a plugin is removed.

ping @fermayo @caervs

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>
Copy link
Member

@thaJeztah thaJeztah left a 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 vdemeester added this to the 17.06.0 milestone May 29, 2017
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

LGTM 👼

@mghazizadeh
Copy link

How's this tested?

@thaJeztah
Copy link
Member

@mghazizadeh could you open an issue for that instead? Comments on closed/merged pull request can easily get overlooked

@cpuguy83
Copy link
Member Author

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.

@mghazizadeh
Copy link

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.

@cpuguy83
Copy link
Member Author

@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.
The logic itself didn't really change here we just managed to grab the wrong variable name.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants