cmds

package
v0.0.0-...-e560ebb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrokenBy = &subcommands.Command{
	UsageLine: `broken-by`,
	ShortDesc: `find last successful task on DUT`,
	LongDesc:  `find last successful task on DUT.`,
	CommandRun: func() subcommands.CommandRun {
		c := &brokenByCmd{}
		c.InitFlags()
		c.Flags.StringVar(&c.botID, "bot-id", "", "The bot ID to search for.")
		return c
	},
}

BrokenBy is a command that identifies the last successful task to run on a given device. TODO(gregorynisbet): change broken-by to check whether the device is currently broken and apply some heuristics to find guesses for the task which broke it.

View Source
var ListAllTasks = &subcommands.Command{
	UsageLine: `list-all-tasks`,
	ShortDesc: "List all the swarming tasks.",
	LongDesc:  "List all the swarming tasks.",
	CommandRun: func() subcommands.CommandRun {
		c := &listAllTasksCmd{}
		c.InitFlags()
		c.Flags.StringVar(&c.model, "model", "", "The model to search.")
		return c
	},
}

ListAllTasks is a command that lists some swarming tasks for the past hour.

View Source
var RandTask = &subcommands.Command{
	UsageLine: `rand-task`,
	ShortDesc: "get a random task",
	LongDesc:  "Get a random task.",
	CommandRun: func() subcommands.CommandRun {
		c := &randTaskCmd{}
		c.InitFlags()
		return c
	},
}

RandTask is a command that returns a random task that ran in the past hour.

View Source
var StatusLog = &subcommands.Command{
	UsageLine: `status-log`,
	ShortDesc: "get the status log",
	LongDesc:  "Get the status log for a specified task or an arbitrary log if no task is specified.",
	CommandRun: func() subcommands.CommandRun {
		c := &statusLogCmd{}
		c.InitFlags()
		c.Flags.StringVar(&c.taskID, "task-id", "", "The task ID to search")
		return c
	},
}

StatusLog gets the status.log associated with a specific swarming task if a task ID is provided. Otherwise, it returns the status log associated with an arbitrary swarming task.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL