Changeset 174655 in webkit


Ignore:
Timestamp:
Oct 13, 2014 11:46:30 AM (10 years ago)
Author:
ap@apple.com
Message:

Add more detailed wait time information to EWS metrics
https://bugs.webkit.org/show_bug.cgi?id=137649

Reviewed by Daniel Bates.

Added average and worst time (we used to only have median), and also a percentage
of patches that took a non-trivial time to start. Non-trivial is defined as 3 minutes.

There is always some wait due to the polling nature of the queues, which is well understood
and doesn't need to be measured. What needs to be measured is whether there is enough
bot machines to process patches as soon as they are submitted.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js:

(Analyzer.prototype._analyzeBubblePerformance):

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsBubbleView.js:

(MetricsBubbleView.prototype._update):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js

    r174622 r174655  
    394394
    395395        var waitTimes = [];
     396        var patchesThatWaitedMoreThan3Minutes = [];
    396397        var totalTimes = [];
    397398        var totalTimesForPatchesThatWereNotRetried = [];
     
    408409            // Wait time is equally interesting for all patches.
    409410            waitTimes.push(patch.wait_duration);
     411
     412            if (patch.wait_duration > 3 * 60)
     413                patchesThatWaitedMoreThan3Minutes.push(patchID);
    410414
    411415            if (patch.resolution === "not processed")
     
    450454            medianWaitTimeInSeconds: waitTimes.median(),
    451455            averageWaitTimeInSeconds: waitTimes.average(),
     456            maximumWaitTimeInSeconds: Math.max.apply(Math, waitTimes),
     457            patchesThatWaitedMoreThan3MinutesCount: patchesThatWaitedMoreThan3Minutes.length,
    452458            patchesThatCausedInternalError: patchesThatCausedInternalError,
    453459        };
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsBubbleView.js

    r174624 r174655  
    163163
    164164        addDivider(this.element);
    165         addLine(this.element, "Median wait time before processing started: " + pluralizeMinutes(this._results.medianWaitTimeInSeconds) + ".");
     165        addLine(this.element, "Wait time before processing started:");
     166        addLine(this.element, "- median: " + pluralizeMinutes(this._results.medianWaitTimeInSeconds) + ";");
     167        addLine(this.element, "- average: " + pluralizeMinutes(this._results.averageWaitTimeInSeconds) + ".");
     168        addLine(this.element, "- worst: " + pluralizeMinutes(this._results.maximumWaitTimeInSeconds) + ".");
     169        if (this._results.medianWaitTimeInSeconds < 3 * 60 && this._results.patchesThatWaitedMoreThan3MinutesCount)
     170            addLine(this.element, formatPercentage(this._results.patchesThatWaitedMoreThan3MinutesCount / this._results.totalPatches) + " of patches had a wait time of more than 3 minutes.");
    166171
    167172        if (this._results.patchesThatCausedInternalError.length) {
  • trunk/Tools/ChangeLog

    r174652 r174655  
     12014-10-13  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Add more detailed wait time information to EWS metrics
     4        https://bugs.webkit.org/show_bug.cgi?id=137649
     5
     6        Reviewed by Daniel Bates.
     7
     8        Added average and worst time (we used to only have median), and also a percentage
     9        of patches that took a non-trivial time to start. Non-trivial is defined as 3 minutes.
     10
     11        There is always some wait due to the polling nature of the queues, which is well understood
     12        and doesn't need to be measured. What needs to be measured is whether there is enough
     13        bot machines to process patches as soon as they are submitted.
     14
     15        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js:
     16        (Analyzer.prototype._analyzeBubblePerformance):
     17        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsBubbleView.js:
     18        (MetricsBubbleView.prototype._update):
     19
    1202014-10-11  Jer Noble  <jer.noble@apple.com>
    221
Note: See TracChangeset for help on using the changeset viewer.