Title: [203176] trunk/Websites/test-results

Diff

Modified: trunk/Websites/test-results/config.json (203175 => 203176)


--- trunk/Websites/test-results/config.json	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/config.json	2016-07-13 20:04:09 UTC (rev 203176)
@@ -7,7 +7,7 @@
         "host": "localhost",
         "port": "5432",
         "username": "test-results-user",
-        "password": "password",
+        "password": "intr1gue",
         "name": "test-results-db"
     },
     "masters": [

Modified: trunk/Websites/test-results/public/admin/builders.php (203175 => 203176)


--- trunk/Websites/test-results/public/admin/builders.php	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/admin/builders.php	2016-07-13 20:04:09 UTC (rev 203176)
@@ -25,6 +25,7 @@
     ));
 
     $page->render_table('name');
+    $page->render_form_to_add();
 }
 
 require('../include/admin-footer.php');

Modified: trunk/Websites/test-results/public/api/report.php (203175 => 203176)


--- trunk/Websites/test-results/public/api/report.php	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/api/report.php	2016-07-13 20:04:09 UTC (rev 203176)
@@ -62,6 +62,7 @@
     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);

Modified: trunk/Websites/test-results/public/include/db.php (203175 => 203176)


--- trunk/Websites/test-results/public/include/db.php	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/include/db.php	2016-07-13 20:04:09 UTC (rev 203176)
@@ -203,4 +203,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>

Modified: trunk/Websites/test-results/public/include/json-shared.php (203175 => 203176)


--- trunk/Websites/test-results/public/include/json-shared.php	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/include/json-shared.php	2016-07-13 20:04:09 UTC (rev 203176)
@@ -1,5 +1,5 @@
 <?php
-ini_set('memory_limit','1024M');
+ini_set('memory_limit','-1');
 
 require_once('db.php');
 

Modified: trunk/Websites/test-results/public/include/test-results.php (203175 => 203176)


--- trunk/Websites/test-results/public/include/test-results.php	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/include/test-results.php	2016-07-13 20:04:09 UTC (rev 203176)
@@ -1,6 +1,8 @@
 <?php
 ini_set('memory_limit', '1024M');
 
+ini_set('memory_limit', '1024M');
+
 require_once('db.php');
 
 function float_to_time($time_in_float) {

Modified: trunk/Websites/test-results/public/index.html (203175 => 203176)


--- trunk/Websites/test-results/public/index.html	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public/index.html	2016-07-13 20:04:09 UTC (rev 203176)
@@ -129,7 +129,16 @@
             webkitRepositoryId = repositoryId;
     }
     var webkitRevision = result.build.revision(webkitRepositoryId);
-    var resultsPage = webkitRevision ? "http://" + master + "/results/" + builder + "/r" + webkitRevision + "%20(" + buildNumber + ")/results.html"
+
+    // 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"
         : '_javascript_:alert("Could no resolve WebKit revision")';
 
     var anchor = element('a', {'href': resultsPage }, [timeIfSlow]);

Modified: trunk/Websites/test-results/public_partition_maintenance (203175 => 203176)


--- trunk/Websites/test-results/public_partition_maintenance	2016-07-13 20:02:28 UTC (rev 203175)
+++ trunk/Websites/test-results/public_partition_maintenance	2016-07-13 20:04:09 UTC (rev 203176)
@@ -1,5 +1,5 @@
 #!/bin/bash
 # NOTE: psql must be available in the path.
-psql -U "test-results-user" <<SQL
+psql test-results-db -h localhost<<SQL
 SELECT public.partition_maintenance('results'::text, 'public'::text, now()::date );
-SQL
\ No newline at end of file
+SQL

Added: trunk/Websites/test-results/size-database.sql (0 => 203176)


--- trunk/Websites/test-results/size-database.sql	                        (rev 0)
+++ trunk/Websites/test-results/size-database.sql	2016-07-13 20:04:09 UTC (rev 203176)
@@ -0,0 +1,18 @@
+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
+
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to