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

Skip distributions with incomplete metadata #2231

Conversation

rominf
Copy link
Contributor

@rominf rominf commented Jul 5, 2023

In rare cases, importlib.metadata values may contain None, see
python/cpython#91216
and
python/importlib_metadata#371

The fix skips all distributions with incomplete metadata.

In rare cases, `importlib.metadata` values may contain `None`, see
python/cpython#91216
and
python/importlib_metadata#371

The fix skips all distributions with incomplete metadata.
@rominf rominf force-pushed the rominf-_generate_installed_modules-metadata-none branch from 06f6d87 to 6b73d64 Compare July 5, 2023 10:27
@rominf rominf marked this pull request as ready for review July 5, 2023 10:38
@rominf
Copy link
Contributor Author

rominf commented Jul 5, 2023

Could you please help me figure out, why this change significantly dropped code coverage, so that I fix it?

@sentrivana
Copy link
Contributor

sentrivana commented Jul 6, 2023

Hey @rominf, thank you for this fix. I'll try to find some time next week to check it out. Regarding the coverage I'm not sure, it also reports having increased overall by 1.08%, so I think we're good there.

@sentrivana sentrivana self-assigned this Jul 6, 2023
@sentrivana sentrivana added Type: Bug Something isn't working Status: Backlog labels Jul 6, 2023
Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

lgtm

@antonpirker antonpirker enabled auto-merge (squash) July 12, 2023 09:26
@antonpirker antonpirker merged commit 5704f12 into getsentry:master Jul 12, 2023
@rominf rominf deleted the rominf-_generate_installed_modules-metadata-none branch July 12, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants