Documentation ¶
Index ¶
- Constants
- type BuildInfo
- type E2ETester
- type RealE2ETester
- func (e *RealE2ETester) Flakes() cache.Flakes
- func (e *RealE2ETester) GCSBasedStable() (allStable, ignorableFlakes bool)
- func (e *RealE2ETester) GCSWeakStable() bool
- func (e *RealE2ETester) GetBuildResult(job string, number int) (*cache.Result, error)
- func (e *RealE2ETester) GetBuildStatus() map[string]BuildInfo
- func (e *RealE2ETester) Init() *RealE2ETester
- func (e *RealE2ETester) Stable() bool
Constants ¶
const (
// ExpectedXMLHeader is the expected header of junit_XX.xml file
ExpectedXMLHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type E2ETester ¶
type E2ETester interface { GCSBasedStable() (stable, ignorableFlakes bool) GCSWeakStable() bool GetBuildStatus() map[string]BuildInfo Stable() bool Flakes() cache.Flakes }
E2ETester can be queried for E2E job stability.
type RealE2ETester ¶
type RealE2ETester struct { JenkinsHost string JobNames []string WeakStableJobNames []string sync.Mutex BuildStatus map[string]BuildInfo // protect by mutex GoogleGCSBucketUtils *utils.Utils // contains filtered or unexported fields }
RealE2ETester is the object which will contact a jenkins instance and get information about recent jobs
func (*RealE2ETester) Flakes ¶
func (e *RealE2ETester) Flakes() cache.Flakes
Flakes returns a sorted list of current flakes.
func (*RealE2ETester) GCSBasedStable ¶
func (e *RealE2ETester) GCSBasedStable() (allStable, ignorableFlakes bool)
GCSBasedStable is a version of Stable function that depends on files stored in GCS instead of Jenkis
func (*RealE2ETester) GCSWeakStable ¶
func (e *RealE2ETester) GCSWeakStable() bool
GCSWeakStable is a version of GCSBasedStable with a slightly relaxed condition. This function says that e2e's are unstable only if there were real test failures (i.e. there was a test that failed, so no timeouts/cluster startup failures counts), or test failed for any reason 3 times in a row.
func (*RealE2ETester) GetBuildResult ¶
GetBuildResult returns (or gets) the cached result of the job and build. Public.
func (*RealE2ETester) GetBuildStatus ¶
func (e *RealE2ETester) GetBuildStatus() map[string]BuildInfo
GetBuildStatus returns the build status. This map is a copy and is thus safe for the caller to use in any way.
func (*RealE2ETester) Init ¶
func (e *RealE2ETester) Init() *RealE2ETester
Init does construction-- call once it after setting the public fields of 'e'.
func (*RealE2ETester) Stable ¶
func (e *RealE2ETester) Stable() bool
Stable is called to make sure all of the jenkins jobs are stable TODO: deprecated; GCS version is better. Use that only. Delete this.