Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: ct/go/ctfe/util/util.go

Issue 1995023002: Backend for new run_chromium_analysis CT task (Closed) Base URL: https://skia.googlesource.com/buildbot@ct-7-run_lua
Patch Set: Local ChromiumAnalysisRunsDir is not used Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ct/Makefile ('k') | ct/go/frontend/frontend.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 Utility functions used by all of ctfe. 2 Utility functions used by all of ctfe.
3 */ 3 */
4 4
5 package util 5 package util
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "net/http" 9 "net/http"
10 "strings" 10 "strings"
11 "text/template" 11 "text/template"
12 12
13 "go.skia.org/infra/go/httputils" 13 "go.skia.org/infra/go/httputils"
14 "go.skia.org/infra/go/login" 14 "go.skia.org/infra/go/login"
15 ) 15 )
16 16
17 // URIs for frontend handlers. 17 // URIs for frontend handlers.
18 const ( 18 const (
19 CHROMIUM_PERF_URI = "chromium_perf/" 19 CHROMIUM_PERF_URI = "chromium_perf/"
20 CHROMIUM_PERF_RUNS_URI = "chromium_perf_runs/" 20 CHROMIUM_PERF_RUNS_URI = "chromium_perf_runs/"
21 CHROMIUM_ANALYSIS_URI = "chromium_analysis/"
22 CHROMIUM_ANALYSIS_RUNS_URI = "chromium_analysis_runs/"
21 GET_CHROMIUM_PERF_RUN_STATUS_URI = "get_chromium_perf_run_status" 23 GET_CHROMIUM_PERF_RUN_STATUS_URI = "get_chromium_perf_run_status"
22 CHROMIUM_PERF_PARAMETERS_POST_URI = "_/chromium_perf/" 24 CHROMIUM_PERF_PARAMETERS_POST_URI = "_/chromium_perf/"
23 CHROMIUM_PERF_CL_DATA_POST_URI = "_/cl_data" 25 CHROMIUM_PERF_CL_DATA_POST_URI = "_/cl_data"
24 ADD_CHROMIUM_PERF_TASK_POST_URI = "_/add_chromium_perf_task" 26 ADD_CHROMIUM_PERF_TASK_POST_URI = "_/add_chromium_perf_task"
25 GET_CHROMIUM_PERF_TASKS_POST_URI = "_/get_chromium_perf_tasks" 27 GET_CHROMIUM_PERF_TASKS_POST_URI = "_/get_chromium_perf_tasks"
26 UPDATE_CHROMIUM_PERF_TASK_POST_URI = "_/update_chromium_perf_task" 28 UPDATE_CHROMIUM_PERF_TASK_POST_URI = "_/update_chromium_perf_task"
27 WEBHOOK_ADD_CHROMIUM_PERF_TASK_POST_URI = "_/webhook_add_chromium_perf_t ask" 29 WEBHOOK_ADD_CHROMIUM_PERF_TASK_POST_URI = "_/webhook_add_chromium_perf_t ask"
28 DELETE_CHROMIUM_PERF_TASK_POST_URI = "_/delete_chromium_perf_task" 30 DELETE_CHROMIUM_PERF_TASK_POST_URI = "_/delete_chromium_perf_task"
29 REDO_CHROMIUM_PERF_TASK_POST_URI = "_/redo_chromium_perf_task" 31 REDO_CHROMIUM_PERF_TASK_POST_URI = "_/redo_chromium_perf_task"
30 32
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 116 }
115 117
116 func CheckLengths(checks []LengthCheck) error { 118 func CheckLengths(checks []LengthCheck) error {
117 for _, check := range checks { 119 for _, check := range checks {
118 if int64(len(check.Value)) > check.Limit { 120 if int64(len(check.Value)) > check.Limit {
119 return fmt.Errorf("Value of %s is too long; limit %d byt es", check.Name, check.Limit) 121 return fmt.Errorf("Value of %s is too long; limit %d byt es", check.Name, check.Limit)
120 } 122 }
121 } 123 }
122 return nil 124 return nil
123 } 125 }
OLDNEW
« no previous file with comments | « ct/Makefile ('k') | ct/go/frontend/frontend.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698