Closed Bug 1545164 Opened 7 years ago Closed 7 years ago

`r!foo,bar` that gets turned into `r=foo!,bar` instead of `r=foo!,bar!`

Categories

(Conduit :: moz-phab, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kats, Assigned: glob)

Details

(Keywords: conduit-triaged)

Attachments

(1 file)

With https://phabricator.services.mozilla.com/D27598 I initially had the commit message ending with r!botond. That didn't work in that it left the patch with no reviewers. Then I edited the commit locally to be r?botond! and resubmitted. Again it did not add any reviewers, so I added botond manually using the web UI.

According to Kwan on IRC the r?botond! syntax should have worked. Maybe it doesn't work if I edit locally and repush?

Regardless it would be good if the syntax was actually documented somwhere. I searched in https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html and didn't see anything, and the moz-phab submit -h command just says that you can use --blocker to override the default ("from commit") but doesn't say what syntax is needed in the commit message.

i'm unable to reproduce this with the latest version of moz-phab.
do you still have a copy of the moz-phab output from your initial submission?

how the r!botond support works is it rewrites that to r=botond! prior to submitting to phabricator.
this rewriting is visible in the list of commits prior to the confirmation prompt.

until bug 1545158 is fixed (thanks for filing!) you can check if your version of moz-phab supports the r!botond syntax by seeing if it has a def morph_blocking_reviewers(): line.

According to Kwan on IRC the r?botond! syntax should have worked. Maybe it doesn't work if I edit locally and repush?

that's bug 1501077.

Flags: needinfo?(kats)

My moz-phab doesn't have the morph_blocking_reviewers function, so I guess it's too old. Timestamp on the file is from March 4th.

Flags: needinfo?(kats)

Please run moz-phab self-update and try again.
Does the problem still exist?

Flags: needinfo?(kats)

It works after updating moz-phab, thanks! Perhaps this bug should just be about documenting this properly somewhere, then.

Flags: needinfo?(kats)

Also, if I do r!foo,bar that gets turned into r=foo!,bar instead of r=foo!,bar! like I would expect.

(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #4)

Perhaps this bug should just be about documenting this properly somewhere, then.

this bug is to fix a common mistake rather than making it a supported syntax.
i'd prefer to leave it undocumented.

(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #5)

Also, if I do r!foo,bar that gets turned into r=foo!,bar instead of r=foo!,bar! like I would expect.

oops - let's morph this bug to that issue :)

Keywords: conduit-triaged
Priority: -- → P2
Summary: Commit reviewer syntax for blocking reviewer didn't work → `r!foo,bar` that gets turned into `r=foo!,bar` instead of `r=foo!,bar!`

(In reply to Byron Jones ‹:glob› 🎈 from comment #6)

this bug is to fix a common mistake rather than making it a supported syntax.
i'd prefer to leave it undocumented.

When I said this should be documented, I was referring to the syntax in general. I don't care whether you recommend r=foo! or r!foo as long the syntax is documented somewhere, which AFAICT it is not currently.

it's on the faq under https://wiki.mozilla.org/Phabricator/FAQ#How_do_I_require_a_review_from_all_reviewers_before_landing.3F but i agree it isn't clear at all (i initially thought it wasn't there!). i'll update the faq.

Oh dear. Can we merge the moz-conduit.readthedocs.io documentation with the wikimo documentation? I see the thing that says "The FAQ is on a wiki to make it easier to maintain;" but this is somewhat user-unfriendly because you can't just ctrl-f the docs to find what you're looking for.

Assignee: nobody → glob

this has landed.

Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: