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

ART-10563 Build bootc image as part of build-microshift-bootc job #1054

Merged
merged 7 commits into from
Nov 12, 2024

Conversation

thegreyd
Copy link
Contributor

@thegreyd thegreyd commented Oct 16, 2024

https://issues.redhat.com/browse/ART-10563

Should go after openshift-eng/aos-cd-jobs#4270

Live run: https://art-jenkins.apps.prod-stable-spoke1-dc-iad2.itup.redhat.com/job/hack/job/sidsharm-aos-cd-jobs/job/build%252Fbuild-microshift/37/

Summary of changes:

  • At the end of build-microshift job, trigger build-microshift-bootc job, which:
  • Tweak to config plashets to include microshift rpm when building plashets from our tag.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 16, 2024
@thegreyd thegreyd added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 16, 2024
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 28, 2024
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 5, 2024
@thegreyd thegreyd changed the title WIP ART-10563 Build bootc image as part of build-microshift job ART-10563 Build bootc image as part of build-microshift job Nov 7, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 7, 2024
add --no-advisory-prep flag

Fixes

tweak rebase version

Always lock upstream to head

Lock build command as well

respect dry-run

include microshift as one of the stream assemblies

find if build already exists

fetch build

Bind to table

Build plashets

check if rebuild is needed

fix

fix logger

Fix

Fix

Fix stream

add microshift nvr check

fix rebuild needed condition

Spinoff into its own pipeline

Fix import

Fix invoke

Remove dead var

Fix force-bootc

Fix microshift fetch

load wip

revert unrelated changes

fix lint

fetch true latest

end time fix

revert unrelated changes

Sync to mirror

fix imports

move func to util

move func to pyartcd.util

stringify path

temp build all arches

add konflux namespace

log better
Copy link
Contributor

openshift-ci bot commented Nov 7, 2024

@thegreyd: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security 215baf6 link false /test security

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.

@thegreyd thegreyd changed the title ART-10563 Build bootc image as part of build-microshift job ART-10563 Build bootc image as part of build-microshift-bootc job Nov 8, 2024
@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 8, 2024
@ashwindasr ashwindasr removed approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Nov 8, 2024
@ashwindasr
Copy link
Contributor

ashwindasr commented Nov 8, 2024

Accidental approval, was meant for #1113

Removed labels

Copy link
Contributor

@joepvd joepvd left a comment

Choose a reason for hiding this comment

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

/lgtm
Excellent stuff!

/hold in case you want to fix something

help="Force plashet sync even if it is not needed")
@pass_runtime
@click_coroutine
async def build_microshift_bootc(runtime: Runtime, data_path: str, group: str, assembly: str, force: bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there are not really steps that run in parallel. Would it make sense to get rid of the async keyword here, and treat the code as imperative? Having the impression that this is a needless complication.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is going to be difficult.. a lot of our utils / standard methods have moved to async by default like exectools. And the non-async methods have drifted or lag in functionality that the async methods now have.

build_cmd.append("--dry-run")
await exectools.cmd_assert_async(build_cmd, env=self._doozer_env_vars)

# sleep a little bit to account for time drift between systems
Copy link
Contributor

Choose a reason for hiding this comment

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

:D

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 12, 2024
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2024
Copy link
Contributor

openshift-ci bot commented Nov 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashwindasr, joepvd

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 12, 2024
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 12, 2024
Copy link
Contributor

openshift-ci bot commented Nov 12, 2024

New changes are detected. LGTM label has been removed.

@thegreyd thegreyd merged commit bf3a77e into openshift-eng:main Nov 12, 2024
1 of 3 checks passed
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants