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

koji: Add functions to check/ensure the build tag #3552

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

ravanelli
Copy link
Member

  • There are cases we can't tag a Brew build after the upload is finished. The tag is a different transction, causing a scenario where we have the Brew build without a tag.

  • For this reason we need to make sure the tag was added in build as expected. If it wasn't, we need to add the tag.

@ravanelli
Copy link
Member Author

/retest-required

@ravanelli
Copy link
Member Author

I'm still testing it /hold

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.

A few small nits. Overall the logic looks good to me, but I'm no expert with the tags.

src/cmd-koji-upload Outdated Show resolved Hide resolved
src/cmd-koji-upload Outdated Show resolved Hide resolved
src/cmd-koji-upload Outdated Show resolved Hide resolved
src/cmd-koji-upload Outdated Show resolved Hide resolved
@dustymabe
Copy link
Member

I made a comment over in coreos/fedora-coreos-pipeline#902 (comment) that would have implications here if we decided we wanted to make a change.

@ravanelli ravanelli force-pushed the brew_validate branch 6 times, most recently from 4cae0a6 to a5b0478 Compare August 7, 2023 19:41
Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

This is looking good. I found one bug that needs fixing.

Can we also update the commit message to more accurately reflect the new change we're making?

src/cmd-koji-upload Outdated Show resolved Hide resolved
@dustymabe
Copy link
Member

Still need to update the commit message. Otherwise LGTM

 - Add check_tag, to check if the tag was added to the build;
 - Add ensure_tag, if the tag is not part of the build, add it.

Signed-off-by: Renata Ravanelli <rravanel@redhat.com>
@ravanelli ravanelli changed the title koji: Change Search function to validate the build status and tag koji: Add functions to check/ensure the build tag Aug 8, 2023
@openshift-ci
Copy link

openshift-ci bot commented Aug 8, 2023

@ravanelli: 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/rhcos 351ae13 link true /test rhcos

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.

Copy link
Member

@dustymabe dustymabe 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
Copy link
Member

Ignoring the RHCOS CI failure since this change couldn't possibly be causing a failure there.

@dustymabe dustymabe merged commit a4f25d5 into coreos:main Aug 9, 2023
2 checks passed
@dustymabe
Copy link
Member

/cherry-pick rhcos-4.13

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3565

In response to this:

/cherry-pick rhcos-4.13

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.

@dustymabe
Copy link
Member

/cherry-pick rhcos-4.12

@dustymabe
Copy link
Member

/cherry-pick rhcos-4.11

@dustymabe
Copy link
Member

/cherry-pick rhcos-4.10

@dustymabe
Copy link
Member

/cherry-pick rhcos-4.9

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3566

In response to this:

/cherry-pick rhcos-4.12

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.

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3567

In response to this:

/cherry-pick rhcos-4.11

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.

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3568

In response to this:

/cherry-pick rhcos-4.10

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.

@openshift-cherrypick-robot

@dustymabe: new pull request created: #3569

In response to this:

/cherry-pick rhcos-4.9

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.

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.

4 participants