Skip to content

mantle/aws: simplify force upload handling of s3 objects #4243

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

dustymabe
Copy link
Member

This will make it so we don't have to conditionalize the function call to API.RemoveImage based on if we are uploading WinLI images or not.

This is prep for more simplification in the future.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the force upload logic by moving the S3 object deletion out of API.RemoveImage and into the ore aws upload command. This is a good step towards better separation of concerns. My review identifies a regression where error handling for non-existent S3 objects was lost in the move, which could cause the command to fail unnecessarily. I've provided a suggestion to restore the correct behavior.

@dustymabe dustymabe force-pushed the dusty-aws-upload-simplify branch from d9a91e8 to 02f5631 Compare July 30, 2025 15:56
This will make it so we don't have to conditionalize the function
call to API.RemoveImage based on if we are uploading WinLI images
or not.

This is prep for more simplification in the future.
@dustymabe dustymabe force-pushed the dusty-aws-upload-simplify branch from 02f5631 to 991bd6f Compare July 30, 2025 16:05
@dustymabe
Copy link
Member Author

Not sure of the prow CI failure, but it's definitely not related to this PR:

error: Installing packages: Unknown rpm-md repository: rhel-9.6-baseos

/override ci/prow/rhcos

Copy link

openshift-ci bot commented Jul 30, 2025

@dustymabe: Overrode contexts on behalf of dustymabe: ci/prow/rhcos

In response to this:

Not sure of the prow CI failure, but it's definitely not related to this PR:

error: Installing packages: Unknown rpm-md repository: rhel-9.6-baseos

/override ci/prow/rhcos

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link
Member

@marmijo marmijo left a comment

Choose a reason for hiding this comment

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

LGTM

@dustymabe dustymabe enabled auto-merge (rebase) July 30, 2025 17:10
@dustymabe dustymabe merged commit cfdd756 into coreos:main Jul 30, 2025
6 checks passed
@dustymabe dustymabe deleted the dusty-aws-upload-simplify branch July 30, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants