Closed
Bug 330506
Opened 20 years ago
Closed 16 years ago
[MODULE] Add a module to nit-review patches using jst-review
Categories
(Webtools Graveyard :: Mozbot, enhancement, P3)
Webtools Graveyard
Mozbot
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Gijs, Assigned: Gijs)
References
()
Details
(Whiteboard: [has-attachment])
Attachments
(2 files)
Several people wondered whether we could have functionality in mozbot/firebot to nit-review new patches. Of course, a review from just a bot is not enough, but it can give helpful indications on how to improve at times.
Allan Beaufour wrote/fixed/changed the jst-review script that does this, and I wrote a mozbot module that uses it to tell you about what's wrong with your patch.
I will attach the module in a bit. I'm not sure whether I'm "allowed" to add another library to the list of requirements to use mozbot... That'll be for the reviewers to decide.
Also, please note this is the first substantial bit of perl I've ever written. I realize that it's probably not too great yet, but I'm willing to fix whatever's wrong with it (within reason, of course).
| Assignee | ||
Comment 1•20 years ago
|
||
I'm assuming Hixie is the right person to ask for review on this. If someone else spots something, please feel free to do so. If anyone's entitled to review it, apart from Hixie, and they have time to do so, feel free to review it in that case. I hear Hixie's busy ;-).
Attachment #215062 -
Flags: review?(ian)
| Assignee | ||
Comment 2•20 years ago
|
||
Comment on attachment 215062 [details]
Review module
Fixing mimetype, I hope...
Attachment #215062 -
Attachment mime type: application/octet-stream → text/plain
| Assignee | ||
Comment 3•20 years ago
|
||
Merm. I just realized that this still has
$self->debug($review_line);
which should obviously be removed. Sorry. Sparing you all the bugmail of a new attachment + obsoleting the old one and retracting the review request. Or so I hope.
Comment 4•20 years ago
|
||
This is very Mozilla-specific, so probably shouldn't be a module that is shipped with mozbot (assuming I ever get around to shipping mozbot!). Can you run it on one of the bots for a while and see how it works?
| Assignee | ||
Comment 5•20 years ago
|
||
OK. For the record, firebot on moznet runs this module now (Thanks Wolf!).
Comment 6•20 years ago
|
||
It would be nice to have that module in CVS though, so that one could easily get the most current version of it
Comment 7•20 years ago
|
||
Maybe a moz-specific CVS directory?
Updated•20 years ago
|
Attachment #215062 -
Flags: review?(ian) → review-
Updated•19 years ago
|
QA Contact: kerz → mozbot
Updated•19 years ago
|
Assignee: ian → gijskruitbosch+bugs
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Assignee | ||
Comment 8•18 years ago
|
||
This patch moves the Bugzilla, Sheriff and Tinderbox modules to a subdirectory of BotModules named 'MozSpecific' (it also moves the BugzillaMailHandler stuff)
In order for things to continue to work after this move, I've also changed two things:
- Made LoadModule in mozbot.pl check for modules in aforementioned subdirectory if they do not exist in the BotModules directory
- Moved the location of the bugmail.log file to the new subdirectory. As far as I can tell, the only thing that needed to be adjusted for that was the BugzillaMailHandler path, as the Bugmail module just expects the logfile to be in the same dir it lives in.
Hixie, would this do for the "moz-specific CVS directory" that you wanted?
(Note that I have not yet added the nit-review module at all, I presume you would want to do a more careful (re-)review of it before it actually goes into CVS)
Attachment #278193 -
Flags: review?
| Assignee | ||
Updated•18 years ago
|
Attachment #278193 -
Flags: review? → review?(ian)
Comment 9•18 years ago
|
||
Comment on attachment 278193 [details] [diff] [review]
Move Bugzilla, Sheriff and Tinderbox modules to separate directory
If you're going to do this (though I don't see why it is needed, as mozbot is dead), please do a CVS copy instead of a move this way, or else you're going to lose all the CVS history, which would be really bad.
Attachment #278193 -
Flags: review-
| Assignee | ||
Comment 10•18 years ago
|
||
Reed: fair point about the CVS copy, but that's rather hard to diff.
Furthermore, how "dead" is mozbot? Is there a bug filed to get a new owner for it if Ian is not doing anything to it anymore? Also, you yourself seem to have checked something into it at the beginning of this year, so apparently it's not *that* dead.
Comment 11•18 years ago
|
||
'Dead' is a relative term for a project thats not very active to start with. It seems to come from bug 365975.
Though, the Bugzilla module is certainly not Mozilla specific. Tinderbox is, as-is sheriff. though, I don't think moving them is a good idea, as it makes it more difficult to maintain a mozbot (i.e. afaik, mozbot won't load a module in a subdirectory of modules, so you'd have to move it to the main directory to load it, and make cvs up'ing the bot for patches harder.)
| Assignee | ||
Comment 12•18 years ago
|
||
(In reply to comment #11)
> 'Dead' is a relative term for a project thats not very active to start with. It
> seems to come from bug 365975.
>
> Though, the Bugzilla module is certainly not Mozilla specific. Tinderbox is,
> as-is sheriff. though, I don't think moving them is a good idea, as it makes it
> more difficult to maintain a mozbot (i.e. afaik, mozbot won't load a module in
> a subdirectory of modules, so you'd have to move it to the main directory to
> load it, and make cvs up'ing the bot for patches harder.)
>
Which is why I hacked up mozbot.pl to look into the newly created directory as well. ;-) (I would have made it general, but this is sort of hard given the way mozbot looks for modules)
Comment 13•18 years ago
|
||
Oh. Silly me, I should've guessed. :-) Tinderbox probably could/should be made not bound to be mozilla, other organizations do use Tinderbox, and there's an outstanding bug on adding support for customizing the URL and adding Tinderbox2 and 3 support.
You probably could move sheriff into a mozilla specific directory though, but its a dead module, for the most part. Even Tinderbox1's default configuration breaks it.
As for the patch to mozbot.pl and landing this module in a mozilla specific directory, I don't see why that'd be a problem. :-) but reviews for mozbot are eternal, given Ian's business and lack of time for mozbot.
| Assignee | ||
Updated•18 years ago
|
Attachment #278193 -
Flags: review?(ian)
| Assignee | ||
Updated•18 years ago
|
Assignee: gijskruitbosch+bugs → ian
Comment 14•17 years ago
|
||
Resetting to new default owner.
Assignee: ian → nobody
Whiteboard: [has-attachment]
Updated•17 years ago
|
Priority: -- → P5
Updated•17 years ago
|
Priority: P5 → P3
Summary: Add a module to nit-review patches using jst-review → [MODULE] Add a module to nit-review patches using jst-review
Comment 15•16 years ago
|
||
Comment on attachment 215062 [details]
Review module
marking review so this is more obviously on my radar..
Attachment #215062 -
Flags: review?(bugtrap)
Comment 16•16 years ago
|
||
Comment on attachment 215062 [details]
Review module
It can join the ranks of mozbot.
Attachment #215062 -
Flags: review?(bugtrap) → review+
Updated•16 years ago
|
Comment 17•16 years ago
|
||
Checking in Review.bm;
/cvsroot/mozilla/webtools/mozbot/BotModules/Review.bm,v <-- Review.bm
initial revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 18•16 years ago
|
||
(In reply to comment #16)
> (From update of attachment 215062 [details])
> It can join the ranks of mozbot.
Awesome, thanks! :-)
Updated•7 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•