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

Re-think error swallowing for de-vendored packages #5354 #8391

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

VikramJayanthi17
Copy link

As discussed in #5354 instead of swallowing an error during vending and raising an error when pip attempts to use the missing module, we now raise the error immediately without modification for better error output and development experience. I implemented the solution outlined by @pradyunsg in #5354

Regarding testing : How would the maintainers expect this to be tested?
I do not see any tests explicitly for the vendored function and am unsure the file in which this would be tested in.
One test I am considering would trigger an exception in some vendored package and then asserts in the test that an exception is raised. Another would be to call vendored on a non-existent module or one with missing dependencies and check the error.

Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

LGTM, as is. :)

Is there some reason that this is a draft PR?

@VikramJayanthi17
Copy link
Author

I made it a draft PR because I was unsure about testing requirements. I will go ahead and change it to a normal PR. Thanks for the help!

@VikramJayanthi17 VikramJayanthi17 marked this pull request as ready for review June 4, 2020 17:29
@pradyunsg pradyunsg merged commit 7a60395 into pypa:master Jun 4, 2020
@pradyunsg
Copy link
Member

Thanks @VikramJayanthi17!

FFY00 added a commit to FFY00/pip that referenced this pull request Sep 26, 2020
…low-fix"

This reverts commit 7a60395, reversing
changes made to d3ce025.

It fixes devendored pip. See pypa#8916.

Signed-off-by: Filipe Laíns <lains@archlinux.org>
pradyunsg added a commit that referenced this pull request Oct 10, 2020
Revert "Merge pull request #8391 from VikramJayanthi17/error-swallow-…
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants