Skip to content

test(venv): [repro] importlib_metadata_test fails to find/read wheel files - #4025

Draft
rickeylev wants to merge 4 commits into
bazel-contrib:mainfrom
rickeylev:verify_importlib_metadata_files
Draft

test(venv): [repro] importlib_metadata_test fails to find/read wheel files#4025
rickeylev wants to merge 4 commits into
bazel-contrib:mainfrom
rickeylev:verify_importlib_metadata_files

Conversation

@rickeylev

Copy link
Copy Markdown
Collaborator

Adds a reproduction test case to observe CI behavior when
inspecting wheel distribution files via importlib.metadata.files().

Currently, distribution files returned by
importlib.metadata.files() may fail to be located or read on
disk in virtual environments. This change expands
importlib_metadata_test to verify that all files listed in a
distribution's metadata exist and can be read both as binary
and UTF-8 text.

…and are readable

Expand importlib_metadata_test to assert that all files returned by
importlib.metadata.files() can be found on disk and read both as binary and
UTF-8 text. Update test fixture RECORD files to list installed paths.
…und and read

Assert that each file returned by importlib.metadata.files() exists and
can be read, reproducing the issue with unrewritten RECORD files.
Verify that the list of files returned by importlib.metadata.files()
matches the expected set of paths from the distribution's RECORD.
Sort expected_paths list alphabetically in source for improved readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant