New flakiness dashboard should generate JSON in the background process
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Nov 2013 03:49:35 +0000 (03:49 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Nov 2013 03:49:35 +0000 (03:49 +0000)
commitbf26fc93c0902663127934350f6bec7fe5d2bd89
treefca8c202ebdc9400803f1e6dfd806a4c6b673cb6
parent6c01da9bef4a4e6d0c6bd7b05a3c8d33e855411e
New flakiness dashboard should generate JSON in the background process
https://bugs.webkit.org/show_bug.cgi?id=123797

Reviewed by Alexey Proskuryakov.

* config.json: Add defaultBuildWaitInterval used by process-builds.php.
* init-database.sql: Add is_process column to builds table so that we can track of "unprocessed" builds.

* public/admin/process-builds.php: Added.
(process_latest_five_builds): Update flakiness states and generate JSONs for the latest five builds.
We go backwards in the time so that we don't end up infinite looping over a single build that fails.
(main): Call processed_builds with an exponential back off.

* public/api/report.php:
(store_results): No need to return build or builder ids.
(main): Don't update flakiness states or generate JSONs.

* public/include/test-results.php:
(add_build): Take the slave name; it doesn't make any sense to create a build without it and later
updating it in store_test_results.
(store_test_results): Once new test results are added, explicitly mark this build as unprocessed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@158814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Websites/test-results/ChangeLog
Websites/test-results/config.json
Websites/test-results/init-database.sql
Websites/test-results/public/admin/process-builds.php [new file with mode: 0644]
Websites/test-results/public/api/report.php
Websites/test-results/public/include/test-results.php