From 018acada0d6eb8f8abbc3e524555922f4857b529 Mon Sep 17 00:00:00 2001 From: Yegor Jbanov Date: Wed, 10 Aug 2016 10:01:50 -0700 Subject: [PATCH] add iOS CI tasks; fix log chunk sorting --- app/index.yaml | 2 +- app/lib/components/status_table.dart | 1 + commands/get_log.go | 2 +- commands/refresh_github_commits.go | 6 ++++++ db/db.go | 1 + 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/index.yaml b/app/index.yaml index 3627fb3602..03c2425554 100644 --- a/app/index.yaml +++ b/app/index.yaml @@ -24,4 +24,4 @@ indexes: properties: - name: OwnerKey - name: CreateTimestamp - direction: desc + direction: asc diff --git a/app/lib/components/status_table.dart b/app/lib/components/status_table.dart index 2d38bc8eb4..06cfdd46d4 100644 --- a/app/lib/components/status_table.dart +++ b/app/lib/components/status_table.dart @@ -274,6 +274,7 @@ String _iconForStageName(String stageName) { 'travis': '/travis.svg', 'chromebot': '/chromium.svg', 'devicelab': '/android.svg', + 'devicelab_ios': '/apple.svg', }; return iconMap[stageName]; } diff --git a/commands/get_log.go b/commands/get_log.go index 7b6a7632f0..161263f8d2 100644 --- a/commands/get_log.go +++ b/commands/get_log.go @@ -37,7 +37,7 @@ func GetLog(cocoon *db.Cocoon, w http.ResponseWriter, r *http.Request) { query := datastore.NewQuery("LogChunk"). Filter("OwnerKey =", ownerKey). - Order("-CreateTimestamp"). + Order("CreateTimestamp"). Limit(100) for iter := query.Run(cocoon.Ctx); ; { diff --git a/commands/refresh_github_commits.go b/commands/refresh_github_commits.go index 8a4255c5a2..d030db84f5 100644 --- a/commands/refresh_github_commits.go +++ b/commands/refresh_github_commits.go @@ -155,5 +155,11 @@ func createTaskList(createTimestamp int64, checklistKey *datastore.Key) []*db.Ta makeTask("devicelab", "analyzer_cli__analysis_time", []string{"has-android-device"}), makeTask("devicelab", "analyzer_server__analysis_time", []string{"has-android-device"}), + + // iOS + makeTask("devicelab_ios", "complex_layout_scroll_perf_ios__timeline_summary", []string{"has-ios-device"}), + makeTask("devicelab_ios", "flutter_gallery_ios__start_up", []string{"has-ios-device"}), + makeTask("devicelab_ios", "complex_layout_ios__start_up", []string{"has-ios-device"}), + makeTask("devicelab_ios", "flutter_gallery_ios__transition_perf", []string{"has-ios-device"}), } } diff --git a/db/db.go b/db/db.go index ebfe0d00c0..b69cec726b 100644 --- a/db/db.go +++ b/db/db.go @@ -319,6 +319,7 @@ var stagePrecedence = []string{ "travis", "chromebot", "devicelab", + "devicelab_ios", } func stageIndexOf(stage *Stage) int {