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

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

Issue 2915663002: milo: open swarming tasks with wide logs (Closed)
Patch Set: Created 3 years, 6 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 "bytes" 8 "bytes"
9 "fmt" 9 "fmt"
10 "net/http" 10 "net/http"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 } 724 }
725 return allowed 725 return allowed
726 } 726 }
727 } 727 }
728 return false 728 return false
729 } 729 }
730 730
731 // taskPageURL returns a URL to a human-consumable page of a swarming task. 731 // taskPageURL returns a URL to a human-consumable page of a swarming task.
732 // Supports server aliases. 732 // Supports server aliases.
733 func taskPageURL(swarmingHostname, taskID string) string { 733 func taskPageURL(swarmingHostname, taskID string) string {
734 » return fmt.Sprintf("https://%s/task?id=%s&show_raw=1", swarmingHostname, taskID) 734 » return fmt.Sprintf("https://%s/task?id=%s&show_raw=1&wide_logs=true", sw armingHostname, taskID)
735 } 735 }
736 736
737 // botPageURL returns a URL to a human-consumable page of a swarming bot. 737 // botPageURL returns a URL to a human-consumable page of a swarming bot.
738 // Supports server aliases. 738 // Supports server aliases.
739 func botPageURL(swarmingHostname, botID string) string { 739 func botPageURL(swarmingHostname, botID string) string {
740 return fmt.Sprintf("https://%s/restricted/bot/%s", swarmingHostname, bot ID) 740 return fmt.Sprintf("https://%s/restricted/bot/%s", swarmingHostname, bot ID)
741 } 741 }
742 742
743 // swarmingURLBuilder is a logdog.URLBuilder that builds Milo swarming log 743 // swarmingURLBuilder is a logdog.URLBuilder that builds Milo swarming log
744 // links. 744 // links.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 for _, tag := range v { 787 for _, tag := range v {
788 var value string 788 var value string
789 parts := strings.SplitN(tag, ":", 2) 789 parts := strings.SplitN(tag, ":", 2)
790 if len(parts) == 2 { 790 if len(parts) == 2 {
791 value = parts[1] 791 value = parts[1]
792 } 792 }
793 res[parts[0]] = value 793 res[parts[0]] = value
794 } 794 }
795 return res 795 return res
796 } 796 }
OLDNEW
« no previous file with comments | « milo/appengine/frontend/expectations/swarming.build-build-unicode.html ('k') | milo/appengine/swarming/buildinfo_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698