summary

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginNameOpenShiftUpgrade      = "05-openshift-cluster-upgrade"
	PluginNameKubernetesConformance = "10-openshift-kube-conformance"
	PluginNameOpenShiftConformance  = "20-openshift-conformance-validated"
	PluginNameArtifactsCollector    = "99-openshift-artifacts-collector"

	// Old Plugin names (prior v0.2). It's used to keep compatibility
	PluginOldNameKubernetesConformance = "openshift-kube-conformance"
	PluginOldNameOpenShiftConformance  = "openshift-conformance-validated"
)
View Source
const (
	ResultSourceNameProvider = "provider"
	ResultSourceNameBaseline = "baseline"
)
View Source
const (
	SuiteNameKubernetesConformance = "kubernetes/conformance"
	SuiteNameOpenshiftConformance  = "openshift/conformance"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsolidatedSummary

type ConsolidatedSummary struct {
	Provider *ResultSummary
	Baseline *ResultSummary
}

ConsolidatedSummary Aggregate the results of provider and baseline

func (*ConsolidatedSummary) GetBaseline

func (cs *ConsolidatedSummary) GetBaseline() *ResultSummary

func (*ConsolidatedSummary) GetProvider

func (cs *ConsolidatedSummary) GetProvider() *ResultSummary

func (*ConsolidatedSummary) Process

func (cs *ConsolidatedSummary) Process() error

Process entrypoint to read and fill all summaries for each archive, plugin and suites applying any transformation it needs through filters.

func (*ConsolidatedSummary) SaveResults

func (cs *ConsolidatedSummary) SaveResults(path string) error

SaveResults dump all the results and processed to the disk to be used on the review process.

type OPCTPluginSummary

type OPCTPluginSummary struct {
	Name      string
	NameAlias string
	Status    string
	Total     int64
	Passed    int64
	Failed    int64
	Timeout   int64
	Skipped   int64

	// FailedItems is the map with details for each failure
	FailedItems map[string]*PluginFailedItem
	// FailedList is the list of tests failures on the original execution
	FailedList []string
	// FailedFilterSuite is the list of failures (A) included only in the original suite (B): A INTERSECTION B
	FailedFilterSuite []string
	// FailedFilterBaseline is the list of failures (A) excluding the baseline(B): A EXCLUDE B
	FailedFilterBaseline []string
	// FailedFilteFlaky is the list of failures with no Flakes on OpenShift CI
	FailedFilterFlaky []string
}

OPCT

type OpenShiftSummary

type OpenShiftSummary struct {
	Infrastructure   *configv1.Infrastructure
	ClusterVersion   *configv1.ClusterVersion
	ClusterOperators *configv1.ClusterOperatorList

	// Plugin Results
	PluginResultK8sConformance *OPCTPluginSummary
	PluginResultOCPValidated   *OPCTPluginSummary

	// get from Sonobuoy metadata
	VersionK8S string
}

func NewOpenShiftSummary

func NewOpenShiftSummary() *OpenShiftSummary

func (*OpenShiftSummary) GetClusterOperator

func (os *OpenShiftSummary) GetClusterOperator() (*SummaryClusterOperatorOutput, error)

func (*OpenShiftSummary) GetClusterVersion

func (os *OpenShiftSummary) GetClusterVersion() (*SummaryClusterVersionOutput, error)

func (*OpenShiftSummary) GetInfrastructure

func (os *OpenShiftSummary) GetInfrastructure() (*SummaryOpenShiftInfrastructureV1, error)

func (*OpenShiftSummary) GetResultK8SValidated

func (os *OpenShiftSummary) GetResultK8SValidated() *OPCTPluginSummary

func (*OpenShiftSummary) GetResultOCPValidated

func (os *OpenShiftSummary) GetResultOCPValidated() *OPCTPluginSummary

func (*OpenShiftSummary) SetClusterOperators

func (os *OpenShiftSummary) SetClusterOperators(cr *configv1.ClusterOperatorList) error

func (*OpenShiftSummary) SetClusterVersion

func (os *OpenShiftSummary) SetClusterVersion(cr *configv1.ClusterVersionList) error

func (*OpenShiftSummary) SetInfrastructure

func (os *OpenShiftSummary) SetInfrastructure(cr *configv1.InfrastructureList) error

func (*OpenShiftSummary) SetPluginResult

func (os *OpenShiftSummary) SetPluginResult(in *OPCTPluginSummary) error

type OpenshiftTestsSuite

type OpenshiftTestsSuite struct {
	InputFile string
	Name      string
	Count     int
	Tests     []string
}

func (*OpenshiftTestsSuite) Load

func (s *OpenshiftTestsSuite) Load(ifile string, buf *bytes.Buffer) error

type OpenshiftTestsSuites

type OpenshiftTestsSuites struct {
	KubernetesConformance *OpenshiftTestsSuite
	OpenshiftConformance  *OpenshiftTestsSuite
}

func (*OpenshiftTestsSuites) GetTotalK8S

func (ts *OpenshiftTestsSuites) GetTotalK8S() int

func (*OpenshiftTestsSuites) GetTotalOCP

func (ts *OpenshiftTestsSuites) GetTotalOCP() int

type PluginFailedItem

type PluginFailedItem struct {
	// Name is the name of the e2e test
	Name string
	// Failure contains the failure reason extracted from JUnit field 'item.detials.failure'
	Failure string
	// SystemOut contains the entire test stdout extracted from JUnit field 'item.detials.system-out'
	SystemOut string
	// Offset is the offset of failure from the plugin result file
	Offset int
	// Flaky contains the flaky information from OpenShift CI - scraped from Sippy API
	Flaky *sippy.SippyTestsResponse
}

type ResultSummary

type ResultSummary struct {
	Name      string
	Archive   string
	Sonobuoy  *SonobuoySummary
	OpenShift *OpenShiftSummary
	Suites    *OpenshiftTestsSuites
	// contains filtered or unexported fields
}

ResultSummary persists the reference of resulta archive

func (*ResultSummary) GetOpenShift

func (rs *ResultSummary) GetOpenShift() *OpenShiftSummary

GetOpenShift returns the OpenShift objects parsed from results

func (*ResultSummary) GetSonobuoy

func (rs *ResultSummary) GetSonobuoy() *SonobuoySummary

GetSonobuoy returns the Sonobuoy objects parsed from results

func (*ResultSummary) GetSonobuoyCluster

func (rs *ResultSummary) GetSonobuoyCluster() *discovery.ClusterSummary

GetSonobuoyCluster returns the SonobuoyCluster object parsed from results

func (*ResultSummary) GetSuites

func (rs *ResultSummary) GetSuites() *OpenshiftTestsSuites

GetSuites returns the Conformance suites collected from results

func (*ResultSummary) HasValidResults

func (rs *ResultSummary) HasValidResults() bool

HasValidResults checks if the result instance has valid archive to be processed, returning true if it's valid. Invalid results happens when the baseline archive was not set on the CLI arguments, making the 'process' command to ignore the comparisons and filters related.

func (*ResultSummary) Populate

func (rs *ResultSummary) Populate() error

Populate open the archive and process the files to populate the summary structures.

type SonobuoySummary

type SonobuoySummary struct {
	Cluster *discovery.ClusterSummary
}

func (*SonobuoySummary) SetCluster

func (s *SonobuoySummary) SetCluster(c *discovery.ClusterSummary) error

type SummaryClusterOperatorOutput

type SummaryClusterOperatorOutput struct {
	CountAvailable   uint64
	CountProgressing uint64
	CountDegraded    uint64
}

type SummaryClusterVersionOutput

type SummaryClusterVersionOutput struct {
	DesiredVersion     string
	Progressing        string
	ProgressingMessage string
}

type SummaryOpenShiftInfrastructureV1

type SummaryOpenShiftInfrastructureV1 = configv1.Infrastructure

Jump to

Keyboard shortcuts

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