Skip to content

aws: fix prebuilt artifacts upload #658

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

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

snir911
Copy link
Contributor

@snir911 snir911 commented May 25, 2025

- Description of the problem which is fixed/What is the use case

ami creation from an oci image is failing to upload
- What I did

- How to verify it

- Description for the changelog

@snir911 snir911 self-assigned this May 25, 2025
@openshift-ci openshift-ci bot requested review from gkurz and wainersm May 25, 2025 13:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses an issue with uploading prebuilt artifacts by fixing variable quoting and region usage when registering the AMI. Key changes include:

  • Correcting the variable expansion for the temporary JSON file.
  • Updating the region variable from REGION to AWS_REGION.
  • Minor formatting improvements.
Comments suppressed due to low confidence (2)

config/peerpods/podvm/aws-podvm-image-handler.sh:286

  • Consider cleaning up the temporary file created with mktemp after its usage to avoid potential resource clutter.
local image_import_json_file=$(mktemp)

config/peerpods/podvm/aws-podvm-image-handler.sh:343

  • The temporary file for registering the AMI is not removed after use; consider adding cleanup logic to improve maintainability.
local register_json_file=$(mktemp)

Copy link
Member

@beraldoleal beraldoleal left a comment

Choose a reason for hiding this comment

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

Hi @snir911 do you mind adding details of the issue within the commit, please?

as it's currently complaining on missing region value

Signed-off-by: Snir Sheriber <[email protected]>
@snir911 snir911 force-pushed the oci-upload-fix-aws branch from e137346 to 84668ca Compare May 26, 2025 13:13
Copy link

openshift-ci bot commented May 26, 2025

@snir911: all tests passed!

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Copy link
Member

@beraldoleal beraldoleal left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

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.

2 participants