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

USHIFT-3113: Enhancements for build_bootc_image.py script #3293

Merged

Conversation

ggiguash
Copy link
Contributor

These changes should attain a usability feature parity with the build_images.sh script:

  • Atexit terminates running subprocesses and bib containers
  • The --build-type argument allows for filtering build by a specified type
  • Force rebuild option
  • The --no-extract-images skips container image extraction procedure
  • Junit handling for better integration in CI

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 28, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 28, 2024

@ggiguash: This pull request references USHIFT-3113 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.16.0" version, but no target version was set.

In response to this:

These changes should attain a usability feature parity with the build_images.sh script:

  • Atexit terminates running subprocesses and bib containers
  • The --build-type argument allows for filtering build by a specified type
  • Force rebuild option
  • The --no-extract-images skips container image extraction procedure
  • Junit handling for better integration in CI

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from dhellmann and pmtk April 28, 2024 10:07
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 28, 2024
@ggiguash ggiguash changed the title USHIFT-3113: Enhancement for build_bootc_image.py script USHIFT-3113: Enhancements for build_bootc_image.py script Apr 28, 2024
@ggiguash ggiguash force-pushed the bootc_script_enhancements branch 2 times, most recently from eeaeaab to 47ab45b Compare April 29, 2024 06:15
test/bin/pyutils/common.py Outdated Show resolved Hide resolved
Comment on lines 190 to 193
pids = []
for child in children:
pids += [child.pid]
return pids
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be a good place to use yield, but up to you. Not that it matters performance wise, but its good practice to do so if you dont need the full list upfront.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this case, I think I'd prefer to simpify the code and not use yield. The list will be very short and collected immediately, I'm not sure there's an advantage of using generators here, or is there?

test/bin/pyutils/build_bootc_images.py Outdated Show resolved Hide resolved
test/bin/pyutils/build_bootc_images.py Outdated Show resolved Hide resolved
@ggiguash
Copy link
Contributor Author

/assign @pacevedom

Copy link
Contributor

@pacevedom pacevedom left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 30, 2024
Copy link
Contributor

openshift-ci bot commented Apr 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ggiguash, pacevedom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Contributor

openshift-ci bot commented Apr 30, 2024

@ggiguash: 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/test-infra repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 09589aa into openshift:main Apr 30, 2024
10 checks passed
@ggiguash ggiguash deleted the bootc_script_enhancements branch April 30, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants