Code Review Dashboard: Difference between revisions

From Xen
Jump to navigationJump to search
 
(102 intermediate revisions by the same user not shown)
Line 1: Line 1:
The Xen project has developed a code review Dashboard in collaboration with [http://bitergia.com/ Bitergia]. There are two variants of this dashboard
The Xen project has developed a '''Code Review Dashboard''' in collaboration with [http://bitergia.com/ Bitergia]. There are two variants of this dashboard
* [https://kibana.bitergia.com/xen/app/kibana kibana.bitergia.com/xen/app/kibana]: User version
* [https://xen.biterg.io xen.biterg.io]: User version
* [https://kibana.bitergia.com/xen-edit/app/kibana kibana.bitergia.com/xen-edit/app/kibana]: Administrator version (allows to create extra customizations]
* [https://xen.biterg.io/edit Edit Dashboard] and [https://xen.biterg.io/data Elastic Search Data]: Administrator versions (allows to create extra customizations). If you want specific customisations or access to this panel, please contact <code style="color: firebrick ">community.manager@xenproject.org</code>.


This document provides a version of the documentation for the*user version* of the dashboard, that is editable and easily consumable
This document provides a version of the documentation for the '''user version''' of the dashboard, that is editable and easily consumable


__TOC__
__TOC__


= Dashboard Issues: Getting Help =
= Basic Concepts =
If you discover a dashboard issue, please contact commuty.manager@xenproject.org


= Panels =
= Basic Concepts =
== Where does the data in the dashboard come from ==
The following diagram shows how we process the data which serves as basis for the code review dashboard

[[File:Data_Processing_Flow.png|600px]]

There are two indexes, whose fields are used in panels, widgets and for searches. The indexes are
* <code style="color: firebrick ">xen-patchseries-timefocused</code>: The ''Performance'' panel is based on this index. The ''Index-Time'' panel exposes the raw data behind this index.
* <code style="color: firebrick ">xen-patchseries-reviewers</code>: The ''Backlog'', ''Community'' and ''Data-Explorer'' panels are based on this index. The ''Index-Review'' panel exposes the raw data behind this index.
To formulate advanced search queries, refer to the [[#Indexes_and_their_Fields_.28used_in_Advanced_Filters.29|Index Definitions]].

=== Restrictions ===
{{WarningLeft|Currently we are only able to map code reviews that are posted on xen-devel@ to the following git repos: xen.git, osstest.git, minios-git and raisin.git. We cannot map Linux, QEMU, FreeBSD, NetBSD, and other code reviews that are cross posted on xen-devel@ to a git repository. Such code reviews will show up in the dashboard: however we are not yet able to determine whether these have completed. In other words, such code reviews will show up us un-merged in the dashboard.}}

== Predefined Panels ==
We have pre-defined a number of panels (also called dashboards). These are accessible from the '''menu bar''' (see picture below)

[[File:Dashboard_Menus.png|900px]]

You can find a detailed description of individual panels [[#Panels|here]].

== Widgets ==
Widgets show the basic unit of visualising data in dashboards. The picture below shows two example widgets (a time based diagram and a table).
[[File:Dashboard Widget.png|600px]]
Notes:
* Double clicking on elements in widgets can be used to create a simple '''filter'''
* A select operation can be used in time based diagrams to select an '''absolute time filter'''
* Note that you can resize and re-arrange widgets, should you wish to

=== Mapping reviews to e-mails ===

Both indexes and thus many widgets contain a <code style="color: firebrick ">message_id</code> fields, which
* can be used to retrieve the message in an index in your inbox (please refer to your mail client’s documentation)
* can be used to find a message via [http://marc.info marc.info]. Note that in most series, patch, comment, etc. related tables, there are direct clickable links to [http://marc.info marc.info] e-mails

[[File:Dashboard_Message.png|600px]]

Following the '''marc.info link''' will get you to the respective patch series, patch, comment, etc.

We use the following syntax is to map the <code style="color: firebrick ">message_id</code> field to e-mails:

<pre class="html">http://marc.info/?i=&lt;message_id&gt;</pre>
If the <code style="color: firebrick ">message_id=&lt;1455681279-28451-1-git-send-email-jfehlig@suse.com&gt;</code>, then the relevant search query is

<pre class="html">http://marc.info/?i=&lt;1455681279-28451-1-git-send-email-jfehlig@suse.com&gt;</pre>

=== Tables ===

Data in tables can be exported as a comma-separated-values (CSV) file. To do this, click on either the Raw or Formatted links at the bottom of any of the detailed information tabs. A raw export contains the data as it is stored in Elasticsearch which is used to store the two data [[#Where_does_the_data_in_the_dashboard_come_from|indexes]] on which all visualisations are based. A formatted export contains the results of any applicable Kibana [https://www.elastic.co/guide/en/kibana/current/managing-fields.html field formatters]: for example a formatted export, will save <code style="color: firebrick ">message_id</code> fields as URLs rather than the actual IDs, dates as timestamps, etc.

=== Percentiles ===

Several charts (like the one in the screenshot below), show data which are divided into '''3 percentiles'''. The datasets are ordered by a specific metric, and are grouped up to the 25%, the 50%, the 75% percentile and in some cases the 95% percentile.

[[File:Dashboard Percentile.png|600px]]

This approach is easiest to explain by example: In this case, we are measuring '''time2merge''' (= the time it takes to merge a patch). The data is arranged n a sorted histogram, with the number of patches in a series (aka '''NumPatches''') arranged in buckets of decreasing population on the x axis. In this example, looking at the x-asis entries of NumPatches=5, the
* 25th percentile means that 25% of all series which consist of 5 patches are merged in 0.753 days
* 50th percentile means that another 25% (from 25th to 50th) of all series which consist of 5 patches are merged in 3.479 days
* 75th percentile means that another 25% (from 50th to 75th) of all series which consist of 5 patches are merged in 15.829 days

Note that in the image above for NumPatches=22, 24 and 27 the there is only 1 patch and thus the 3 percentiles are the same.

The exact data can be obtained by hovering over elements in this widget.

== Filters ==
Data in each panel can be filtered in a number of different ways. The picture below shows the three different filters

[[File:Dashboard_Filters.png|900px]]

* '''Time Filter''': Allows to select a time period
* '''Advanced Filters''': Allows to create complex filters (requires knowledge
* '''Filters''': Allows to filter through data that is displayed in '''widgets'''. Typically you create simple filters (e.g. filter reviews submitted by an individual) by selecting an item in a widget.

For more information on filtering see [[#Filtering|Filtering]].

=== Sharing views with Filters ===
You can share dashboards with filters by selecting the '''Share Icon''', which is marked on the right in blue in the screenshot below.
[[File:Dashboard_Share.png|900px]]


= Git, Overview, Demographics and Data Status Panels =

== Git, Overview, Demographics ==
The following panels show various aspects of '''git commits per sub-project'''. These are fairly self explanatory, although I will add some more information on how to use '''Demographics''' later.

You may want to read [[#Basic Operations|Basic Operations]] for filtering by time and specific sets of data. There are also a number of [[#Advanced_Filters|Advanced Filters]] which are useful for these panels:

Below are a few useful example queries

<code style="color: firebrick ">project: "Xen Hypervisor" OR "Windows PV Drivers"</code><br>lists commits from these two projects

<code style="color: firebrick ">repo_name: "git://xenbits.xen.org/xen.git" OR "git://xenbits.xen.org/osstest.git"</code><br>lists commits from these repositories (note: check the correct repository names in the Repositories widget in the Git panel

== Data Status ==

This panel shows the last time git repositories were processed

= Code Review Panels =


The Xen Project Code Review dashboard has 4 panels: One for documentation, a Community Panel, a Performance Panel and a Backlog Panel.
The Xen Project Code Review dashboard has 4 panels: One for documentation, a Community Panel, a Performance Panel and a Backlog Panel.
Line 16: Line 115:


In this panel, several widgets are grouped by use-case.
In this panel, several widgets are grouped by use-case.

<gallery>
File:Dashboard_Community_Top_Reviewers.png|Top Reviewers
File:Dashboard_Community_Imbalances.png|Imbalances between Reviewers and Contributors
File:Dashboard_Community_PostACK.png|Post ACK Comments
File:Dashboard_Community_Flags.png|Flag analysis
File:Dashboard_Community_Drill.png|Drill into Review activity information
</gallery>


=== Use case: Identify top reviewers (for both individuals and companies) ===
=== Use case: Identify top reviewers (for both individuals and companies) ===


==== <code>Evolution 'Reviewed-by' flag (no patchseries, no patches)</code> ====
==== <code style="color: firebrick ">Evolution 'Reviewed-by' flag (no patchseries, no patches)</code> ====


Shows the evolution of the <code>Reviewed-by</code> flag over time. Allows to create a time filter.
Shows the evolution of the <code style="color: firebrick ">Reviewed-by</code> flag over time. Allows to create a time filter.


==== <code>Top People</code> and <code>Domain</code> <code>Reviewing Patches</code> ====
==== <code style="color: firebrick ">Top People</code> and <code style="color: firebrick ">Domain</code> <code style="color: firebrick ">Reviewing Patches</code> ====


Counts the number of people and organisations who commented on other people’s patches (by counting the <code>Reviewed-by</code> attributes) in the selected time period. Allows to filter by developer (e-mail address and e-mail domain).
Counts the number of people and organisations who commented on other people’s patches (by counting the <code style="color: firebrick ">Reviewed-by</code> attributes) in the selected time period. Allows to filter by developer (e-mail address and e-mail domain).


=== Use case: Identify Imbalances between reviewers and contributors ===
=== Use case: Identify Imbalances between reviewers and contributors ===


==== <code>Evolution Patches (no patchseries, no comments)</code> ====
==== <code style="color: firebrick ">Evolution Patches (no patchseries, no comments)</code> ====


Shows the evolution of the patches posted over time. Allows to create a time filter.
Shows the evolution of the patches posted over time. Allows to create a time filter.


==== <code>Top People</code> and <code>Domain Imbalance Analysis</code> ====
==== <code style="color: firebrick ">Top People</code> and <code style="color: firebrick ">Domain Imbalance Analysis</code> ====


Over the selected time period, the following fields are aggregated per person or domain * '''Balance''': Difference between patches posted and and comment activity. A positive number implies that the person or organisation comments more than she posts patches. * '''Patches''': Number of patches posted * '''Reviews''': Number of <code>Reviewed By</code> flags
Over the selected time period, the following fields are aggregated per person or domain
* '''Balance''': Difference between patches posted and and comment activity. A positive number implies that the person or organisation comments more than she posts patches.
* '''Patches''': Number of patches posted
* '''Reviews''': Number of <code style="color: firebrick ">Reviewed By</code> flags


=== Use case: Identify post-ack comments on patches ===
=== Use case: Identify post-ack comments on patches ===


==== <code>Evolution Comments Activity (no patchseries, no patches)</code> ====
==== <code style="color: firebrick ">Evolution Comments Activity (no patchseries, no patches)</code> ====


Shows the evolution of comments made on patches (both real and self-comments) over time. Allows to create a time filter.
Shows the evolution of comments made on patches (both real and self-comments) over time. Allows to create a time filter.


==== <code>Top People</code> and <code>Domain Commenting on Patches</code> ====
==== <code style="color: firebrick ">Top People</code> and <code style="color: firebrick ">Domain Commenting on Patches</code> ====


Over the selected time period, the following fields are aggregated per person or domain * '''Comments''': The number of review comments on other people’s patches. * '''Post ACK comments''': The number of comments made after a patch has been ACK’ed
Over the selected time period, the following fields are aggregated per person or domain
* '''Comments''': The number of review comments on other people’s patches.
* '''Post ACK comments''': The number of comments made after a patch has been ACK’ed

=== Use case: Flag analysis ===

==== <code style="color: firebrick ">Evolution Flags (no patchseries, no comments, no patches)</code> ====

Shows the evolution of flags made on a patch series. Allows to create a time filter.

==== <code style="color: firebrick ">Top People</code> and <code style="color: firebrick ">Domain Ack Analysis</code> ====

Over the selected time period, ACKs are aggregated per person or domain.

==== <code style="color: firebrick ">Top Flags Analysis</code> ====

Over the selected time period, git tags (a good definition of their use can be found [https://www.kernel.org/doc/Documentation/SubmittingPatches here] are aggregated.


=== Use case: Drill into Review activity information ===
=== Use case: Drill into Review activity information ===


The following widgets are of particular interest to code submitters, reviewers and maintainers. A similar view, which is optimised to identifying which code reviews are almost complete are visible in the <code>Backlog</code> and <code>Data-Explorer</code> panels.
The following widgets are of particular interest to code submitters, reviewers and maintainers. A similar view, which is optimised to identifying which code reviews are almost complete are visible in the <code style="color: firebrick ">Backlog</code> and <code style="color: firebrick ">Data-Explorer</code> panels.


==== <code>Evolution Email Activity (patchseries, patches, comments)</code> ====
==== <code style="color: firebrick ">Evolution Email Activity (patchseries, patches, comments)</code> ====


Shows the evolution of review related e-mail activity over time. Allows to create a time filter.
Shows the evolution of review related e-mail activity over time. Allows to create a time filter.


==== <code>Evolution Patch Series (no patches, no comments)</code> ====
==== <code style="color: firebrick ">Evolution Patch Series (no patches, no comments)</code> ====


Shows the evolution of patch series posted over time. Allows to create a time filter.
Shows the evolution of patch series posted over time. Allows to create a time filter.


==== <code>Patch Series</code> ====
==== <code style="color: firebrick ">Patch Series</code> ====


Lists the patch series in an exportable table that satisfy selected filters.
Lists the patch series in an exportable table that satisfy selected filters.


==== <code>Reviews (using Reviewed-by flag)</code> ====
==== <code style="color: firebrick ">Reviews (using Reviewed-by flag)</code> ====


Lists emails that set the <code>Reviewed-by</code> flag that satisfy selected filters.
Lists emails that set the <code style="color: firebrick ">Reviewed-by</code> flag that satisfy selected filters.


==== <code>Comments</code> ====
==== <code style="color: firebrick ">Comments</code> ====


Lists emails comments that satisfy selected filters.
Lists emails comments that satisfy selected filters.
Line 75: Line 201:
The data presented in this panel allows us investigate merge time, complexity of patches, number of review comments and other related metrics which indicate complexity and correlate the different properties.
The data presented in this panel allows us investigate merge time, complexity of patches, number of review comments and other related metrics which indicate complexity and correlate the different properties.


{{WarningLeft|'''<code>Important notes:</code>'''
'''<code>Important note:</code>''' this panel only shows patch series that were <code>merged</code>, as many of the metrics in this panel only apply to merged series.
* This panel only shows patch series that were <code>merged</code>, as many of the metrics in this panel only apply to merged series.
* This panel uses the only panel that uses the [[#Index:_xen-patchseries-timefocused|xen-patchseries-timefocused index]] which contains many fields the other indexes do not use. Also see [[#Working_across_indexes|working across indexes]].}}


Each section below, gives a brief overview of the widgets that are present in this panel.
Each section below, gives a brief overview of the widgets that are present in this panel.


[[File:Dashboard Performance.png|400px]]
==== <code>PatchSeries</code> ====

==== <code style="color: firebrick ">PatchSeries</code> ====


Counts the number of patch series
Counts the number of patch series


==== <code>PatchSeries per Year</code> ====
==== <code style="color: firebrick ">PatchSeries per Year</code> ====


The pie chart represents the total number of patch series that were merged per year. When clicking on some of the portions of the pie, this will create a time based filter for that specific year.
The pie chart represents the total number of patch series that were merged per year. When clicking on some of the portions of the pie, this will create a time based filter for that specific year.


==== <code>Evolution NumPatches per PatchSeries</code> ====
==== <code style="color: firebrick ">Evolution NumPatches per PatchSeries</code> ====


Total number of patches for selected patch series over time, arranged in percentiles. An indirect measure for complexity of patch series submitted over time.
Total number of patches for selected patch series over time, arranged in percentiles. An indirect measure for complexity of patch series submitted over time.

Several charts (including this one), show data which are divided into '''3 percentiles'''. The datasets are ordered by a specific metric, (in this case the total number of patches merged) and are grouped up to the 25%, the 50%, the 75% percentile and in some cases the 95% percentile.

This approach is easiest to explain by example: ''if your 3-month-old baby is in the 25th percentile for weight, that means 25 percent of 3-month-old babies weigh the same as or less than your baby, and 75 percent weigh more. The higher the percentile number, the bigger your baby is compared to other babies the same age.''


Ability to create a time based filter.
Ability to create a time based filter.


==== <code>Time to merge per number of patches per patch series</code> ====
==== <code style="color: firebrick ">Time to merge per number of patches per patch series</code> ====


A histogram that shows the time to merge on the y axis and the number of patches per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.
A histogram that shows the time to merge on the y axis and the number of patches per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.


Creates a filter for the <code>num_patches = &lt;selected column on y axis&gt;</code>
Creates a filter for the <code style="color: firebrick ">num_patches = &lt;selected column on y axis&gt;</code>


==== <code>Evolution NumVersions per PatchSeries</code> ====
==== <code style="color: firebrick ">Evolution NumVersions per PatchSeries</code> ====


Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and possible quality/complexity issues on the patch series submitted over time.
Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and possible quality/complexity issues on the patch series submitted over time.
Line 109: Line 235:
Ability to create a time based filter.
Ability to create a time based filter.


==== <code>Time to merge per versions of patches per patch series</code> ====
==== <code style="color: firebrick ">Time to merge per versions of patches per patch series</code> ====


A histogram that shows the time to merge on the y axis and the number of reposts per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.
A histogram that shows the time to merge on the y axis and the number of reposts per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.


Creates a filter for the <code>num_versions = &lt;selected column on y axis&gt;</code>
Creates a filter for the <code style="color: firebrick ">num_versions = &lt;selected column on y axis&gt;</code>


==== <code>Evolution NumVersions per PatchSeries</code> ====
==== <code style="color: firebrick ">Evolution NumVersions per PatchSeries</code> ====


Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and poss
Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and poss
Line 121: Line 247:
== Backlog Panel ==
== Backlog Panel ==


[[File:Dashboard Backlog.png|400px]]
==== <code>Evolution Merged(1) and Non Merged (0) PatchSeries</code> ====


==== <code style="color: firebrick ">Evolution Merged(1) and Non Merged (0) PatchSeries</code> ====
Shows the evolution over time of merged and un-merged patch series. Note that we '''cannot currently''' identify patch series to <code>other projects</code> (e.g. Linux, QEMU, …) that are cross-posted on <code>xen-devel@</code> as merged, even if they have in fact been merged.


Shows the evolution over time of merged and un-merged patch series. Note that we '''cannot currently''' identify patch series to <code style="color: firebrick ">other projects</code> (e.g. Linux, QEMU, …) that are cross-posted on <code style="color: firebrick ">xen-devel@</code> as merged, even if they have in fact been merged.
==== <code>Top People</code> and <code>Domains that got merged</code> ====

==== <code style="color: firebrick ">Top People</code> and <code style="color: firebrick ">Domains that got merged</code> ====


Lists the number of people and organisations that were merged.
Lists the number of people and organisations that were merged.


==== <code>Patch Series Merged</code> and <code>Not Merged (Backlog)</code> ====
==== <code style="color: firebrick ">Patch Series Merged</code> and <code style="color: firebrick ">Not Merged (Backlog)</code> ====


Lists the patch series that were merged and not merged
Lists the patch series that were merged and not merged
Line 143: Line 271:
Freezing = [5th month to 1 year}
Freezing = [5th month to 1 year}
Dead = [1 year to *} </pre>
Dead = [1 year to *} </pre>
Check the <code>Patch Not Merged (Backlog)</code> widget to identify series that were not merged.
Check the <code style="color: firebrick ">Patch Not Merged (Backlog)</code> widget to identify series that were not merged.


==== Use case: Identify abandoned patch series (those older than 1 year) ====
==== Use case: Identify abandoned patch series (those older than 1 year) ====


Use the <code>Dead</code> time filter and check the <code>Patch Not Merged (Backlog)</code> widget to identify series that were not merged.
Use the <code style="color: firebrick ">Dead</code> time filter and check the <code style="color: firebrick ">Patch Not Merged (Backlog)</code> widget to identify series that were not merged.


==== Use case: Identify patch series in progress ====
==== Use case: Identify patch series in progress ====


Check the <code>Patch Not Merged (Backlog)</code> widget or <code>merged:0</code> filter to identify series that were not merged.
Check the <code style="color: firebrick ">Patch Not Merged (Backlog)</code> widget or <code style="color: firebrick ">merged:0</code> filter to identify series that were not merged.


==== Use case: See whether the backlog is increasing ====
==== Use case: See whether the backlog is increasing ====


Use the <code>Evolution Merged(1) and Non Merged (0) PatchSeries</code> widget together with the <code>merged:0</code> and <code>merged:1</code> filter to identify trends
Use the <code style="color: firebrick ">Evolution Merged(1) and Non Merged (0) PatchSeries</code> widget together with the <code style="color: firebrick ">merged:0</code> and <code style="color: firebrick ">merged:1</code> filter to identify trends


==== Use case: Focus attention on nearly completed reviews ====
==== Use case: Focus attention on nearly completed reviews ====


Use the following filters to identify patches that are nearly complete. Note that these filters can also be used in the <code>Data-Explorer Panel</code>: * <code>patchserie_percentage_ackedpatches</code> (<code>number</code>): contains the % of acked patches in a specific patch series. Numbers may range from <code>0</code> to <code>100</code>. Use the <code>[90 TO 100}</code> notation for filters. * <code>patchserie_numackedpatches</code> (<code>number</code>): contains the number of acked patches for a particular patch series * <code>patchserie_numpatches</code> (<code>number</code>): contains the number of patches that make up a particular patch series
Use the following filters to identify patches that are nearly complete. Note that these filters can also be used in the <code style="color: firebrick ">Data-Explorer Panel</code>:
* <code style="color: firebrick ">patchserie_percentage_ackedpatches</code> (<code style="color: firebrick ">number</code>): contains the % of acked patches in a specific patch series. Numbers may range from <code style="color: firebrick ">0</code> to <code style="color: firebrick ">100</code>. Use the <code style="color: firebrick ">[90 TO 100}</code> notation for filters.
* <code style="color: firebrick ">patchserie_numackedpatches</code> (<code style="color: firebrick ">number</code>): contains the number of acked patches for a particular patch series
* <code style="color: firebrick ">patchserie_numpatches</code> (<code style="color: firebrick ">number</code>): contains the number of patches that make up a particular patch series


== Data-Explorer Panel ==
== Data-Explorer Panel ==


This view is tailored towards <code>code submitters</code>, <code>reviewers</code>, <code>maintainers</code>, <code>committers</code> and <code>release managers</code>. Documentation is available in the panel itself. It can also be used as a more detailed view into review related messages using the techniques outlined in the <code>Backlog panel</code>.
This view is intended to allow you to explore all components of a specific '''patch series'''. This view is tailored towards <code style="color: firebrick ">code submitters</code>, <code style="color: firebrick ">reviewers</code>, <code style="color: firebrick ">maintainers</code>, <code style="color: firebrick ">committers</code> and <code style="color: firebrick ">release managers</code>. Documentation is available in the panel itself. It can also be used as a more detailed view into review related messages using the techniques outlined in the <code style="color: firebrick ">Backlog panel</code>.


[[File:Dashboard Explorer.png|400px]]
== <code>Index-Review</code> and <code>Index-Time</code> Panel ==


=== Basic Use ===
This view provides raw access to the raw <code>xen-patchseries-reviewers</code> and <code>xen-patchseries-timefocused</code> indexes and can be used to explore the raw data behind other panels.
In it's basic use, it is intended to be filtered by
* <code style="color: firebrick ">patchserie_id: <target series></code>, which can be refined by
* <code style="color: firebrick ">patch_id: <target patch></code>. Note that when you select a <code style="color: firebrick ">patch_id</code>, no results will be showed for the series as patch series do not have a valid <code style="color: firebrick ">patch_id</code> field

You will then see all '''comments''', '''flags''' and other attributes that are applicable to the selected series or patch. An example which shows
* A sufficiently complex patch series, which shows how this panel works is <code style="color: firebrick ">patchserie_id: 8448</code>
* A simpler one is <code style="color: firebrick ">patchserie_id: 9549</code>

You will also be able to check the % of patches that are Acked in the '''Acked-by''' table and where the ACK's were awarded. You can go to the actual message by following the '''marc.info''' link.

Note that this table is big and will take some time to load. You may want to restrict the time-frame.

=== Getting a <code style="color: firebrick ">patchserie_id</code> and <code style="color: firebrick ">patch_id</code> ===
You may want to explore code reviews by any of the other attributes in the [[#Index:_xen-patchseries-reviewers|<code style="color: firebrick ">xen-patchseries-reviewers</code> index]]. In particular, the following fields are useful
* <code style="color: firebrick ">patchserie_percentage_ackedpatches</code>, if you are looking for nearly complete
* <code style="color: firebrick ">merged</code>, if you want to look for patches that have been merged or not merged
* <code style="color: firebrick ">sender</code>, if you are looking for a patch from a specific person
* <code style="color: firebrick ">subject</code>, if you are looking for a patch or series and you know the title or parts of it. It is particularly useful when used in combination with [http://lucene.apache.org/core/3_5_0/queryparsersyntax.html#Fuzzy%20Searches fuzzy search expressions].
* <code style="color: firebrick ">message_id</code>, if you are looking for a specific review and you know the message ID (e.g. because it is in your inbox)
For further fields see [[#Index:_xen-patchseries-reviewers|<code style="color: firebrick ">xen-patchseries-reviewers</code> index]] and [[#Filtering|filtering]].

== <code style="color: firebrick ">Index-Review</code> and <code style="color: firebrick ">Index-Time</code> Panel ==

This view provides raw access to the raw <code style="color: firebrick ">xen-patchseries-reviewers</code> and <code style="color: firebrick ">xen-patchseries-timefocused</code> indexes and can be used to explore the raw data behind other panels.


= Basic Operations =
= Basic Operations =


== Filtering ==
== Filtering ==

Data in each panel can be filtered in a number of different ways. The picture below shows the three different filters
* '''Time Filter''': Allows to select a time period
* '''Filters''': Allows to filter through data that is displayed in '''widgets'''. Typically you create simple filters (e.g. filter reviews submitted by an individual) by selecting an item in a widget.
* '''Advanced Filters''': Allows to create complex filters (requires knowledge

[[File:Dashboard_Filters.png|900px]]

=== Setting the Time Filter ===
=== Setting the Time Filter ===


The '''Time Filter''' restricts the search results and all widgets within a panel to a specific time period. By default the time filter is set to the last 5 years. You can use the '''Time Picker''' in the upper right corner of the menu bar to open the Time Picker. Click the caret at the bottom of the Time Picker to hide it.
The '''Time Filter''' restricts the search results and all widgets within a panel to a specific time period. By default the time filter is set to the last 5 years. You can use the '''Time Picker''' in the upper right corner of the menu bar to open the Time Picker. Click the caret at the bottom of the Time Picker to hide it.


'''Quick Filter:''' To set a ''quick filter'', simply click one of the shortcut links. The quick filter contains a number of pre-defined time periods. We added a number of Xen Project specific ''quick filters'': * <code>Years</code>, to make selection of activity in a specific year easier * A set of time periods (<code>Hot</code>, <code>Warm</code>, <code>Tepid</code>, <code>Cold</code>, <code>Freezing</code> and <code>Dead</code>) which are relevant to identify review activity in a certain time period (as defined below):
'''Quick Filter:''' To set a ''quick filter'', simply click one of the shortcut links. The quick filter contains a number of pre-defined time periods. We added a number of Xen Project specific ''quick filters'':
* <code style="color: firebrick ">Years</code>, to make selection of activity in a specific year easier
* A set of time periods (<code style="color: firebrick ">Hot</code>, <code style="color: firebrick ">Warm</code>, <code style="color: firebrick ">Tepid</code>, <code style="color: firebrick ">Cold</code>, <code style="color: firebrick ">Freezing</code> and <code style="color: firebrick ">Dead</code>) which are relevant to identify review activity in a certain time period (as defined below):


<pre>Hot = [now to 1st week}
<pre>Hot = [now to 1st week}
Line 184: Line 349:
Freezing = [5th month to 1 year}
Freezing = [5th month to 1 year}
Dead = [1 year to *} </pre>
Dead = [1 year to *} </pre>
* A set of time periods, which match Xen Project release cycles (<code>Important Note</code>: These Xen Project specific ''quick filters'' are not yet implemented).
* A set of time periods, which match Xen Project release cycles.
<pre>Xen 4.7 cycle = [timestamp of tag RELEASE-4.6.0 TO *] (we will need to change * in future and add new ones as new tags are created)
Xen 4.6 cycle = [timestamp of tag RELEASE-4.5.0 TO timestamp of tag RELEASE-4.6.0}
Xen 4.5 cycle = [timestamp of tag RELEASE-4.4.0 TO timestamp of tag RELEASE-4.5.0}
Xen 4.4 cycle = [timestamp of tag RELEASE-4.3.0 TO timestamp of tag RELEASE-4.4.0}
Xen 4.3 cycle = [timestamp of tag RELEASE-4.2.0 TO timestamp of tag RELEASE-4.3.0}
Xen 4.2 cycle = [timestamp of tag RELEASE-4.1.0 TO timestamp of tag RELEASE-4.2.0}</pre>



'''Relative Filter''': To specify a relative Time Filter, click Relative and enter the relative start time. You can specify the relative start time as any number of seconds, minutes, hours, days, months, or years ago.
'''Relative Filter''': To specify a relative Time Filter, click Relative and enter the relative start time. You can specify the relative start time as any number of seconds, minutes, hours, days, months, or years ago.
Line 196: Line 368:
==== Widgets ====
==== Widgets ====


Some widgets (check the widget descriptions in <code>Help: Panels</code>) allow you to create a filter. When you create a filter anywhere in Kibana, the filter is displayed in a green oval under the search text entry box. Hovering on the filter oval displays icons to enable, pin, toggle, remove and customise the filter. For more information see [https://www.elastic.co/guide/en/kibana/current/discover.html#discover-filters Discover Filters].
Some widgets (check the widget descriptions in [[#Panels|panels]]) allow you to create a filter. When you create a filter anywhere in Kibana, the filter is displayed in a green oval under the search text entry box. Hovering on the filter oval displays icons to enable, pin, toggle, remove and customise the filter. For more information see [https://www.elastic.co/guide/en/kibana/current/discover.html#discover-filters Discover Filters].


==== Search Widgets ====
==== Search Widgets ====


In search widgets (their name always starts with '''Search'''), you can use any field in any data record (also called document) to create a filter. For more information, see [https://www.elastic.co/guide/en/kibana/current/discover.html#field-filter Filtering by Field].
In search widgets (their name always starts with '''Search''' and they are only exposed in the '''Index-Review and Index-Time''' panels), you can use any field in any data record (also called document) to create a filter. For more information, see [https://www.elastic.co/guide/en/kibana/current/discover.html#field-filter Filtering by Field].

=== Advanced Filters ===
==== Search field and query syntax ====

The search field underneath the menu bar provides a way to query a specific subset of transactions from the selected time frame and set filters. The query syntax is based on the [http://lucene.apache.org/core/3_5_0/queryparsersyntax.html Lucene query syntax]. Also see [https://www.elastic.co/guide/en/beats/packetbeat/current/_kibana_queries_and_filters.html Kibana Queries and Filters] for additional background info.

'''Important notes:'''
* To reset a search, add <code style="color: firebrick ">*</code> into the search field.
* Sometimes, complex search queries fail, unless the search field has been reset
* The '''type of field''' (<code style="color: firebrick ">string</code>, <code style="color: firebrick ">analysed string</code>, <code style="color: firebrick ">number</code>, <code style="color: firebrick ">date</code>, etc.) has an impact on the query syntax
* Queries are '''case sensitive'''
* To construct sensible queries, please check the information [[#Indexes_and_their_Fields_.28used_in_Advanced_Filters.29|here]]. You can only create queries that use fields within the respective index that is used in a panel: if you use a field that does not exist, the search will return '''No results found'''.
* Fields that are not available in an index are defaulted to <code style="color: firebrick ">-1</code> for <code style="color: firebrick ">numbers</code> and <code style="color: firebrick ">na</code> for <code style="color: firebrick ">strings</code>
* Use '''time filters''' for time based searches as the [http://lucene.apache.org/core/3_5_0/queryparsersyntax.html Lucene query syntax] does not seem to be correct for time based fields
* Text wildcards searches do '''only''' work for the following fields (fields need to be of type <code style="color: firebrick ">analysed string</code> for wildcards to work): <code style="color: firebrick ">message_id</code> and <code style="color: firebrick ">subject</code>

== Advanced Filter Examples==

Below are a few examples of queries

<code style="color: firebrick ">subject: *x86*</code><br>patches with x86 in the subject line

<code style="color: firebrick ">patchserie_id: [6000 TO 6100]</code><br>lists patch series with IDs between 6000 and 6100

<code style="color: firebrick ">num_patches: 1</code><br>lists patch series that only have one patch in the <code style="color: firebrick ">xen-patchseries-timefocused</code> index (the corresponding field in the <code style="color: firebrick ">xen-patchseries-reviewers</code> index is <code style="color: firebrick ">patchserie_numpatches</code>)

<code style="color: firebrick ">subject: *x86* AND patchserie_numpatches: [10 TO *]</code><br>lists patch series with x86 in the title and contain more than 9 patches (index is <code style="color: firebrick ">xen-patchseries-reviewers</code>, which applies to the ''Backlog'', ''Community'' and ''Data-Explorer'' panels)

<code style="color: firebrick ">subject: *arm* AND patchserie_numpatches: [5 TO *] AND merged: 1</code><br>lists merged patch series with arm in the title and contain more than 5 patches

<code style="color: firebrick ">patchserie_id: [6000 TO 6100] AND num_patches: 1</code><br>lists patch series with IDs between 6000 and 6100 which consist of exactly 1 patch in the series

<code style="color: firebrick ">patchserie_id: [6000 TO 6100] AND num_patches: {2 TO *]</code><br>lists patch series with IDs between 6000 and 6100 which consist of more than 1 patch in the series

<code style="color: firebrick ">patchserie_percentage_ackedpatches: [50 TO 100]</code><br>lists patch series whose patches are between 50 and 100 % acked

<code style="color: firebrick ">patchserie_numackedpatches: {1 TO *] AND patchserie_numpatches: [3 TO *]</code><br>lists patch series with more than 1 acked patch which consist of 3 or more patches

<code style="color: firebrick ">patchserie_numackedpatches: [7 TO *] AND patchserie_numpatches: [10 TO *]</code><br>lists patch series with more than 6 acked patch which consist of 10 or more patches

<code style="color: firebrick ">patchserie_numackedpatches: [7 TO *] AND patchserie_numpatches: [10 TO *]</code><br>lists patch series with more than 6 acked patch which consist of 10 or more patches

<code style="color: firebrick ">sender:"andrew.cooper3@citrix.com" AND merged: 0</code><br>lists patch posted by andrew.cooper3@citrix.com which were not merged. Note that text wildcards do only work on the <code style="color: firebrick ">subject</code> and <code style="color: firebrick ">message_id</code> fields

<code style="color: firebrick ">time2commit: [100 TO *]</code><br>lists patch series that took more than 100 days to merge (only works in <code style="color: firebrick ">xen-patchseries-timefocused</code> index and Performance view)

=== Working across indexes ===
Note that some fields are only available in the <code style="color: firebrick ">xen-patchseries-timefocused</code> index and thus the Performance panel. However, the <code style="color: firebrick ">patchserie_id</code> field is in both indexes. This means you can use
* <code style="color: firebrick ">time2commit: [100 TO *]</code> to for example identify an interesting series that took 100 days or more to merge
* Write down the <code style="color: firebrick ">patchserie_id</code> (e.g. 3170 which describes a series called '''Xenstore stub domain''')
* Use <code style="color: firebrick ">patchserie_id: 3170</code> for example in the Data Explorer dashboard to drill into this series

= Indexes and their Fields (used in Advanced Filters) =
== Indexes used for each panel ==

There are two indexes, whose fields can be used in advanced filter queries. The indexes are
* <code style="color: firebrick ">xen-patchseries-timefocused</code>: The ''Performance'' panel is based on this index. The ''Index-Time'' panel exposes the raw data behind this index.
* <code style="color: firebrick ">xen-patchseries-reviewers</code>: The ''Backlog'', ''Community'' and ''Data-Explorer'' panels are based on this index. The ''Index-Review'' panel exposes the raw data behind this index.

== Index: <code style="color: firebrick ">xen-patchseries-timefocused</code> ==

The basic piece of information in this index is the patch series. Each row or entry represents an unique patch series that is defined by the <code style="color: firebrick ">patchserie_id</code> field. Each of the columns (or fields) provide extra insights about that specific patch series. For example, it provides the number of patches, number of comments or the time when that patch series as a whole was committed.

This index consists of the following fields:

* <code style="color: firebrick ">message_id</code> (<code style="color: firebrick ">analysed string</code>): message id as this is retrieved from the mbox
* <code style="color: firebrick ">num_comments</code> (<code style="color: firebrick ">number</code>): total number of comments for that patch series. A comment is defined as an email replying a patch in a patch series thread.
* <code style="color: firebrick ">num_patches</code> (<code style="color: firebrick ">number</code>): total number of patches for that patch series.
* <code style="color: firebrick ">num_versions</code> (<code style="color: firebrick ">number</code>): total number of versions for that patch series.
* <code style="color: firebrick ">sender</code> (<code style="color: firebrick ">string</code>): email of the developer that send the patch series
* <code style="color: firebrick ">subject</code> (<code style="color: firebrick ">analysed string</code>): original subject of the patch series. The <code style="color: firebrick ">[Patch]</code> tag has been removed. If <code style="color: firebrick ">num_patches &gt; 1</code>, then the subject line of the cover letter <code style="color: firebrick ">[Patch 0/x]</code> is used.
* <code style="color: firebrick ">time2commit</code> (<code style="color: firebrick ">number</code>): total time measured in days since the last comment on a patch serie took place till this is merged into the base code.
* <code style="color: firebrick ">time2merge</code> (<code style="color: firebrick ">number</code>): total time measured in days since a patch serie is sent till this is ‘acked-by’ a developer.
* <code style="color: firebrick ">committime</code> (<code style="color: firebrick ">date</code>): date when the patch serie was committed in the Git repository.
* <code style="color: firebrick ">lastcommentdate</code> (<code style="color: firebrick ">date</code>): last date when a patch serie receives a comment
* <code style="color: firebrick ">mergetime</code> (<code style="color: firebrick ">date</code>): date when the patch series is merged (<code style="color: firebrick ">acked-by</code>)
* <code style="color: firebrick ">num_commenters</code>: total number of different people replying to a patch series
* <code style="color: firebrick ">patchserie_id</code> (<code style="color: firebrick ">string</code>): an unique id (integer) is provided to each of the patch series
* <code style="color: firebrick ">sender_domain</code> (<code style="color: firebrick ">string</code>): domain of the developer sending the patch series to the mailing list
* <code style="color: firebrick ">sent_date_x</code> (<code style="color: firebrick ">date</code>): date when the patch series was originally sent

== Index: <code style="color: firebrick ">xen-patchseries-reviewers</code> ==

This index contains more detailed information about the code review process: in addition to patch series, this provides information about patches, comments, self comments, flags and other events that take place during the code review process.

The following columns make up this index: the <code style="color: firebrick ">emailtype</code> column determines, which further columns are valid.

* <code style="color: firebrick ">emailtype</code> (<code style="color: firebrick ">string</code>): depending on the type of email, this field has one of the following values. There are 5 of them:
* <code style="color: firebrick ">flag</code> that identifies when a developer uses any of the special tags that help to understand the code review process such as <code style="color: firebrick ">Cc</code>, <code style="color: firebrick ">Reviewed-by</code>, or <code style="color: firebrick ">Acked-by</code> among others.
* <code style="color: firebrick ">comment</code> identifies comments made by anyone who didn’t post the patch.
* <code style="color: firebrick ">self-comment</code> identifies comments made by the person who did also post the patch.
* <code style="color: firebrick ">patch</code> is the basic part of a patch serie. This is an email that contains a piece of source code to be reviewed by others.
* <code style="color: firebrick ">patchserie</code> is the identifier used when referring to the aggregation of all of the patches. There are patch series of one or more patches.

The following columns are common to the entire table, regardless of the value of <code style="color: firebrick ">emailtype</code>.

* <code style="color: firebrick ">sender</code> (<code style="color: firebrick ">string</code>): developer that sent the <code style="color: firebrick ">patchserie</code>, <code style="color: firebrick ">patch</code>, <code style="color: firebrick ">comment</code> or <code style="color: firebrick ">self-comment</code>. In the case of being a ‘flag’, then this is the value in that flag (and not the developer sending the email as an email may have several flags such as ‘signed-off’ or ‘cc’.
* <code style="color: firebrick ">sender_domain</code> (<code style="color: firebrick ">string</code>): domain of the sender of that email. In the case of a ‘flag’, this is the domain of the developer specified in the flag.
* <code style="color: firebrick ">sent_date</code> (<code style="color: firebrick ">date</code>): this is the date when an event was sent.
* <code style="color: firebrick ">subject</code> (<code style="color: firebrick ">analysed string</code>): original subject of the comment, flag, patch or patch series. If a patch series the <code style="color: firebrick ">[Patch]</code> tag is removed: if <code style="color: firebrick ">num_patches &gt; 1</code>, then the subject line of the cover letter <code style="color: firebrick ">[Patch 0/x]</code> is used.
* <code style="color: firebrick ">patchserie_id</code> (<code style="color: firebrick ">number</code>): unique ID that is set for all flags, comments and patches that relate to a specific patch series.
* <code style="color: firebrick ">patch_id</code> (<code style="color: firebrick ">number</code>): unique ID that is set for all flags, comments and patches that relate to a specific patch. Set to <code style="color: firebrick ">-1</code> for a patch series.
* <code style="color: firebrick ">message_id</code> (<code style="color: firebrick ">analysed string</code>): message id as retrieved from the mbox

And then each of the values of ‘emailtype’ has specific related columns:

=== Applicable to <code style="color: firebrick ">emailtype = patchserie</code> ===

* <code style="color: firebrick ">patchserie_numackedpatches</code> (<code style="color: firebrick ">number</code>): contains the number of acked patches for a particular patch series
* <code style="color: firebrick ">patchserie_numpatches</code> (<code style="color: firebrick ">number</code>): contains the number of patches that make up a particular patch series
* <code style="color: firebrick ">patchserie_percentage_ackedpatches</code> (<code style="color: firebrick ">number</code>): contains the % of acked patches in a specific patch series. Numbers may range from <code style="color: firebrick ">0</code> to <code style="color: firebrick ">100</code>.
* <code style="color: firebrick ">merged</code> (<code style="color: firebrick ">number</code>): <code style="color: firebrick ">1</code> if this was detected as merged into the git repository. <code style="color: firebrick ">0</code> if this is not detected as being merged into Git.

=== Applicable to <code style="color: firebrick ">emailtype = patch</code> ===

* <code style="color: firebrick ">patch_id</code> (<code style="color: firebrick ">string</code>): unique identifier of the patch. It is equivalent to the <code style="color: firebrick ">message_id</code>that is retrieved from the mbox.
* <code style="color: firebrick ">merged</code> (<code style="color: firebrick ">number</code>): this contains a <code style="color: firebrick ">1</code> if the patch was merged. <code style="color: firebrick ">0</code> if the patch is not merged.
* <code style="color: firebrick ">is_acked</code> (<code style="color: firebrick ">number</code>): this value contains a <code style="color: firebrick ">1</code> if this patch was <code style="color: firebrick ">acked</code> by any developer. In other cases this value is <code style="color: firebrick ">0</code>.

The following fields are not really useful for searching: <code style="color: firebrick ">num_patch</code> and <code style="color: firebrick ">number</code>

=== Applicable to <code style="color: firebrick ">emailtype = flag</code> ===

* <code style="color: firebrick ">num_flag_review</code> (<code style="color: firebrick ">number</code>): this value is <code style="color: firebrick ">1</code> if the flag used is <code style="color: firebrick ">Reviewed-by</code>. <code style="color: firebrick ">0</code> in other cases.
* <code style="color: firebrick ">num_flag_ack</code> (<code style="color: firebrick ">number</code>): this value is <code style="color: firebrick ">1</code> if the flag used is <code style="color: firebrick ">Acked-by</code>. <code style="color: firebrick ">0</code> in other cases.

The following fields are not really useful for searching: <code style="color: firebrick ">balance</code> and <code style="color: firebrick ">number</code>

=== Applicable to <code style="color: firebrick ">emailtype = comment</code> and <code style="color: firebrick ">emailtype = self-comment</code> ===


* <code style="color: firebrick ">comment_id</code> (<code style="color: firebrick ">string</code>): this provides an unique identifier for each of the comments. These are the emails replying to a patch.
== Advanced Filter Examples==
* <code style="color: firebrick ">post_ack_comment</code> (<code style="color: firebrick ">number</code>): <code style="color: firebrick ">1</code> identifies any comment that occurs place after an <code style="color: firebrick ">Acked-by</code> flag is found in a review. <code style="color: firebrick ">0</code> in other cases.


The following fields are not really useful for searching: <code style="color: firebrick ">balance</code> and <code style="color: firebrick ">number</code>
== Indexes and their Fields (used in Advanced Filters) ==


= Additional Resources =
= Additional Resources =


The following articles provide useful background reading on using Kibana based panels:
= Glossary =
* [https://www.elastic.co/guide/en/kibana/current/dashboard.html Dashboard] describes all functionality that is available in Dashboards or '''Panels'''. Note that any functionality that allows changing and saving dashboards is disabled in [https://xen.biterg.io xen.biterg.io]. If you want specific customisations, please contact <code style="color: firebrick ">community.manager@xenproject.org</code>.

Latest revision as of 14:27, 24 August 2017

The Xen project has developed a Code Review Dashboard in collaboration with Bitergia. There are two variants of this dashboard

  • xen.biterg.io: User version
  • Edit Dashboard and Elastic Search Data: Administrator versions (allows to create extra customizations). If you want specific customisations or access to this panel, please contact community.manager@xenproject.org.

This document provides a version of the documentation for the user version of the dashboard, that is editable and easily consumable

Dashboard Issues: Getting Help

If you discover a dashboard issue, please contact commuty.manager@xenproject.org

Basic Concepts

Where does the data in the dashboard come from

The following diagram shows how we process the data which serves as basis for the code review dashboard

Data Processing Flow.png

There are two indexes, whose fields are used in panels, widgets and for searches. The indexes are

  • xen-patchseries-timefocused: The Performance panel is based on this index. The Index-Time panel exposes the raw data behind this index.
  • xen-patchseries-reviewers: The Backlog, Community and Data-Explorer panels are based on this index. The Index-Review panel exposes the raw data behind this index.

To formulate advanced search queries, refer to the Index Definitions.

Restrictions

Icon Ambox.png Currently we are only able to map code reviews that are posted on xen-devel@ to the following git repos: xen.git, osstest.git, minios-git and raisin.git. We cannot map Linux, QEMU, FreeBSD, NetBSD, and other code reviews that are cross posted on xen-devel@ to a git repository. Such code reviews will show up in the dashboard: however we are not yet able to determine whether these have completed. In other words, such code reviews will show up us un-merged in the dashboard.


Predefined Panels

We have pre-defined a number of panels (also called dashboards). These are accessible from the menu bar (see picture below)

Dashboard Menus.png

You can find a detailed description of individual panels here.

Widgets

Widgets show the basic unit of visualising data in dashboards. The picture below shows two example widgets (a time based diagram and a table). Dashboard Widget.png Notes:

  • Double clicking on elements in widgets can be used to create a simple filter
  • A select operation can be used in time based diagrams to select an absolute time filter
  • Note that you can resize and re-arrange widgets, should you wish to

Mapping reviews to e-mails

Both indexes and thus many widgets contain a message_id fields, which

  • can be used to retrieve the message in an index in your inbox (please refer to your mail client’s documentation)
  • can be used to find a message via marc.info. Note that in most series, patch, comment, etc. related tables, there are direct clickable links to marc.info e-mails

Dashboard Message.png

Following the marc.info link will get you to the respective patch series, patch, comment, etc.

We use the following syntax is to map the message_id field to e-mails:

http://marc.info/?i=<message_id>

If the message_id=<1455681279-28451-1-git-send-email-jfehlig@suse.com>, then the relevant search query is

http://marc.info/?i=<1455681279-28451-1-git-send-email-jfehlig@suse.com>

Tables

Data in tables can be exported as a comma-separated-values (CSV) file. To do this, click on either the Raw or Formatted links at the bottom of any of the detailed information tabs. A raw export contains the data as it is stored in Elasticsearch which is used to store the two data indexes on which all visualisations are based. A formatted export contains the results of any applicable Kibana field formatters: for example a formatted export, will save message_id fields as URLs rather than the actual IDs, dates as timestamps, etc.

Percentiles

Several charts (like the one in the screenshot below), show data which are divided into 3 percentiles. The datasets are ordered by a specific metric, and are grouped up to the 25%, the 50%, the 75% percentile and in some cases the 95% percentile.

Dashboard Percentile.png

This approach is easiest to explain by example: In this case, we are measuring time2merge (= the time it takes to merge a patch). The data is arranged n a sorted histogram, with the number of patches in a series (aka NumPatches) arranged in buckets of decreasing population on the x axis. In this example, looking at the x-asis entries of NumPatches=5, the

  • 25th percentile means that 25% of all series which consist of 5 patches are merged in 0.753 days
  • 50th percentile means that another 25% (from 25th to 50th) of all series which consist of 5 patches are merged in 3.479 days
  • 75th percentile means that another 25% (from 50th to 75th) of all series which consist of 5 patches are merged in 15.829 days

Note that in the image above for NumPatches=22, 24 and 27 the there is only 1 patch and thus the 3 percentiles are the same.

The exact data can be obtained by hovering over elements in this widget.

Filters

Data in each panel can be filtered in a number of different ways. The picture below shows the three different filters

Dashboard Filters.png

  • Time Filter: Allows to select a time period
  • Advanced Filters: Allows to create complex filters (requires knowledge
  • Filters: Allows to filter through data that is displayed in widgets. Typically you create simple filters (e.g. filter reviews submitted by an individual) by selecting an item in a widget.

For more information on filtering see Filtering.

Sharing views with Filters

You can share dashboards with filters by selecting the Share Icon, which is marked on the right in blue in the screenshot below. Dashboard Share.png


Git, Overview, Demographics and Data Status Panels

Git, Overview, Demographics

The following panels show various aspects of git commits per sub-project. These are fairly self explanatory, although I will add some more information on how to use Demographics later.

You may want to read Basic Operations for filtering by time and specific sets of data. There are also a number of Advanced Filters which are useful for these panels:

Below are a few useful example queries

project: "Xen Hypervisor" OR "Windows PV Drivers"
lists commits from these two projects

repo_name: "git://xenbits.xen.org/xen.git" OR "git://xenbits.xen.org/osstest.git"
lists commits from these repositories (note: check the correct repository names in the Repositories widget in the Git panel

Data Status

This panel shows the last time git repositories were processed

Code Review Panels

The Xen Project Code Review dashboard has 4 panels: One for documentation, a Community Panel, a Performance Panel and a Backlog Panel.

Community Panel

In this panel, several widgets are grouped by use-case.

Use case: Identify top reviewers (for both individuals and companies)

Evolution 'Reviewed-by' flag (no patchseries, no patches)

Shows the evolution of the Reviewed-by flag over time. Allows to create a time filter.

Top People and Domain Reviewing Patches

Counts the number of people and organisations who commented on other people’s patches (by counting the Reviewed-by attributes) in the selected time period. Allows to filter by developer (e-mail address and e-mail domain).

Use case: Identify Imbalances between reviewers and contributors

Evolution Patches (no patchseries, no comments)

Shows the evolution of the patches posted over time. Allows to create a time filter.

Top People and Domain Imbalance Analysis

Over the selected time period, the following fields are aggregated per person or domain

  • Balance: Difference between patches posted and and comment activity. A positive number implies that the person or organisation comments more than she posts patches.
  • Patches: Number of patches posted
  • Reviews: Number of Reviewed By flags

Use case: Identify post-ack comments on patches

Evolution Comments Activity (no patchseries, no patches)

Shows the evolution of comments made on patches (both real and self-comments) over time. Allows to create a time filter.

Top People and Domain Commenting on Patches

Over the selected time period, the following fields are aggregated per person or domain

  • Comments: The number of review comments on other people’s patches.
  • Post ACK comments: The number of comments made after a patch has been ACK’ed

Use case: Flag analysis

Evolution Flags (no patchseries, no comments, no patches)

Shows the evolution of flags made on a patch series. Allows to create a time filter.

Top People and Domain Ack Analysis

Over the selected time period, ACKs are aggregated per person or domain.

Top Flags Analysis

Over the selected time period, git tags (a good definition of their use can be found here are aggregated.

Use case: Drill into Review activity information

The following widgets are of particular interest to code submitters, reviewers and maintainers. A similar view, which is optimised to identifying which code reviews are almost complete are visible in the Backlog and Data-Explorer panels.

Evolution Email Activity (patchseries, patches, comments)

Shows the evolution of review related e-mail activity over time. Allows to create a time filter.

Evolution Patch Series (no patches, no comments)

Shows the evolution of patch series posted over time. Allows to create a time filter.

Patch Series

Lists the patch series in an exportable table that satisfy selected filters.

Reviews (using Reviewed-by flag)

Lists emails that set the Reviewed-by flag that satisfy selected filters.

Comments

Lists emails comments that satisfy selected filters.

Performance Panel

The data presented in this panel allows us investigate merge time, complexity of patches, number of review comments and other related metrics which indicate complexity and correlate the different properties.

Icon Ambox.png Important notes:
  • This panel only shows patch series that were merged, as many of the metrics in this panel only apply to merged series.
  • This panel uses the only panel that uses the xen-patchseries-timefocused index which contains many fields the other indexes do not use. Also see working across indexes.


Each section below, gives a brief overview of the widgets that are present in this panel.

Dashboard Performance.png

PatchSeries

Counts the number of patch series

PatchSeries per Year

The pie chart represents the total number of patch series that were merged per year. When clicking on some of the portions of the pie, this will create a time based filter for that specific year.

Evolution NumPatches per PatchSeries

Total number of patches for selected patch series over time, arranged in percentiles. An indirect measure for complexity of patch series submitted over time.

Ability to create a time based filter.

Time to merge per number of patches per patch series

A histogram that shows the time to merge on the y axis and the number of patches per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.

Creates a filter for the num_patches = <selected column on y axis>

Evolution NumVersions per PatchSeries

Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and possible quality/complexity issues on the patch series submitted over time.

Ability to create a time based filter.

Time to merge per versions of patches per patch series

A histogram that shows the time to merge on the y axis and the number of reposts per series on the x-axis. The histogram is sorted in order of descending population (like a Pareto chart), with values that occur most often on the left and values that occur least often on the right.

Creates a filter for the num_versions = <selected column on y axis>

Evolution NumVersions per PatchSeries

Total number of re-posted versions for selected patch series over time, arranged in percentiles. An indirect measure for the degree of actionable feedback and poss

Backlog Panel

Dashboard Backlog.png

Evolution Merged(1) and Non Merged (0) PatchSeries

Shows the evolution over time of merged and un-merged patch series. Note that we cannot currently identify patch series to other projects (e.g. Linux, QEMU, …) that are cross-posted on xen-devel@ as merged, even if they have in fact been merged.

Top People and Domains that got merged

Lists the number of people and organisations that were merged.

Patch Series Merged and Not Merged (Backlog)

Lists the patch series that were merged and not merged

Use case: Identify recently active patch series

Use one of the following pre-defined time filters to identify review activity in a certain time period (as defined below):

Hot      = [now to 1st week}
Warm     = [1st week to 1st month}
Tepid    = [1st month to 2nd month}
Cold     = [2nd month to 5th month} 
Freezing = [5th month to 1 year}
Dead     = [1 year to *} 

Check the Patch Not Merged (Backlog) widget to identify series that were not merged.

Use case: Identify abandoned patch series (those older than 1 year)

Use the Dead time filter and check the Patch Not Merged (Backlog) widget to identify series that were not merged.

Use case: Identify patch series in progress

Check the Patch Not Merged (Backlog) widget or merged:0 filter to identify series that were not merged.

Use case: See whether the backlog is increasing

Use the Evolution Merged(1) and Non Merged (0) PatchSeries widget together with the merged:0 and merged:1 filter to identify trends

Use case: Focus attention on nearly completed reviews

Use the following filters to identify patches that are nearly complete. Note that these filters can also be used in the Data-Explorer Panel:

  • patchserie_percentage_ackedpatches (number): contains the % of acked patches in a specific patch series. Numbers may range from 0 to 100. Use the [90 TO 100} notation for filters.
  • patchserie_numackedpatches (number): contains the number of acked patches for a particular patch series
  • patchserie_numpatches (number): contains the number of patches that make up a particular patch series

Data-Explorer Panel

This view is intended to allow you to explore all components of a specific patch series. This view is tailored towards code submitters, reviewers, maintainers, committers and release managers. Documentation is available in the panel itself. It can also be used as a more detailed view into review related messages using the techniques outlined in the Backlog panel.

Dashboard Explorer.png

Basic Use

In it's basic use, it is intended to be filtered by

  • patchserie_id: <target series>, which can be refined by
  • patch_id: <target patch>. Note that when you select a patch_id, no results will be showed for the series as patch series do not have a valid patch_id field

You will then see all comments, flags and other attributes that are applicable to the selected series or patch. An example which shows

  • A sufficiently complex patch series, which shows how this panel works is patchserie_id: 8448
  • A simpler one is patchserie_id: 9549

You will also be able to check the % of patches that are Acked in the Acked-by table and where the ACK's were awarded. You can go to the actual message by following the marc.info link.

Note that this table is big and will take some time to load. You may want to restrict the time-frame.

Getting a patchserie_id and patch_id

You may want to explore code reviews by any of the other attributes in the xen-patchseries-reviewers index. In particular, the following fields are useful

  • patchserie_percentage_ackedpatches, if you are looking for nearly complete
  • merged, if you want to look for patches that have been merged or not merged
  • sender, if you are looking for a patch from a specific person
  • subject, if you are looking for a patch or series and you know the title or parts of it. It is particularly useful when used in combination with fuzzy search expressions.
  • message_id, if you are looking for a specific review and you know the message ID (e.g. because it is in your inbox)

For further fields see xen-patchseries-reviewers index and filtering.

Index-Review and Index-Time Panel

This view provides raw access to the raw xen-patchseries-reviewers and xen-patchseries-timefocused indexes and can be used to explore the raw data behind other panels.

Basic Operations

Filtering

Data in each panel can be filtered in a number of different ways. The picture below shows the three different filters

  • Time Filter: Allows to select a time period
  • Filters: Allows to filter through data that is displayed in widgets. Typically you create simple filters (e.g. filter reviews submitted by an individual) by selecting an item in a widget.
  • Advanced Filters: Allows to create complex filters (requires knowledge

Dashboard Filters.png

Setting the Time Filter

The Time Filter restricts the search results and all widgets within a panel to a specific time period. By default the time filter is set to the last 5 years. You can use the Time Picker in the upper right corner of the menu bar to open the Time Picker. Click the caret at the bottom of the Time Picker to hide it.

Quick Filter: To set a quick filter, simply click one of the shortcut links. The quick filter contains a number of pre-defined time periods. We added a number of Xen Project specific quick filters:

  • Years, to make selection of activity in a specific year easier
  • A set of time periods (Hot, Warm, Tepid, Cold, Freezing and Dead) which are relevant to identify review activity in a certain time period (as defined below):
Hot      = [now to 1st week}
Warm     = [1st week to 1st month}
Tepid    = [1st month to 2nd month}
Cold     = [2nd month to 5th month} 
Freezing = [5th month to 1 year}
Dead     = [1 year to *} 
  • A set of time periods, which match Xen Project release cycles.
Xen 4.7 cycle = [timestamp of tag RELEASE-4.6.0 TO *] (we will need to change * in future and add new ones as new tags are created)
Xen 4.6 cycle = [timestamp of tag RELEASE-4.5.0 TO timestamp of tag RELEASE-4.6.0}
Xen 4.5 cycle = [timestamp of tag RELEASE-4.4.0 TO timestamp of tag RELEASE-4.5.0}
Xen 4.4 cycle = [timestamp of tag RELEASE-4.3.0 TO timestamp of tag RELEASE-4.4.0}
Xen 4.3 cycle = [timestamp of tag RELEASE-4.2.0 TO timestamp of tag RELEASE-4.3.0}
Xen 4.2 cycle = [timestamp of tag RELEASE-4.1.0 TO timestamp of tag RELEASE-4.2.0}


Relative Filter: To specify a relative Time Filter, click Relative and enter the relative start time. You can specify the relative start time as any number of seconds, minutes, hours, days, months, or years ago.

Absolute Filter: To specify an absolute Time Filter, click Absolute and enter the start date in the From field and the end date in the To field.

You can also set an absolute time filter by selecting a time interval in any widget that has time in the x axis (they typically are named Evolution of XYZ) . Click and drag to select a specific timespan. You must start the selection with the cursor over the background of the chart: the cursor changes to a plus sign when you hover over a valid start point. You can use the browser Back button to undo your changes.

Working with Filters

Widgets

Some widgets (check the widget descriptions in panels) allow you to create a filter. When you create a filter anywhere in Kibana, the filter is displayed in a green oval under the search text entry box. Hovering on the filter oval displays icons to enable, pin, toggle, remove and customise the filter. For more information see Discover Filters.

Search Widgets

In search widgets (their name always starts with Search and they are only exposed in the Index-Review and Index-Time panels), you can use any field in any data record (also called document) to create a filter. For more information, see Filtering by Field.

Advanced Filters

Search field and query syntax

The search field underneath the menu bar provides a way to query a specific subset of transactions from the selected time frame and set filters. The query syntax is based on the Lucene query syntax. Also see Kibana Queries and Filters for additional background info.

Important notes:

  • To reset a search, add * into the search field.
  • Sometimes, complex search queries fail, unless the search field has been reset
  • The type of field (string, analysed string, number, date, etc.) has an impact on the query syntax
  • Queries are case sensitive
  • To construct sensible queries, please check the information here. You can only create queries that use fields within the respective index that is used in a panel: if you use a field that does not exist, the search will return No results found.
  • Fields that are not available in an index are defaulted to -1 for numbers and na for strings
  • Use time filters for time based searches as the Lucene query syntax does not seem to be correct for time based fields
  • Text wildcards searches do only work for the following fields (fields need to be of type analysed string for wildcards to work): message_id and subject

Advanced Filter Examples

Below are a few examples of queries

subject: *x86*
patches with x86 in the subject line

patchserie_id: [6000 TO 6100]
lists patch series with IDs between 6000 and 6100

num_patches: 1
lists patch series that only have one patch in the xen-patchseries-timefocused index (the corresponding field in the xen-patchseries-reviewers index is patchserie_numpatches)

subject: *x86* AND patchserie_numpatches: [10 TO *]
lists patch series with x86 in the title and contain more than 9 patches (index is xen-patchseries-reviewers, which applies to the Backlog, Community and Data-Explorer panels)

subject: *arm* AND patchserie_numpatches: [5 TO *] AND merged: 1
lists merged patch series with arm in the title and contain more than 5 patches

patchserie_id: [6000 TO 6100] AND num_patches: 1
lists patch series with IDs between 6000 and 6100 which consist of exactly 1 patch in the series

patchserie_id: [6000 TO 6100] AND num_patches: {2 TO *]
lists patch series with IDs between 6000 and 6100 which consist of more than 1 patch in the series

patchserie_percentage_ackedpatches: [50 TO 100]
lists patch series whose patches are between 50 and 100 % acked

patchserie_numackedpatches: {1 TO *] AND patchserie_numpatches: [3 TO *]
lists patch series with more than 1 acked patch which consist of 3 or more patches

patchserie_numackedpatches: [7 TO *] AND patchserie_numpatches: [10 TO *]
lists patch series with more than 6 acked patch which consist of 10 or more patches

patchserie_numackedpatches: [7 TO *] AND patchserie_numpatches: [10 TO *]
lists patch series with more than 6 acked patch which consist of 10 or more patches

sender:"andrew.cooper3@citrix.com" AND merged: 0
lists patch posted by andrew.cooper3@citrix.com which were not merged. Note that text wildcards do only work on the subject and message_id fields

time2commit: [100 TO *]
lists patch series that took more than 100 days to merge (only works in xen-patchseries-timefocused index and Performance view)

Working across indexes

Note that some fields are only available in the xen-patchseries-timefocused index and thus the Performance panel. However, the patchserie_id field is in both indexes. This means you can use

  • time2commit: [100 TO *] to for example identify an interesting series that took 100 days or more to merge
  • Write down the patchserie_id (e.g. 3170 which describes a series called Xenstore stub domain)
  • Use patchserie_id: 3170 for example in the Data Explorer dashboard to drill into this series

Indexes and their Fields (used in Advanced Filters)

Indexes used for each panel

There are two indexes, whose fields can be used in advanced filter queries. The indexes are

  • xen-patchseries-timefocused: The Performance panel is based on this index. The Index-Time panel exposes the raw data behind this index.
  • xen-patchseries-reviewers: The Backlog, Community and Data-Explorer panels are based on this index. The Index-Review panel exposes the raw data behind this index.

Index: xen-patchseries-timefocused

The basic piece of information in this index is the patch series. Each row or entry represents an unique patch series that is defined by the patchserie_id field. Each of the columns (or fields) provide extra insights about that specific patch series. For example, it provides the number of patches, number of comments or the time when that patch series as a whole was committed.

This index consists of the following fields:

  • message_id (analysed string): message id as this is retrieved from the mbox
  • num_comments (number): total number of comments for that patch series. A comment is defined as an email replying a patch in a patch series thread.
  • num_patches (number): total number of patches for that patch series.
  • num_versions (number): total number of versions for that patch series.
  • sender (string): email of the developer that send the patch series
  • subject (analysed string): original subject of the patch series. The [Patch] tag has been removed. If num_patches > 1, then the subject line of the cover letter [Patch 0/x] is used.
  • time2commit (number): total time measured in days since the last comment on a patch serie took place till this is merged into the base code.
  • time2merge (number): total time measured in days since a patch serie is sent till this is ‘acked-by’ a developer.
  • committime (date): date when the patch serie was committed in the Git repository.
  • lastcommentdate (date): last date when a patch serie receives a comment
  • mergetime (date): date when the patch series is merged (acked-by)
  • num_commenters: total number of different people replying to a patch series
  • patchserie_id (string): an unique id (integer) is provided to each of the patch series
  • sender_domain (string): domain of the developer sending the patch series to the mailing list
  • sent_date_x (date): date when the patch series was originally sent

Index: xen-patchseries-reviewers

This index contains more detailed information about the code review process: in addition to patch series, this provides information about patches, comments, self comments, flags and other events that take place during the code review process.

The following columns make up this index: the emailtype column determines, which further columns are valid.

  • emailtype (string): depending on the type of email, this field has one of the following values. There are 5 of them:
  • flag that identifies when a developer uses any of the special tags that help to understand the code review process such as Cc, Reviewed-by, or Acked-by among others.
  • comment identifies comments made by anyone who didn’t post the patch.
  • self-comment identifies comments made by the person who did also post the patch.
  • patch is the basic part of a patch serie. This is an email that contains a piece of source code to be reviewed by others.
  • patchserie is the identifier used when referring to the aggregation of all of the patches. There are patch series of one or more patches.

The following columns are common to the entire table, regardless of the value of emailtype.

  • sender (string): developer that sent the patchserie, patch, comment or self-comment. In the case of being a ‘flag’, then this is the value in that flag (and not the developer sending the email as an email may have several flags such as ‘signed-off’ or ‘cc’.
  • sender_domain (string): domain of the sender of that email. In the case of a ‘flag’, this is the domain of the developer specified in the flag.
  • sent_date (date): this is the date when an event was sent.
  • subject (analysed string): original subject of the comment, flag, patch or patch series. If a patch series the [Patch] tag is removed: if num_patches > 1, then the subject line of the cover letter [Patch 0/x] is used.
  • patchserie_id (number): unique ID that is set for all flags, comments and patches that relate to a specific patch series.
  • patch_id (number): unique ID that is set for all flags, comments and patches that relate to a specific patch. Set to -1 for a patch series.
  • message_id (analysed string): message id as retrieved from the mbox

And then each of the values of ‘emailtype’ has specific related columns:

Applicable to emailtype = patchserie

  • patchserie_numackedpatches (number): contains the number of acked patches for a particular patch series
  • patchserie_numpatches (number): contains the number of patches that make up a particular patch series
  • patchserie_percentage_ackedpatches (number): contains the % of acked patches in a specific patch series. Numbers may range from 0 to 100.
  • merged (number): 1 if this was detected as merged into the git repository. 0 if this is not detected as being merged into Git.

Applicable to emailtype = patch

  • patch_id (string): unique identifier of the patch. It is equivalent to the message_idthat is retrieved from the mbox.
  • merged (number): this contains a 1 if the patch was merged. 0 if the patch is not merged.
  • is_acked (number): this value contains a 1 if this patch was acked by any developer. In other cases this value is 0.

The following fields are not really useful for searching: num_patch and number

Applicable to emailtype = flag

  • num_flag_review (number): this value is 1 if the flag used is Reviewed-by. 0 in other cases.
  • num_flag_ack (number): this value is 1 if the flag used is Acked-by. 0 in other cases.

The following fields are not really useful for searching: balance and number

Applicable to emailtype = comment and emailtype = self-comment

  • comment_id (string): this provides an unique identifier for each of the comments. These are the emails replying to a patch.
  • post_ack_comment (number): 1 identifies any comment that occurs place after an Acked-by flag is found in a review. 0 in other cases.

The following fields are not really useful for searching: balance and number

Additional Resources

The following articles provide useful background reading on using Kibana based panels:

  • Dashboard describes all functionality that is available in Dashboards or Panels. Note that any functionality that allows changing and saving dashboards is disabled in xen.biterg.io. If you want specific customisations, please contact community.manager@xenproject.org.