Closed
Bug 1243021
Opened 10 years ago
Closed 10 years ago
bugzilla integration throws internal server error when a child review request is discarded
Categories
(MozReview Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Pike, Assigned: glob)
References
()
Details
Attachments
(1 file)
Something's funky with https://reviewboard.mozilla.org/r/31033/ and it's integration into bug 721211.
https://reviewboard.mozilla.org/api/extensions/mozreview.extension.MozReviewExtension/summary/?bug=721211 is throwing an ISE.
Component: Extensions: MozReview Integration → MozReview
Product: bugzilla.mozilla.org → Developer Services
looks like:
File "/data/www/reviewboard.mozilla.org/venv/lib/python2.6/site-packages/mozreview-0.1.2a0-py2.6.egg/mozreview/resources/review_request_summary.py", line 282, in _summarize_families for child_rrid in child_rrids
KeyError: 31033
there's quite a few requests that are also showing the same issue:
more examples:
https://reviewboard.mozilla.org/r/28733/
https://reviewboard.mozilla.org/api/extensions/mozreview.extension.MozReviewExtension/summary/?bug=1208371
https://reviewboard.mozilla.org/r/22965/
https://reviewboard.mozilla.org/api/extensions/mozreview.extension.MozReviewExtension/summary/?bug=1205843
https://reviewboard.mozilla.org/r/28729/
https://reviewboard.mozilla.org/api/extensions/mozreview.extension.MozReviewExtension/summary/?bug=1208371
| Reporter | ||
Comment 4•10 years ago
|
||
I got into that state by trying to actually publish the updated diff of a formerly discarded review request.
I broke try, so that's why I needed to cancel the review requests.
| Reporter | ||
Comment 5•10 years ago
|
||
Is there anything that you or I could do to actually unblock the work in that bug of mine? Short of not using mozreview for at least that bug?
Flags: needinfo?(glob)
sorry about the delays in responding. i've been looking through the code and logs for this without much luck, and the relevant parts of the code are in a state of flux right now.
as far as i can tell this error shouldn't break functionality within mozreview itself. i'll check back once everything's been re-enabled again after this week's work.
Flags: needinfo?(glob)
looks like what's going on here is discarded review requests are skipped in _sort_families (line 180), however _summarize_families reads all commits from the parent's p2rb.commits (line 277) and expects them to be present in the sorted family list (line 286).
we should either return discarded requests to bmo, or apply the same filtering in _summarize_families().
note currently review board doesn't render discarded requests any differently in its commits table; i'll chat with the team to see what the expected behavour is there.
discarded review requests should be ignored everywhere - bug 1248425
Summary: integration with bug 721211 fails with internal server error → bugzilla integration throws internal server error when a child review request is discardede
Summary: bugzilla integration throws internal server error when a child review request is discardede → bugzilla integration throws internal server error when a child review request is discarded
Fixes a crash triggered by a child review request being marked as discarded.
Review commit: https://reviewboard.mozilla.org/r/34985/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/34985/
Attachment #8719527 -
Flags: review?(mdoglio)
Comment 10•10 years ago
|
||
Comment on attachment 8719527 [details]
MozReview Request: mozreview: discarded child reviews shouldn't break bmo integration (bug 1243021) r?mdoglio
https://reviewboard.mozilla.org/r/34985/#review31549
::: pylib/mozreview/mozreview/resources/review_request_summary.py:291
(Diff revision 1)
> - for child_rrid in child_rrids
> + for child_rrid in filter(
to filter a list comprehension it's probably more idiomatic to use a `if` clause at the end of it.
```python
for child_rrid in child_rrids if child_rrid in family['children']
```
Attachment #8719527 -
Flags: review?(mdoglio) → review+
| Assignee | ||
Comment 11•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Developer Services → MozReview
You need to log in
before you can comment on or make changes to this bug.
Description
•