Documentation
¶
Index ¶
Constants ¶
View Source
const ( // LogsGenerationVarianceAllowedPercent specifies how much variance we allow between results. // Precise semantics is that we say that difference is too big if greater value is more than // LogsGenerationVarianceAllowedPercent bigger than the smaller one. I.e. if X < Y, then Y is too // big if Y > X + X*(LogsGenerationVarianceAllowedPercent/100). LogsGenerationVarianceAllowedPercent = 50 )
Variables ¶
This section is empty.
Functions ¶
func ProcessSingleTest ¶
func ProcessSingleTest(scanner *bufio.Scanner, buildNumber int) (*e2e.LogsSizeDataSummary, *e2e.ResourceUsageSummary, *e2e.MetricsForE2E)
ProcessSingleTest processes single Jenkins output file, reading and parsing JSON summaries embedded in it.
Types ¶
type ViolatingLogGenerationData ¶
type ViolatingLogGenerationData map[string]ViolatingLogGenerationPair
ViolatingLogGenerationData stores offending pairs keyed by the log file identified by the path.
func CompareLogGenerationSpeed ¶
func CompareLogGenerationSpeed(left *e2e.LogsSizeDataSummary, right *e2e.LogsSizeDataSummary) ViolatingLogGenerationData
CompareLogGenerationSpeed given two summaries compares the data in them and returns set of offending values. Precise semantics is that for each file (e.g. /var/log/kubelet.log) we check if minimal and maximal values are roughly the same.
func (*ViolatingLogGenerationData) PrintToStdout ¶
func (d *ViolatingLogGenerationData) PrintToStdout(leftBuild, rightBuild int, enableOutputColoring bool)
PrintToStdout prints offending data to the Stdout in a human readable format.
type ViolatingLogGenerationPair ¶
type ViolatingLogGenerationPair struct {
// contains filtered or unexported fields
}
ViolatingLogGenerationPair stores a pair of results which proves that the difference is too big
Click to show internal directories.
Click to hide internal directories.