Changeset 180091 in webkit


Ignore:
Timestamp:
Feb 13, 2015, 4:59:20 PM (11 years ago)
Author:
rniwa@webkit.org
Message:

The status of a A/B testing request always eventually becomes "Failed"
https://bugs.webkit.org/show_bug.cgi?id=141523

Reviewed by Andreas Kling.

The bug was caused by /api/build-requests always setting the status of a build request to 'failed' when
'failedIfNotCompleted' was sent by the buildbot sync'er.

Fixed the bug by only setting the status to 'failed' if it wasn't set to 'completed'.

  • public/api/build-requests.php:

(main):

Location:
trunk/Websites/perf.webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/perf.webkit.org/ChangeLog

    r180035 r180091  
     12015-02-13  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        The status of a A/B testing request always eventually becomes "Failed"
     4        https://bugs.webkit.org/show_bug.cgi?id=141523
     5
     6        Reviewed by Andreas Kling.
     7
     8        The bug was caused by /api/build-requests always setting the status of a build request to 'failed' when
     9        'failedIfNotCompleted' was sent by the buildbot sync'er.
     10
     11        Fixed the bug by only setting the status to 'failed' if it wasn't set to 'completed'.
     12
     13        * public/api/build-requests.php:
     14        (main):
     15
    1162015-02-13  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/Websites/perf.webkit.org/public/api/build-requests.php

    r178234 r180091  
    2929            if ($status == 'failedIfNotCompleted') {
    3030                $db->query_and_get_affected_rows('UPDATE build_requests SET (request_status, request_url) = ($1, $2)
    31                     WHERE request_id = $3 AND request_status != $1', array('failed', $url, $id));
     31                    WHERE request_id = $3 AND request_status != $4', array('failed', $url, $id, 'completed'));
    3232            } else {
    3333                if (!in_array($status, array('pending', 'scheduled', 'running', 'failed', 'completed'))) {
Note: See TracChangeset for help on using the changeset viewer.