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

Side by Side Diff: milo/appengine/swarming/html_data.go

Issue 2250263005: Milo: Prefetch logs that are failures (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Also add prefetch Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package swarming 5 package swarming
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "io/ioutil" 9 "io/ioutil"
10 "path/filepath" 10 "path/filepath"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 results := []settings.TestBundle{ 81 results := []settings.TestBundle{
82 { 82 {
83 Description: "Basic successful build", 83 Description: "Basic successful build",
84 Data: templates.Args{"Build": basic}, 84 Data: templates.Args{"Build": basic},
85 }, 85 },
86 } 86 }
87 c := context.Background() 87 c := context.Background()
88 c, _ = testclock.UseTime(c, time.Date(2016, time.March, 14, 11, 0, 0, 0, time.UTC)) 88 c, _ = testclock.UseTime(c, time.Date(2016, time.March, 14, 11, 0, 0, 0, time.UTC))
89 for _, tc := range getTestCases() { 89 for _, tc := range getTestCases() {
90 » » build, err := swarmingBuildImpl(c, "foo", "debug", tc) 90 » » build, prefetch, err := swarmingBuildImpl(c, "foo", "debug", tc)
91 if err != nil { 91 if err != nil {
92 panic(fmt.Errorf("Error while processing %s: %s", tc, er r)) 92 panic(fmt.Errorf("Error while processing %s: %s", tc, er r))
93 } 93 }
94 results = append(results, settings.TestBundle{ 94 results = append(results, settings.TestBundle{
95 Description: tc, 95 Description: tc,
96 » » » Data: templates.Args{"Build": build}, 96 » » » Data: templates.Args{"Build": build, "Prefetch": prefetch},
97 }) 97 })
98 } 98 }
99 return results 99 return results
100 } 100 }
OLDNEW
« milo/appengine/swarming/build.go ('K') | « milo/appengine/swarming/html.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698