-
-
Notifications
You must be signed in to change notification settings - Fork 65
Handle HTTP 410 errors during photo downloads by refreshing expired URLs #389
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: mandarons <50469173+mandarons@users.noreply.github.com>
Co-authored-by: mandarons <50469173+mandarons@users.noreply.github.com>
- Use clearer naming: attempt/max_attempts instead of retries - More specific 410 error detection (only "Gone (410)" string) - Enhanced documentation explaining why _versions must be cleared - Better logging showing current attempt out of total attempts Co-authored-by: mandarons <50469173+mandarons@users.noreply.github.com>
|
@copilot CI is failing due to less than 100% test coverage. Fix it |
- Added test_download_photo_from_server_http_410_error_zero_retries to cover edge case - Marked final return False as unreachable with pragma: no cover comment - Achieves 100% coverage for src/photo_file_utils.py - Overall coverage improved from 97.71% to 97.73% Co-authored-by: mandarons <50469173+mandarons@users.noreply.github.com>
Fixed in aab9f7d. Added test for max_retries=0 edge case and marked unreachable defensive code with |
|
🐳 Docker Image Built Successfully! The Docker image for this PR has been built and pushed to GitHub Container Registry: Image Tag: Usage: docker pull ghcr.io/mandarons/icloud-docker:pr-389
docker run --name icloud-pr-test -v ${PWD}/icloud:/icloud -v ${PWD}/config:/config -e ENV_CONFIG_FILE_PATH=/config/config.yaml ghcr.io/mandarons/icloud-docker:pr-389Build Info:
|
|
🐳 Docker Image Built Successfully! The Docker image for this PR has been built and pushed to GitHub Container Registry: Image Tag: Usage: docker pull ghcr.io/mandarons/icloud-docker:pr-389
docker run --name icloud-pr-test -v ${PWD}/icloud:/icloud -v ${PWD}/config:/config -e ENV_CONFIG_FILE_PATH=/config/config.yaml ghcr.io/mandarons/icloud-docker:pr-389Build Info:
|
download_photo_from_serverinphoto_file_utils.pyto detect HTTP 410 errorsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.