Bug 1017534 (bre, bugbot2)
| Summary: | Bugzilla Rules Engine (aka Bugbot 2) | ||
|---|---|---|---|
| Product: | [Community] Bugzilla | Reporter: | Jason McDonald <jmcdonal> |
| Component: | Internal Tools | Assignee: | Simon Green <sgreen> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Matt Tyson 🤬 <mtyson> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.4 | CC: | agk, atangrin, cpelland, ebaak, jmcdonal, kbaker, lsmid, rjoost, sgreen, syeghiay |
| Target Milestone: | 4.4 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 4.4.4019 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-05-07 00:58:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 956199, 1088120 | ||
| Bug Blocks: | 1076328, 1080284, 1080672, 1080673, 1080748, 1081769, 1083000, 1083010, 1083013, 1085569, 1086449, 1119090, 1119092, 1266813 | ||
|
Description
Jason McDonald
2013-10-10 06:35:01 UTC
Other issues with the current system: 1) Rule writing can introduce many errors. At least two bugbot changes this week had errors (bug 1016772 and bug 1017444) that meant they were causing errors that weren't expected. 2) It can take a long time from when a Bugbot bug is filed to when it is implemented. This has speed up in recent times, since we aren't reliant on HSS Engineering Operations to push the changes live (this now happens automatically hourly) 3) A single change can spew out many e-mails. Just look at publician bugs in the hss-ied-bugs-list 4) There is no emergency kill switch for bugbot. 5) Because bugbot works on all bugs that match a pattern, it is possible to modify a lot of bugs at once. If that is an error, it can take a while to undo. My preferred solution is to replace it with a 'rules engine' that runs as an extension in Bugzilla, using the job queue. This fixes most of the problems that are been mentioned above. The one thing that this approach cannot do is change bugs historically. There are two possible options around this: a) Once we have implemented the ability to change flags in the 'Change multiple bugs at once' page, we can make it the responsibility of EPM to update the bugs. b) A method to manually add bug numbers into the rule engine queue (which will probably be a link at the bottom of buglist.cgi for those that have the appropriate permission. I'm in favour of having both options available. Updating 1,000 bugs via the 'Change multiple bugs at once' option is always going to lead to a proxy timeout. Having said that, this is not a small change. At a guess, it would be at least one month of development (160 hours), including the time to convert from the existing bug bot. Once live, I would want to change a few rules over at a time rather than do it all at once. Another important capability that comes to mind is the ability to log the changes that are made and reverse them automatically should it turn out that a rule modifies bugs that it wasn't intended to touch. (In reply to Jason McDonald from comment #3) > Another important capability that comes to mind is the ability to log the > changes that are made and reverse them automatically should it turn out that > a rule modifies bugs that it wasn't intended to touch. I was thinking about this last night. We can log bugbot activity in the bugs_activity (added = rule was run). If we decide to implement the ability to mass reverse changes, then the removed column can be used to remove it. I'm going to spend the next two days speaking out my ideas for what bugbot2 will look like. If anyone has ideas, now is the time to contribute. Having written most of the document today. Hope to finish it off tomorrow, and then let everyone review it. Rough estimate is that this is five weeks of work. I've finished writing up my design document. Jason McDonald is going to look over it, and then I'll let EIP have a look. After that, I'll send an e-mail to the Bugzilla lists and EPM for their say. I've estimated this to be approximately five weeks work. -- simon I've reviewed the design document (with which I'm am very impressed) and Simon has addressed my feedback. Now waiting on feedback from EIP. This change is now live. If there are any issues, do not reopen this bug. Instead, you should create a new bug and reference this bug. -- simon |