models

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBEnvDuration added in v0.20.0

type DBEnvDuration struct {
	StartOfDate     time.Time `json:"startOfDate"`
	TestCount       float32   `json:"testCount"`
	Duration        float32   `json:"duration"`
	CommitCounts    string    `json:"commitCounts"`
	CommitDurations string    `json:"commitDurations"`
}

DBEnvDuration represents a "row" in the test count and total duration by day chart

type DBEnvironmentTest added in v0.18.0

type DBEnvironmentTest struct {
	CommitID      string
	EnvName       string
	GopoghTime    time.Time
	TestTime      time.Time
	NumberOfFail  int
	NumberOfPass  int
	NumberOfSkip  int
	TotalDuration float64
	GopoghVersion string
}

DBEnvironmentTest represents a row in db table that has finished tests in each environment

type DBFlakeBy added in v0.20.0

type DBFlakeBy struct {
	TestName        string    `json:"testName"`
	StartOfDate     time.Time `json:"startOfDate"`
	FlakePercentage float32   `json:"flakePercentage"`
	CommitResults   string    `json:"commitResults"`
}

DBFlakeBy represents a "row" in the flake rate by _ of top 10 of recent test flakiness charts

type DBFlakeRow added in v0.20.0

type DBFlakeRow struct {
	TestName              string  `json:"testName"`
	RecentFlakePercentage float32 `json:"recentFlakePercentage"`
	GrowthRate            float32 `json:"growthRate"`
	FailedTestNum         float32 `json:"failedTestNum"`
	TotalTestNum          float32 `json:"totalTestNum"`
}

DBFlakeRow represents a row in the basic flake rate table

type DBSummaryAvgFail added in v0.20.0

type DBSummaryAvgFail struct {
	StartOfDate    time.Time `json:"startOfDate"`
	EnvName        string    `json:"envName"`
	AvgFailedTests float32   `json:"avgFailedTests"`
	AvgDuration    float32   `json:"avgDuration"`
}

DBSummaryAvgFail represents a "row" in most flakey environments summary chart

type DBSummaryTable added in v0.20.0

type DBSummaryTable struct {
	EnvName              string  `json:"envName"`
	RecentNumberOfFail   float32 `json:"recentNumberOfFail"`
	Growth               float32 `json:"growth"`
	TestDuration         float32 `json:"testDuration"`
	PreviousTestDuration float32 `json:"previousTestDuration"`
	TestDurationGrowth   float32 `json:"testDurationGrowth"`
}

DBSummaryTable represents a row in the summary number of fail table

type DBTestCase added in v0.18.0

type DBTestCase struct {
	PR        string
	CommitID  string
	TestName  string
	TestTime  time.Time
	Result    string
	Duration  float64
	EnvName   string
	TestOrder int
}

DBTestCase represents a row in db table that holds each individual subtest

type DBTestRateAndDuration added in v0.20.0

type DBTestRateAndDuration struct {
	StartOfDate               time.Time `json:"startOfDate"`
	AvgDuration               float32   `json:"avgDuration"`
	FlakePercentage           float32   `json:"flakePercentage"`
	CommitResultsAndDurations string    `json:"commitResultsAndDurations"`
}

DBTestRateAndDuration represents a "row" in the flake rate and duration chart for a given test

type ReportDetail

type ReportDetail struct {
	Name     string
	Details  string
	PR       string // pull request number
	RepoName string // for example github repo
}

ReportDetail holds the report details such as test name, PR number...

type TestEvent

type TestEvent struct {
	Time    time.Time // encodes as an RFC3339-format string
	Action  string
	Package string
	Test    string
	Elapsed float64 // seconds
	Output  string

	EmbeddedLog []string
}

type TestGroup

type TestGroup struct {
	TestName  string
	TestOrder int
	Hidden    bool
	Status    string
	Start     time.Time
	End       time.Time
	Duration  float64
	Events    []TestEvent
}

Jump to

Keyboard shortcuts

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