Run push hooks, or run Lint when doing `arc diff` or using moz-phab to publish patches to phabricator
Categories
(Conduit :: moz-phab, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: standard8, Unassigned)
References
Details
(Keywords: conduit-triaged)
Attachments
(1 obsolete file)
Comment 1•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Updated•7 years ago
|
Comment 10•7 years ago
|
||
Updated•7 years ago
|
Comment 11•7 years ago
|
||
Comment 12•7 years ago
•
|
||
Fwiw, I use:
alias review="mach lint -o && moz-phab submit"
Can we just run mach lint --outgoing from within moz-phab?
Comment 13•7 years ago
|
||
+1 on this.
I just had some code reverted because it had a linting issue. It would be great if remote linting would comment on the bad lines and even add itself as a blocking reviewer.
Comment 14•7 years ago
|
||
I just had some code reverted because it had a linting issue
It hasn't been found at review phase?
Comment 15•7 years ago
|
||
It hasn't been found at review phase?
No, it wasn't.
Thoughts on why it's easy to miss these:
- The Build Status section often has red items (I currently have a review with a red build due to a http request error, and I don't have permissions to rerun).
- It's a pretty small section.
- People might assume it will create a (blocking) comment if there are issues.
Comment 16•7 years ago
|
||
I've created https://phabricator.services.mozilla.com/D28414. It's not as fancy as https://phabricator.services.mozilla.com/D8107, but it's easy to copy into all of my repos and protect myself against this right now.
Comment 17•7 years ago
|
||
(In reply to Andrew Erickson [:aerickson] from comment #15)
It hasn't been found at review phase?
No, it wasn't.
Could you please share the link to the review?
Not sure that .arclint is the right option as, I have been told that we are moving away from arc itself.
Comment 18•7 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #17)
(In reply to Andrew Erickson [:aerickson] from comment #15)
It hasn't been found at review phase?
No, it wasn't.
Could you please share the link to the review?
https://phabricator.services.mozilla.com/D28260. The Build Status section is hidden on landing, so it's not very useful to look at.
Not sure that .arclint is the right option as, I have been told that we are moving away from arc itself.
I'd hope moz-phab would run mach lint as ahal suggested earlier.
Aside: I use moz-phab for initial phab creation, but it doesn't have a --update feature so I have to keep using arc. Is moz-phab going to add an --update flag or how am I supposed to be using it?
Comment 19•7 years ago
|
||
Side note, folks using phabricator on mozilla hg repos outside of m-c won't have mach, but still use moz-phab. Like we do for https://hg.mozilla.org/l10n/compare-locales/.
Comment 20•7 years ago
|
||
Sorry Andrew, the code review bot failed several times cloning mozilla-central to analyze your revision.
As we are moving to a different workflow this week, where our bot won't be cloning anymore, this issue should not happend again.
Comment 21•7 years ago
|
||
:aerickson - moz-phab is automatically updating the revision if Differential Revision: DXXX is present in commit summary.
Comment 22•5 years ago
|
||
Shame that this appears to have stalled. A contributor recently asked me if we had this functionality and I used to have hooks for this back in the day when we still hg push'd stuff to inbound.
| Reporter | ||
Comment 23•3 months ago
|
||
Moving across to moz-phab, since Arc isn't really used/promoted now. I still think this would be potentially useful, maybe an alternative would be to set the commit hooks for the git repositories up by default in mach bootstrap.
Description
•