-
Notifications
You must be signed in to change notification settings - Fork 95
fix(RHELWF-13471): import draft builds with correct sidetags #1499
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
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM but I'd like to get @mmalina opinion on it.
9c4f780
to
9831097
Compare
LGTM, but the tests fail now. Let me know if you need help with that. |
9831097
to
6a44268
Compare
/lgtm, please rebase |
@elenagerman FYI, /lgtm doesn't do anything in this repo. You need to use Github UI to approve. Also, there isn't really any need to rebase the PR, unless there are conflicts (which the UI would warn about). |
6a44268
to
8f25bbe
Compare
Rebased. |
8f25bbe
to
a77ae84
Compare
I fixed the failing test: Again problem with bash - we really need to migrate to Python - the bash code is not very maintainable. |
if [[ "$draft" == "true" ]]; then | ||
is_sidetag=$(is_sidetag "$koji_target") | ||
if [[ "$is_sidetag" == "true" ]]; then | ||
koji_tag=${koji_target} | ||
elif [[ "$koji_target" != *-draft ]]; then | ||
koji_tag=${koji_target%-candidate}-draft | ||
fi | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct me if I'm wrong, but it looks like there's a missing else clause
if [[ "$draft" == "true" ]]; then | |
is_sidetag=$(is_sidetag "$koji_target") | |
if [[ "$is_sidetag" == "true" ]]; then | |
koji_tag=${koji_target} | |
elif [[ "$koji_target" != *-draft ]]; then | |
koji_tag=${koji_target%-candidate}-draft | |
fi | |
else | |
if [[ "$draft" == "true" ]]; then | |
is_sidetag=$(is_sidetag "$koji_target") | |
if [[ "$is_sidetag" == "true" ]]; then | |
koji_tag=${koji_target} | |
elif [[ "$koji_target" != *-draft ]]; then | |
koji_tag=${koji_target%-candidate}-draft | |
else | |
koji_tag=${koji_target} | |
fi | |
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you are right, thanks. I'm thinking about reverting it to the previous version, without the nested ifs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
a77ae84
to
b71a376
Compare
Avoid attaching "-draft" to sidetag names for draft builds. Signed-off-by: Lukas Holecek <[email protected]>
b71a376
to
658a5f1
Compare
FWIW, you can create a python script in the utils repo and use it in your task. That way you can have normal python unit tests. |
/ok-to-test |
Thank you @mmalina ! it was just the sign that's all good, and I wait for rebase (+ all tests passe) to approve (if needed) :) |
Is there any problem with CI again? |
Describe your changes
Avoid attaching "-draft" to sidetag names for draft builds.
Relevant Jira
RHELWF-13471
Checklist before requesting a review
do not merge
label if there's a dependency PRrelease-service-maintainers
handle if you are unsure who to tagSigned-off-by: My name <email>
.github/scripts/readme_generator.sh
and verified the results using.github/scripts/check_readme.sh