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

Catch the new Copr exception that is newly raised by Copr #1472

Conversation

lachmanfrantisek
Copy link
Member

Signed-off-by: Frantisek Lachman flachman@redhat.com
Fixes: #1471


RELEASE NOTES BEGIN
The bug in the Copr permission request is now fixed. (After the release of a new Copr client, Packit didn't catch that permission problem and didn't request the permissions to build in a custom Copr project.) You can wait for the fix to be deployed and retrigger the action or let the Packit team know to make the request manually.
RELEASE NOTES END

Signed-off-by: Frantisek Lachman <flachman@redhat.com>
Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

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

👍

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@lachmanfrantisek lachmanfrantisek added the mergeit When set, zuul wil gate and merge the PR. label Apr 27, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit bc1e30c into packit:main Apr 27, 2022
@lachmanfrantisek lachmanfrantisek deleted the catch-new-copr-auth-exception branch April 27, 2022 11:58
@@ -452,7 +452,7 @@ def submit_copr_build(self, script: Optional[str] = None) -> Tuple[int, str]:
},
)

except CoprRequestException as ex:
except (CoprRequestException, CoprAuthException) as ex:
if "You don't have permissions to build in this copr." in str(
Copy link
Member

Choose a reason for hiding this comment

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

do we still need to match the text of the exception if it's separate exception now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CoprAuthException: User packit is not allowed to build in the copr
3 participants