Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baseline ¶
type Baseline struct { // MD5 is the hash of the Expectations field. Can be used to quickly test equality. MD5 string `json:"md5"` // Expectations captures the "baseline expectations", that is, the expectations with only the // positive and negative digests (i.e. no untriaged digest) of the current commit. Expectations expectations.Baseline `json:"primary,omitempty"` // DeprecatedExpectations captures the "baseline expectations", that is, the expectations with only // the positive and negative digests (i.e. no untriaged digest) of the current commit. // // TODO(skbug.com/10522): Rename to json:"primary" once the refactor from expectations.LabelStr to // expectations.Label is finished. DeprecatedExpectations expectations.Baseline `json:"master_str,omitempty"` // ChangelistID indicates the Gerrit or GitHub issue id of this baseline. // "" indicates the master branch. ChangelistID string `json:"cl_id,omitempty"` // CodeReviewSystem indicates which CRS system (if any) this baseline is tied to. // (e.g. "gerrit", "github") "" indicates the master branch. CodeReviewSystem string `json:"crs,omitempty"` }
Baseline captures the data necessary to verify test results on the commit queue. A baseline is essentially just the positive expectations for a branch.
type BaselineFetcher ¶
type BaselineFetcher interface { // FetchBaseline fetches a Baseline. If clID and crs are non-empty, the given Changelist will be // created by loading the master baseline and the CL baseline and combining them. // // If issueOnly is true and clID/crs != "" then only the expectations attached to the CL are // returned (omitting the baselines of the master branch). // // issueOnly is primarily used for debugging. FetchBaseline(ctx context.Context, clID, crs string, issueOnly bool) (*Baseline, error) }
Directories ¶
Path | Synopsis |
---|---|
Package simple_baseliner houses an implementation of BaselineFetcher that directly interfaces with a ExpectationsStore.
|
Package simple_baseliner houses an implementation of BaselineFetcher that directly interfaces with a ExpectationsStore. |
Click to show internal directories.
Click to hide internal directories.