Skip to content
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

Don't fail when we can't overwrite the summary file in the backup upload #16452

Merged

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Jun 10, 2024

Changelog: Fix: Don't fail when we can't overwrite the summary file in the backup upload.
Docs: Omit

Missing tests

@AbrilRBS AbrilRBS added this to the 2.5.0 milestone Jun 10, 2024
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

# Always upload summary .json but only upload blob if it does not already exist
if file.endswith(".json") or not uploader.exists(full_url, auth=None):
output.info(f"Uploading file '{basename}' to backup sources server")
if is_summary or not uploader.exists(full_url, auth=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to gracefully compare the existing summary file in the remote, and use the comparison for the warning?

@jave27
Copy link

jave27 commented Jun 10, 2024

Thanks, @RubenRBS!

@memsharded memsharded assigned AbrilRBS and unassigned memsharded Jun 12, 2024
@memsharded memsharded merged commit 0a4ecfb into conan-io:develop2 Jun 13, 2024
2 checks passed
@AbrilRBS AbrilRBS deleted the rr/backup-sources-dont-overwrite branch June 13, 2024 08:56
@memsharded
Copy link
Member

@jave27 merged, this will be in next Conan 2.5 release

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.

None yet

3 participants