Hi Gerrit Community,I am working on a new plugin for Android and Chromium developersto support OWNERS files. See design doc at go/android-owners.Can someone create a new repository for me on Gerrit-Review?
Name: plugins/find-ownersDescription: Plugin to check for OWNERS approval before submit and find owners for a revision.Thank you in advance.Chih-Hung
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I think that the existing reviewers plugin does not use a dedicated OWNERS file.
find-owners is intended to cover more than just locating adequate reviewers, and instead be used to verify who can approve/commit changes for parts of a codebase.
Steve
On Tue, Jan 31, 2017 at 12:46 PM Stephen Hines <srh...@google.com> wrote:I think that the existing reviewers plugin does not use a dedicated OWNERS file.That's why I suggested to add it :)find-owners is intended to cover more than just locating adequate reviewers, and instead be used to verify who can approve/commit changes for parts of a codebase.There's also the existing owners plugin, which may be a more appropriate place?
Steve
On Mon, Jan 30, 2017 at 7:35 PM, David Pursehouse <david.pu...@gmail.com> wrote:
On Tue, Jan 31, 2017 at 12:32 PM 'Chih-hung Hsieh' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:Hi Gerrit Community,I am working on a new plugin for Android and Chromium developersto support OWNERS files. See design doc at go/android-owners.Can someone create a new repository for me on Gerrit-Review?Would it make sense to add this functionality in the existing reviewers plugin which, as far as I understand, is already being used by Google?
Name: plugins/find-ownersDescription: Plugin to check for OWNERS approval before submit and find owners for a revision.Thank you in advance.Chih-Hung
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
In go/android-owners I included evaluations of the following plugins:
- Owners: https://gerrit.googlesource.com/plugins/owners
- Reviewers: https://gerrit.googlesource.com/plugins/reviewers
- Reviewers-by-blame: https://gerrit.googlesource.com/plugins/reviewers-by-blame
- Chromium depot_tools: https://www.chromium.org/developers/how-tos/install-depot-tools https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/owners.py
The Chromium's OWNERS file syntax and rules are more than 90% compatible with Android's need. The other plugins have not used OWNERS file yet, or use a different syntax, and also very different rules to pick reviewers.Here are the summaries of my comparisons in go/android-owners:
- The "owners" plugin .... uses YAML syntax in OWNERS files. We need to change its OWNERS file parser to recognize our syntax. It does not support per-file or file pattern owners, only per directory.
- The "owners" plugin package includes an "owners-autoassign" plugin, which adds ALL owners in all related OWNERS files into the reviewers list automatically. We need two improvements:
- A smarter algorithm to select only a subset of owners, like the proposals in go/cl_approval_plus2_smart or the priority and limits in Chromium's depot_tools.
- Give the owners as suggestions, but do not add all of them into the reviewers list. In most cases, an active developer can pick reviewers easily.
- The "reviewers" and "reviewers-by-blame" plugins select reviewers without consulting OWNERS files. ... the manually selected people in OWNERS files are usually better candidates ...
I only see a small portion of shareable code. It would be difficult to convince existing "owners" or "reviewers" plugin users to accept a large chunk of new unused code.So I am proposing one independent plugin to serve both Chromium and Android.It should be easier to configure multiple such plugins in one Gerrit server for different projects, instead of configure one large plugin.
On Mon, Jan 30, 2017 at 8:48 PM, David Pursehouse <david.pu...@gmail.com> wrote:
On Tue, Jan 31, 2017 at 12:46 PM Stephen Hines <srh...@google.com> wrote:I think that the existing reviewers plugin does not use a dedicated OWNERS file.That's why I suggested to add it :)find-owners is intended to cover more than just locating adequate reviewers, and instead be used to verify who can approve/commit changes for parts of a codebase.There's also the existing owners plugin, which may be a more appropriate place?
Steve
On Mon, Jan 30, 2017 at 7:35 PM, David Pursehouse <david.pu...@gmail.com> wrote:
On Tue, Jan 31, 2017 at 12:32 PM 'Chih-hung Hsieh' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:Hi Gerrit Community,I am working on a new plugin for Android and Chromium developersto support OWNERS files. See design doc at go/android-owners.Can someone create a new repository for me on Gerrit-Review?Would it make sense to add this functionality in the existing reviewers plugin which, as far as I understand, is already being used by Google?
Name: plugins/find-ownersDescription: Plugin to check for OWNERS approval before submit and find owners for a revision.Thank you in advance.Chih-Hung
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
On 31 Jan 2017, at 05:33, 'Chih-hung Hsieh' via Repo and Gerrit Discussion <repo-d...@googlegroups.com> wrote:In go/android-owners I included evaluations of the following plugins:
- Owners: https://gerrit.googlesource.com/plugins/owners
- Reviewers: https://gerrit.googlesource.com/plugins/reviewers
- Reviewers-by-blame: https://gerrit.googlesource.com/plugins/reviewers-by-blame
- Chromium depot_tools: https://www.chromium.org/developers/how-tos/install-depot-tools https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/master/owners.py
The Chromium's OWNERS file syntax and rules are more than 90% compatible with Android's need. The other plugins have not used OWNERS file yet, or use a different syntax, and also very different rules to pick reviewers.Here are the summaries of my comparisons in go/android-owners:
- The "owners" plugin .... uses YAML syntax in OWNERS files. We need to change its OWNERS file parser to recognize our syntax.
- It does not support per-file or file pattern owners, only per directory.
- The "owners" plugin package includes an "owners-autoassign" plugin, which adds ALL owners in all related OWNERS files into the reviewers list automatically.
- We need two improvements:
- A smarter algorithm to select only a subset of owners, like the proposals in go/cl_approval_plus2_smart or the priority and limits in Chromium's depot_tools.
- Give the owners as suggestions, but do not add all of them into the reviewers list. In most cases, an active developer can pick reviewers easily.
- The "reviewers" and "reviewers-by-blame" plugins select reviewers without consulting OWNERS files. ... the manually selected people in OWNERS files are usually better candidates ...
I only see a small portion of shareable code. It would be difficult to convince existing "owners" or "reviewers" plugin users to accept a large chunk of new unused code.
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
On 1 Feb 2017, at 18:28, Chih-hung Hsieh <c...@google.com> wrote:Luca, I only had a quick look of the its-* plugins,and I like the idea of sharing functionalities across plugins.
The find-owners plugin will provide a REST API to return all ownersinformation of a change patch set. Different UI plugins candisplay the data and suggest reviewers. I am testing one forthe current GWT UI, and a new one for PolyGerrit (new UI) willbe written later. It would be nice if the "owners" plugin alsoprovide a simple API.
Similarly, there are many plugins that want to add/remove submit labels.Hence, it is important to have simple Prolog rules likefind_owners:submit_filter(In,Out),find_owners:remove_may_label(In,Out), andfind_owners:remove_need_label(In,Out).The parsing, caching, and error handling of OWNERS files indeedare the major components.
The UI JavaScript and Prolog rulesare relatively smaller. It would be nice to share some ofthe JavaScripts and Prolog rules, but I don't know how todo that yet, especially with the new PolyGerrit UI.