monitor

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusFileName = "status.json"
	StateRunning   = "running"
	StateCompleted = "completed"
	StateFailed    = "failed"
)

Variables

This section is empty.

Functions

func FindStatusPath

func FindStatusPath(logDestination string, project string, reviewID string) (string, error)

func NowString

func NowString() string

func ReviewDir

func ReviewDir(logDestination string, project string, reviewID string) string

func StatusPath

func StatusPath(reviewDir string) string

func WriteStatus

func WriteStatus(path string, status ReviewStatus) error

Types

type QualityInfo

type QualityInfo struct {
	ID       string
	Ref      string
	Blocking bool
}

type ReviewStatus

type ReviewStatus struct {
	ReviewID      string
	Project       string
	Rubric        string `dd:",+omitempty"`
	State         string
	ChangesetKind string
	Reviewer      ReviewerInfo
	StartedAt     string
	UpdatedAt     string
	CompletedAt   string `dd:",+omitempty"`
	StatusPath    string
	LogPath       string `dd:",+omitempty"`
	Error         *errs.Info
	Files         []string      `dd:",+omitempty"`
	Qualities     []QualityInfo `dd:",+omitempty"`
	// ExcludedQualities records the rubric qualities territory narrowing
	// dropped from this review, so the status of a running review shows what
	// it covers before the verdict lands.
	ExcludedQualities []QualityInfo `dd:",+omitempty"`
	// Coverage is the territory-coverage assessment computed before the
	// reviewer starts, carried unchanged from the first status write through
	// completion or failure. nil on reviews recorded before coverage
	// reporting existed: absence is unavailable, never an assessed empty
	// gap list, and must not be filled in from the current canon.
	Coverage *report.Coverage
}

func ReadStatus

func ReadStatus(path string) (ReviewStatus, error)

type ReviewerInfo

type ReviewerInfo struct {
	Name  string
	Impl  string
	Model string `dd:",+omitempty"`
}

Jump to

Keyboard shortcuts

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