-
Notifications
You must be signed in to change notification settings - Fork 54
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
Activate streaming from object storage #944
Conversation
b16d9b2
to
5ed7c75
Compare
with open(local_temp_file.name) as file_handle: | ||
importer_result = process_collection( | ||
file_handle, filename=filename, logger=user_facing_logger | ||
) |
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.
This is a hell of a workaround to prevent galaxy-importer to try to be clever.
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.
FYI @awcrosby
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.
haha. we may have had a reason for this originally, but if we are able to get it working with pulp_ansible passing a file handle to galaxy-importer, then +1 to that
I intend to solve the issue on the galaxy-importer side. |
c5741c1
to
d768806
Compare
Hello @mdellweg! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2022-05-18 12:26:27 UTC |
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.
shouldn't you ensure galaxy-importer version here?
if ( | ||
settings.DEFAULT_FILE_STORAGE == "pulpcore.app.models.storage.FileSystem" | ||
or not settings.REDIRECT_TO_OBJECT_STORAGE | ||
): |
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.
👍🏽
@@ -1,6 +1,6 @@ | |||
aiofiles>=0.8.0 | |||
async_lru~=1.0 | |||
galaxy_importer>=0.4.1 | |||
galaxy_importer>=0.4.5 |
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.
their release failed: https://github.com/ansible/galaxy-importer/runs/6479389918?check_suite_focus=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.
galaxy-importer 0.4.5 is now on pypi
fixes #493