-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Handle jlap response without request e.g. for file:/// #12994
Conversation
@@ -278,6 +320,8 @@ def test_jlap_sought( | |||
package_repository_base: Path, | |||
): | |||
"""Test that we try to fetch the .jlap file.""" | |||
(package_repository_base / "osx-64" / "repodata.jlap").unlink(missing_ok=True) |
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.
Is this just a precaution? Or does this point to a larger issue of test cleanup failing elsewhere?
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.
The test web server thread points to a single directory. We could use other strategies like copying those files into a per-test directory or creating a per-test scoped fixture to cleanup.
Description
Fix #12963
Test needs to be updated to point to the same place the test http server is getting its files; do we need to test with and without .jlap on the filesystem; do we work correctly when there is a range request or do we detect that those are unsupported; or should we simply not do the jlap bits when we are not on http or s3.
Checklist - did you ...
news
directory (using the template) for the next release's release notes?