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

backend: don't eat the "build detail collecting" traceback #2866

Merged

Conversation

praiskup
Copy link
Member

Use "log.exception()" which passes the traceback down to backend.log. This helps me to debug some release-blocker issue right now, normally we (when infra is OK) we shouldn't ever catch an exception there.

Use "log.exception()" which passes the traceback down to backend.log.
This helps me to debug some release-blocker issue right now, normally we
(when infra is OK) we shouldn't ever catch an exception there.
This actually causes error 500 upon "update" request from copr backend
background worker, eventually leading to never-stopped builder process.

Relates: fedora-copr#2841
@praiskup praiskup force-pushed the praiskup-dont-swallow-specfile-errors branch from 7a57560 to 07e68c3 Compare August 11, 2023 10:51
@praiskup praiskup requested a review from FrostyX August 11, 2023 11:04
if exclusivearch and arch not in exclusivearch:
finish(chroot, StatusEnum("skipped"))

if arch in upd_dict["results"]["excludearch"]:
excludearch = upd_dict["results"].get("excludearch")
Copy link
Member

Choose a reason for hiding this comment

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

The change is okay and will fix the traceback, so +1.
But IMHO the "exclusivearch" and "excludearch" should always be present, so there is probably a bug earlier in the pipeline. Per @praiskup on Slack, it seems that we are using RPMResults instead of SRPMResults for custom method.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should I drop the commit? Or what do you prefer?

@praiskup praiskup merged commit 31b4a58 into fedora-copr:main Aug 14, 2023
8 checks passed
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.

3 participants