Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions submitqueue/entity/speculation_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,17 @@ const (

// SpeculationPathInfo is the per-path entry in a speculation tree: a path, its
// latest predicted-success score, its controller-owned status, and a link to
// the build dispatched for it (if any). Path is immutable once the entry is
// persisted; Score, Status, and BuildID are updateable, written only by the
// controller under the tree's Version optimistic lock.
// the build dispatched for it (if any). ID and Path are immutable once the
// entry is persisted; Score, Status, and BuildID are updateable, written only
// by the controller under the tree's Version optimistic lock.
type SpeculationPathInfo struct {
// ID identifies this path within its tree. It is assigned by the controller
// when the path entry is first persisted, immutable thereafter, and unique
// within the tree; its format is the controller's choice and carries no
// meaning — never parse it. Everything outside the tree names a path by this
// ID: seam outputs (path scores, path decisions) and durable links from
// other entities all refer to it rather than restating the Base/Head split.
ID string
// Path is the Base/Head split this entry covers. Immutable: it identifies
// the entry and never changes after the path is first persisted.
Path SpeculationPath
Expand Down
Loading