Skip to content

Commit 6ea17dd

Browse files
committed
cmd/release: remove edge_kick_command
relui won't be able to run random commands. Once this CL is submitted, I'll update the sync job to run every 10-30 seconds so that we don't have to wait very long even without the poke, and remove it from our internal documentation. For golang/go#51797. Change-Id: I58f3aeb509f42e7502b398c767d4873618e24e18 Reviewed-on: https://go-review.googlesource.com/c/build/+/394715 Trust: Heschi Kreinick <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent c8b6cb0 commit 6ea17dd

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

cmd/release/release.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ var (
4848
skipTests = flag.Bool("skip_tests", false, "skip tests; run make.bash but not all.bash (only use if sufficient testing was done elsewhere)")
4949

5050
uploadMode = flag.Bool("upload", false, "Upload files (exclusive to all other flags)")
51-
uploadKick = flag.String("edge_kick_command", "", "Command to run to kick off an edge cache update")
5251
)
5352

5453
var (

cmd/release/upload.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ import (
1515
"math/rand"
1616
"net/http"
1717
"net/url"
18-
"os"
19-
"os/exec"
2018
"path/filepath"
2119
"regexp"
2220
"sort"
@@ -132,18 +130,6 @@ func upload(files []string) error {
132130
}
133131

134132
func waitForEdgeCache(uploaded []string) error {
135-
if *uploadKick != "" {
136-
args := strings.Fields(*uploadKick)
137-
log.Printf("Running %v...", args)
138-
cmd := exec.Command(args[0], args[1:]...)
139-
cmd.Stdout = os.Stderr // Don't print to stdout.
140-
cmd.Stderr = os.Stderr
141-
// Don't wait for the command to finish.
142-
if err := cmd.Start(); err != nil {
143-
log.Printf("Couldn't start edge cache update command: %v", err)
144-
}
145-
}
146-
147133
var g errgroup.Group
148134
for _, u := range uploaded {
149135
fname := u

0 commit comments

Comments
 (0)