Index: appengine/cmd/milo/cmd/backfill/main.go |
diff --git a/appengine/cmd/milo/cmd/backfill/main.go b/appengine/cmd/milo/cmd/backfill/main.go |
index 1b352f3ad9b90fa94e8eb6149da6370c31ac17ac..91cf1cd504b06bfa687e7c39a8e930cc929e8baf 100644 |
--- a/appengine/cmd/milo/cmd/backfill/main.go |
+++ b/appengine/cmd/milo/cmd/backfill/main.go |
@@ -10,7 +10,6 @@ import ( |
"os" |
"github.com/luci/gae/impl/prod" |
- "github.com/luci/luci-go/appengine/cmd/milo/collectors/buildbot" |
"github.com/luci/luci-go/appengine/cmd/milo/collectors/git" |
"github.com/luci/luci-go/appengine/cmd/milo/model" |
log "github.com/luci/luci-go/common/logging" |
@@ -26,7 +25,6 @@ var application = &subcommands.DefaultApplication{ |
Name: "backfill", |
Title: "Backfill Build and Revision data into the milo backend from various data sources.", |
Commands: []*subcommands.Command{ |
- buildBotCmd, |
gitCmd, |
subcommands.CmdHelp, |
}, |
@@ -50,50 +48,6 @@ func (c *commandRunBase) Init() { |
} |
//////////////////////////////////////////////////////////////////////////////// |
-// Buildbot |
- |
-var buildBotCmd = &subcommands.Command{ |
- UsageLine: "buildbot", |
- ShortDesc: "runs the buildbot backfiller", |
- LongDesc: "Runs the buildbot backfiller. This hits chrome build extract, and uploads the data from that into the Cloud datastore, as backed by the remoteURL.", |
- CommandRun: func() subcommands.CommandRun { |
- c := &cmdBuildBotRun{} |
- c.Init() |
- c.Flags.StringVar(&c.master, "master", "chromium.win", "the master to upload data for") |
- c.Flags.BoolVar(&c.buildbotFallback, "buildbot-fallback", false, "if getting the data from CBE fails, get the json data directly from the buildbot master") |
- return c |
- }, |
-} |
- |
-type cmdBuildBotRun struct { |
- commandRunBase |
- master string |
- buildbotFallback bool |
-} |
- |
-func (c *cmdBuildBotRun) Run(a subcommands.Application, args []string) int { |
- cfg := gologger.LoggerConfig{ |
- Format: "%{message}", |
- Out: os.Stdout, |
- } |
- ctx := cfg.Use(context.Background()) |
- |
- err := prod.UseRemote(&ctx, c.remoteURL, nil) |
- if err != nil { |
- log.Errorf(ctx, "%s", err) |
- return 1 |
- } |
- |
- err = buildbot.PopulateMaster(ctx, c.master, c.dryRun, c.buildbotFallback) |
- if err != nil { |
- log.Errorf(ctx, "%s", err) |
- return 1 |
- } |
- |
- return 0 |
-} |
- |
-//////////////////////////////////////////////////////////////////////////////// |
// Git |
var gitCmd = &subcommands.Command{ |