Closed
Bug 1169131
Opened 11 years ago
Closed 11 years ago
add-mozreview-children.pl production run issues
Categories
(bugzilla.mozilla.org Graveyard :: Extensions: MozReview Integration, defect)
bugzilla.mozilla.org Graveyard
Extensions: MozReview Integration
Production
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: glob, Unassigned)
References
Details
Attachments
(1 file, 2 obsolete files)
|
11.36 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
two issues encountered during the add-mozreview-children.pl run on production:
1. users with review requests disabled cause the script to fail:
Blair McBride [:Unfocused] (UNAVAILABLE) <bmcbride@mozilla.com> is not currently accepting 'review' requests.
2. the script is generating flagmail for every change. imho we shouldn't generate _any_ emails for this migration (bugmail or flagmail).
(2) will need some changes to bugzilla's internals.
| Assignee | ||
Comment 2•11 years ago
|
||
Furthering point 3: the easiest method is to only set r? flags on each commit for anyone who still has a r? on the parent.
| Assignee | ||
Comment 3•11 years ago
|
||
4. Because the time between deploying the MozReview changes and running the script is now stretched a fair bit, we should ensure that we don't create duplicate commit attachments, which will happen if someone publishes a change to a review request created before the switchover.
| Assignee | ||
Comment 4•11 years ago
|
||
4, amended: Don't make any guesses as to state. Just ensure that parents are gone and all commits are there.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mcote
Status: NEW → ASSIGNED
| Assignee | ||
Comment 5•11 years ago
|
||
I inverted the logic here, creating a map of attachments by URL and then going through all review requests associated with the bug, obsoleting parents and creating children where necessary.
Attachment #8613647 -
Flags: review?(glob)
Comment on attachment 8613647 [details] [diff] [review]
Fix script issues
Review of attachment 8613647 [details] [diff] [review]:
-----------------------------------------------------------------
most of these changes look good, however it appears to be relying on a field that rb does not return.
::: extensions/MozReview/bin/add-mozreview-children.pl
@@ +121,5 @@
> +
> + foreach my $summary (@$summaries) {
> + my $parent = $summary->{"parent"};
> + my $attacher = Bugzilla::User->new({ id => $parent->{"submitter_bmo_id"},
> + cache => 1 });
submitter_bmo_id isn't returned by rb:
Bug 35 (1/826)
Fetching reviews from https://reviewboard-dev.allizom.org/api/extensions/mozreview.extension.MozReviewExtension/summary/?bug=35...
Attachment 8591313 [details]: https://reviewboard-dev.allizom.org/r/430/
Bad argument param sent to Bugzilla::User::new function.
Attachment #8613647 -
Flags: review?(glob) → review-
| Assignee | ||
Comment 7•11 years ago
|
||
mozreview: Include request submitter's BMO id in review-request summary API (bug 1169131). r?dminor
Like the reviewers' BMO ids, this should be in a structure with the username,
but we're keeping them separate, for now, for backwards compatibility.
Attachment #8614028 -
Flags: review?(dminor)
| Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Byron Jones ‹:glob› from comment #6)
> submitter_bmo_id isn't returned by rb:
Doh, thanks, I forgot that I hadn't committed that change yet.
| Comment hidden (obsolete) |
| Assignee | ||
Updated•11 years ago
|
Attachment #8614028 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•11 years ago
|
||
Comment on attachment 8613647 [details] [diff] [review]
Fix script issues
Required change deployed to dev.
Attachment #8613647 -
Flags: review- → review?(glob)
| Assignee | ||
Comment 11•11 years ago
|
||
Removed pointless =cut from Flag.pm and added __END__ as suggested.
Attachment #8613647 -
Attachment is obsolete: true
Attachment #8613647 -
Flags: review?(glob)
Attachment #8614060 -
Flags: review?(glob)
| Reporter | ||
Comment 12•11 years ago
|
||
Comment on attachment 8614060 [details] [diff] [review]
Fix script issues, v2
Review of attachment 8614060 [details] [diff] [review]:
-----------------------------------------------------------------
r=glob
Attachment #8614060 -
Flags: review?(glob) → review+
| Reporter | ||
Comment 13•11 years ago
|
||
i made one minor change before committing.. i moved the memcached->clear_all to after the commit_transaction.
while it means that we'll be clearing the cache _a lot_ it protects us from having an inconsistent cache should the script fail mid-way.
To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
805054a..5cdb187 master -> master
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: bugzilla.mozilla.org → bugzilla.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•