From: rniwa@webkit.org Date: Sun, 27 Oct 2013 00:47:21 +0000 (+0000) Subject: New flakiness dashboard shouldn't treat tests with right expectations as failing X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=4db6b47b67bb300862fb147cc87fb47f5b406ae9 New flakiness dashboard shouldn't treat tests with right expectations as failing https://bugs.webkit.org/show_bug.cgi?id=123385 Reviewed by Alexey Proskuryakov. We define failing tests to be tests with wrong expectations whose actual results are not PASS since tests with TEXT, IMAGE, etc... failures do not turn the bots red as long as the expectation of the same type is specified in TestExpectation files. * public/include/test-results.php: (FailingResultsJSONWriter): Inherit from WrongExpectationsResultsJSONWriter. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158093 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Websites/test-results/ChangeLog b/Websites/test-results/ChangeLog index 3b23d75750b6..f86081beb3a6 100644 --- a/Websites/test-results/ChangeLog +++ b/Websites/test-results/ChangeLog @@ -1,3 +1,17 @@ +2013-10-26 Ryosuke Niwa + + New flakiness dashboard shouldn't treat tests with right expectations as failing + https://bugs.webkit.org/show_bug.cgi?id=123385 + + Reviewed by Alexey Proskuryakov. + + We define failing tests to be tests with wrong expectations whose actual results are not PASS + since tests with TEXT, IMAGE, etc... failures do not turn the bots red as long as the expectation + of the same type is specified in TestExpectation files. + + * public/include/test-results.php: + (FailingResultsJSONWriter): Inherit from WrongExpectationsResultsJSONWriter. + 2013-10-25 Ryosuke Niwa Build fix. The query results weren't sorted by the latest commit time, diff --git a/Websites/test-results/public/include/test-results.php b/Websites/test-results/public/include/test-results.php index 77a1c2f833e5..77bfc1df0e6e 100644 --- a/Websites/test-results/public/include/test-results.php +++ b/Websites/test-results/public/include/test-results.php @@ -137,13 +137,6 @@ abstract class ResultsJSONWriter { abstract protected function pass_for_failure_type(&$results); } -class FailingResultsJSONWriter extends ResultsJSONWriter { - public function __construct($fp) { parent::__construct($fp); } - protected function pass_for_failure_type(&$results) { - return $results[0]['actual'] == 'PASS'; - } -} - class FlakyResultsJSONWriter extends ResultsJSONWriter { public function __construct($fp) { parent::__construct($fp); } protected function pass_for_failure_type(&$results) { @@ -175,6 +168,13 @@ class WrongExpectationsResultsJSONWriter extends ResultsJSONWriter { } } +class FailingResultsJSONWriter extends WrongExpectationsResultsJSONWriter { + public function __construct($fp) { parent::__construct($fp); } + protected function pass_for_failure_type(&$results) { + return $results[0]['actual'] == 'PASS' || parent::pass_for_failure_type($results); + } +} + class ResultsJSONGenerator { private $db; private $builder_id;