package
0.0.0-20240716132614-1643519e6f91
Repository: https://github.com/triggermail/luci-go.git
Documentation: pkg.go.dev

# README

Swarming endpoints. Includes builds and logs.

  • build.go - Ingests annotee

  • build_test.go - Tests for build.go

  • buildLog.go - Displays build logs

  • memoryClient.go - In memory butler client for annotee

  • html.go - Plain ol' html endpoints

# Functions

AddBanner adds an OS banner derived from "os" swarming tag, if present.
addProjectInfo adds the luci_project swarming tag to the build.
No description provided by the author
GetBuild returns a milo build from a swarming task id.
GetLog loads a step log.
No description provided by the author
SwarmingBuildImpl fetches data from Swarming and LogDog and produces a resp.MiloBuild representation of a build state given a Swarming TaskID.
TaskPageURL returns a URL to a human-consumable page of a swarming task.

# Constants

SwarmingTimeLayout is time layout used by swarming.
TaskBotDied means task started but bot died.
TaskCanceled means the task was canceled.
TaskCompleted means task is complete.
TaskExpired means task expired and did not start.
TaskKill means the task was canceled.
TaskNoResource means there was not enough capacity when scheduled, so the task failed immediately.
TaskPending means task didn't start yet.
TaskRunning means task is running.
TaskTimedOut means task started, but took too long.
URLBase is the routing prefix for swarming endpoints.

# Variables

ErrNotMiloJob is returned if a Swarming task is fetched that does not self- identify as a Milo job.

# Structs

BuildID is swarming's notion of a Build.
BuildInfoProvider provides build information.

# Interfaces

SwarmingService is an interface that fetches data from Swarming.