-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Describe the bug
Various problems related to specifying FILE_URL. These are pretty trivial to fix, so I am happy to submit a PR if you agree, though I have limited capacity to test it fully (beyond manual test in my environment).
To Reproduce
Specify a FILE_URL, and several things go wrong. There are workarounds for all these, and some are relatively cosmetic, but feel like they would be good to fix.
-
There is trace at
, but it is debug level, so FILE_URL is not reported. That makes it seem to have been ignored.photon-docker/src/entrypoint.py
Line 24 in a03cfc9
logger.debug(f"FILE_URL: {config.FILE_URL}") -
logs the destination path when downloading. However, this is problematic, as the logs are of the local filename, yet imply that they are of the file actually being downloaded. Adding the URL to this log would make it far clearer what is going on (including in cases where the URL is constructed in code).
photon-docker/src/downloader.py
Line 373 in a03cfc9
desc=f"Downloading {os.path.basename(destination)}", -
The download fails if
FILE_URLis specified andSKIP_MD5_CHECKis not, as the code grabs the wrong md5 file. Better to mandate thatSKIP_MD5_CHECKmust be true ifFILE_URLis set (or to change the md5 logic with an explicitly passed in md5 path).
Expected behavior
See above.
photon-docker configuration:
All that I did was explicitly set FILE_URL, and then found the issues above.
System Info
This was run on a linux VM, but that isn't relevant.