Revert 203176.
authorlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jul 2016 20:09:23 +0000 (20:09 +0000)
committerlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Jul 2016 20:09:23 +0000 (20:09 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@203177 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/test-results/config.json
Websites/test-results/public/admin/builders.php
Websites/test-results/public/api/report.php
Websites/test-results/public/include/db.php
Websites/test-results/public/include/json-shared.php
Websites/test-results/public/include/test-results.php
Websites/test-results/public/index.html
Websites/test-results/public_partition_maintenance
Websites/test-results/size-database.sql [deleted file]

index f086d80..5e68270 100644 (file)
@@ -7,7 +7,7 @@
         "host": "localhost",
         "port": "5432",
         "username": "test-results-user",
-        "password": "intr1gue",
+        "password": "password",
         "name": "test-results-db"
     },
     "masters": [
index 5eea579..f663563 100644 (file)
@@ -25,7 +25,6 @@ if ($db) {
     ));
 
     $page->render_table('name');
-    $page->render_form_to_add();
 }
 
 require('../include/admin-footer.php');
index 1c9e7d5..ece6399 100644 (file)
@@ -62,7 +62,6 @@ function main() {
     if (!array_key_exists('file', $_FILES) or !array_key_exists('tmp_name', $_FILES['file']) or count($_FILES['file']['tmp_name']) <= 0)
         exit_with_error('ResultsJSONNotIncluded');
     $json_path = $_FILES['file']['tmp_name'];
-    var_dump($_FILES);
 
     $db = connect();
     store_results($db, $master, $builder_name, $build_number, $start_time, $end_time, $revisions, $json_path);
index 69b7ef3..57de93f 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-ini_set('memory_limit','-1');
+ini_set('memory_limit','1024M');
 
 require_once('db.php');
 
index dc66749..f53b19b 100644 (file)
@@ -1,8 +1,6 @@
 <?php
 ini_set('memory_limit', '1024M');
 
-ini_set('memory_limit', '1024M');
-
 require_once('db.php');
 
 function float_to_time($time_in_float) {
index c08f79c..0c0236b 100644 (file)
@@ -129,16 +129,7 @@ TestResultsView._createResultCell = function (master, builder, result, previousR
             webkitRepositoryId = repositoryId;
     }
     var webkitRevision = result.build.revision(webkitRepositoryId);
-
-    // FIXME: This code definitely doesn't belong here.
-    var safariRepositoryId;
-    for (var repositoryId in TestResultsView._repositories) {
-        if (TestResultsView._repositories[repositoryId].name == 'Safari')
-            safariRepositoryId = repositoryId;
-    }
-    var safariRevision = result.build.revision(safariRepositoryId);
-
-    var resultsPage = webkitRevision ? "http://" + master + "/results/" + builder + "/r" + webkitRevision + '_' + safariRevision + "%20(" + buildNumber + ")/results.html"
+    var resultsPage = webkitRevision ? "http://" + master + "/results/" + builder + "/r" + webkitRevision + "%20(" + buildNumber + ")/results.html"
         : 'javascript:alert("Could no resolve WebKit revision")';
 
     var anchor = element('a', {'href': resultsPage }, [timeIfSlow]);
index fd815e8..44a1a53 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
 # NOTE: psql must be available in the path.
-psql test-results-db -h localhost<<SQL
+psql -U "test-results-user" <<SQL
 SELECT public.partition_maintenance('results'::text, 'public'::text, now()::date );
-SQL
+SQL
\ No newline at end of file
diff --git a/Websites/test-results/size-database.sql b/Websites/test-results/size-database.sql
deleted file mode 100644 (file)
index 4c186c3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-SELECT
-    table_name,
-    pg_size_pretty(table_size) AS table_size,
-    pg_size_pretty(indexes_size) AS indexes_size,
-    pg_size_pretty(total_size) AS total_size
-FROM (
-    SELECT
-        table_name,
-        pg_table_size(table_name) AS table_size,
-        pg_indexes_size(table_name) AS indexes_size,
-        pg_total_relation_size(table_name) AS total_size
-    FROM (
-        SELECT ('"' || table_schema || '"."' || table_name || '"') AS table_name
-        FROM information_schema.tables
-    ) AS all_tables
-    ORDER BY total_size DESC
-) AS pretty_sizes
-