diff options
author | Young Gyu Park <younggyu@google.com> | 2018-04-05 16:13:15 +0900 |
---|---|---|
committer | Young Gyu Park <younggyu@google.com> | 2018-04-11 08:57:02 +0900 |
commit | 84be4f920deae58de6f74959947b5bf94f322401 (patch) | |
tree | 931d4b33c6130df5a77e7a485a75cf5483e165ab /src/main/webapp | |
parent | f64099ea656e8bf64acd85c179c6878510908b35 (diff) | |
download | dashboard-84be4f920deae58de6f74959947b5bf94f322401.tar.gz |
Basic structure setup for creating cron job servlet.
Test: mma
Bug: 77608122
Change-Id: Ica8a4594fb0e8f012e0700d76b7e42e27bbc8181
Diffstat (limited to 'src/main/webapp')
-rw-r--r-- | src/main/webapp/WEB-INF/appengine-web.xml | 1 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/cron.xml | 6 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/datastore-indexes.xml | 6 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/queue.xml | 6 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/web.xml | 10 |
5 files changed, 29 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/appengine-web.xml b/src/main/webapp/WEB-INF/appengine-web.xml index fed561d..bc527c0 100644 --- a/src/main/webapp/WEB-INF/appengine-web.xml +++ b/src/main/webapp/WEB-INF/appengine-web.xml @@ -30,6 +30,7 @@ <property name="GCS_PROJECT_ID" value="${gcs.projectID}" /> <property name="GCS_KEY_FILE" value="${gcs.keyFile}" /> <property name="GCS_BUCKET_NAME" value="${gcs.bucketName}" /> + <property name="GCS_SUITE_TEST_FOLDER_NAME" value="${gcs.suiteTestFolderName}" /> </system-properties> </appengine-web-app>
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/cron.xml b/src/main/webapp/WEB-INF/cron.xml index bdd9eaa..2dc72f8 100644 --- a/src/main/webapp/WEB-INF/cron.xml +++ b/src/main/webapp/WEB-INF/cron.xml @@ -27,4 +27,10 @@ Copyright 2016 Google Inc. All Rights Reserved. <schedule>every day 07:30</schedule> <timezone>America/Los_Angeles</timezone> </cron> + <cron> + <url>/cron/test_suite_report_gcs_monitor</url> + <description>Process suite test report from gcs.</description> + <schedule>every 5 mins</schedule> + <timezone>America/Los_Angeles</timezone> + </cron> </cronentries>
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/datastore-indexes.xml b/src/main/webapp/WEB-INF/datastore-indexes.xml index 1b96cff..244ad38 100644 --- a/src/main/webapp/WEB-INF/datastore-indexes.xml +++ b/src/main/webapp/WEB-INF/datastore-indexes.xml @@ -101,6 +101,12 @@ <property name="buildFlavor" direction="asc"/> </datastore-index> + <datastore-index kind="TestSuiteFileEntity" ancestor="false" source="manual"> + <property name="day" direction="asc"/> + <property name="month" direction="asc"/> + <property name="year" direction="asc"/> + </datastore-index> + <datastore-index kind="TestSuiteResultEntity" ancestor="false" source="manual"> <property name="suitePlan" direction="asc"/> <property name="branch" direction="asc"/> diff --git a/src/main/webapp/WEB-INF/queue.xml b/src/main/webapp/WEB-INF/queue.xml index 0fccfeb..8900015 100644 --- a/src/main/webapp/WEB-INF/queue.xml +++ b/src/main/webapp/WEB-INF/queue.xml @@ -20,4 +20,10 @@ Copyright (C) 2017 The Android Open Source Project <rate>200/s</rate> <bucket-size>40</bucket-size> </queue> + <queue> + <name>suiteTestQueue</name> + <rate>20/s</rate> + <bucket-size>40</bucket-size> + <max-concurrent-requests>10</max-concurrent-requests> + </queue> </queue-entries>
\ No newline at end of file diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index ad2159d..f5ff208 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -165,6 +165,11 @@ Copyright 2016 Google Inc. All Rights Reserved. <servlet-class>com.android.vts.job.VtsInactivityJobServlet</servlet-class> </servlet> +<servlet> + <servlet-name>suite_test_report_gcs_monitor_job</servlet-name> + <servlet-class>com.android.vts.job.VtsSuiteTestJobServlet</servlet-class> +</servlet> + <servlet-mapping> <servlet-name>dashboard_main</servlet-name> <url-pattern>/</url-pattern> @@ -300,6 +305,11 @@ Copyright 2016 Google Inc. All Rights Reserved. <url-pattern>/cron/vts_inactivity_job/*</url-pattern> </servlet-mapping> +<servlet-mapping> + <servlet-name>suite_test_report_gcs_monitor_job</servlet-name> + <url-pattern>/cron/test_suite_report_gcs_monitor/*</url-pattern> +</servlet-mapping> + <security-constraint> <web-resource-collection> <web-resource-name>tasks</web-resource-name> |