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

Unified Diff: appengine/cmd/milo/cmd/backfill/main.go

Issue 2058573003: Remove the milo/buildbot backfiller (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: Recover the git portions Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/cmd/milo/cmd/backfill/README.md ('k') | appengine/cmd/milo/collectors/buildbot/collector.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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{
« no previous file with comments | « appengine/cmd/milo/cmd/backfill/README.md ('k') | appengine/cmd/milo/collectors/buildbot/collector.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698