-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix fedora-review error handling #2835
Conversation
frontend/coprs_frontend/alembic/versions/bf4b5dc74740_map_mock_croots_to_dits_git_branch.py
Fixed
Show fixed
Hide fixed
3547398
to
eaa27f8
Compare
@@ -10,6 +10,7 @@ | |||
|
|||
import os | |||
import shutil | |||
from copr_common.helpers import chroot_to_branch |
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.
+1 for moving the method
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 change is no longer needed because we won't use chroot_to_branch
in copr-rpmbuild
after all. But since you +1'd it, I left the commit there.
cmd = [ | ||
"fedora-review", "--no-colors", "--prebuilt", "--rpm-spec", | ||
"--name", self.package_name, | ||
"--mock-config", self.mock_config_file, | ||
"--define", "DISTTAG={0}".format(branch), |
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 must be some bug in fedora-review, what am I missing? Is the package actually having the dist tag or not? (this must be bothering normal fedora-review users, not just Copr)
I made this way harder than it needed to be.
|
eaa27f8
to
9c6e396
Compare
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.
Thank you!
Fix FrostyX/fedora-review-service#28 Fix https://pagure.io/FedoraReview/issue/486 There is no fedora-review parameter for specifying the output directory. As a work-around we are renaming its results directory to "fedora-review" after the command finishes. However, our error handling is wrong and if the `fedora-review` command fails, the rename doesn't happend. Therefore, broken links. This commit fixes it. Relates: fedora-copr#2835
/packit build |
9c6e396
to
d76cb08
Compare
Fix FrostyX/fedora-review-service#28 Fix https://pagure.io/FedoraReview/issue/486 There is no fedora-review parameter for specifying the output directory. As a work-around we are renaming its results directory to "fedora-review" after the command finishes. However, our error handling is wrong and if the `fedora-review` command fails, the rename doesn't happend. Therefore, broken links. This commit fixes it.
d76cb08
to
cc16d8b
Compare
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.
LGTM
Fix FrostyX/fedora-review-service#28
Fix https://pagure.io/FedoraReview/issue/486
The
fedora-review
commands fails with the following error:It is strange to me why it cannot find any disttag in the package but
it is easy for us to specify it, so why not.