Skip to content

Commit eac60c9

Browse files
committed
update state to action
1 parent dd874a0 commit eac60c9

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎entity/speculation_tree.go‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
package entity
22

3+
// SpeculationPathAction defines the possible actions for a speculation path.
4+
type SpeculationPathAction string
5+
6+
const (
7+
// SpeculationPathActionUnknown is the default zero value for SpeculationPathAction.
8+
SpeculationPathActionUnknown SpeculationPathAction = ""
9+
// TODO: Add comprehensive list of actions
10+
)
11+
312
// SpeculationInfo represents metadata about a single speculation path, including the path through the dependency graph, its current state, and the predicted build score.
413
type SpeculationInfo struct {
14+
// Path represents the speculation path.
515
Path string
6-
State string
16+
// Action is a state that this path is in.
17+
Action SpeculationPathAction
18+
// Score is score for this speculation path.
719
Score float32
820
}
921

0 commit comments

Comments
 (0)