Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ResultStable means green, everything passed ResultStable ResultStatus = "stable" // ResultFlaky means the job run worked, but some tests failed. ResultFlaky ResultStatus = "flaky" // ResultFailed means it failed without generating readable JUnit // files, and introspection is not possible. ResultFailed ResultStatus = "failed" // RunBrokenTestName names a "flake" which really represents the fact // that the entire run was broken. RunBrokenTestName Test = "Suite so broken it failed to produce JUnit output" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache caches test result lookups, and aggregates flakes in a single place. TODO: evict based on time. TODO: evict when issue filed. TODO: backfill to given time.
type Flake ¶
type Flake struct { Job Number Test Reason string // Pointer back to the result this flake came from *Result }
Flake records a single flake occurrence.
type Result ¶
type Result struct { // The jenkins job Job // The run number Number Status ResultStatus StartTime time.Time EndTime time.Time // test name to reason/desc Flakes map[Test]string }
Result records a test job completion.
type ResultFunc ¶
ResultFunc should look up the job & number from its source (GCS or wherever).
Click to show internal directories.
Click to hide internal directories.