riskanalysis

package
v0.0.0-...-73c3bbe Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJobRunTestFailureSummary

func WriteJobRunTestFailureSummary(artifactDir, timeSuffix string, finalSuiteResults *junitapi.JUnitTestSuite, wasMasterNodeUpdated, outputFileSubStr string) error

WriteJobRunTestFailureSummary writes a more minimal json file summarizing a little info about the job run, and what tests flaked and failed. (successful tests are omitted) This is intended to be later submitted to sippy for a risk analysis of how unusual the test failures were, but that final step is handled elsewhere.

Types

type Options

type Options struct {
	JUnitDir string
	SippyURL string
}

Options is used to run a risk analysis to determine how severe or unusual the test failures in an openshift-tests run were.

func (*Options) Run

func (opt *Options) Run() error

Run performs the test risk analysis by reading the output files from the test run, submitting them to sippy, and writing out the analysis result as a new artifact.

type ProwJob

type ProwJob struct {
	Name string
}

type ProwJobRun

type ProwJobRun struct {
	ID          int
	ProwJob     ProwJob
	ClusterData platformidentification.ClusterData
	Tests       []ProwJobRunTest
	TestCount   int
}

type ProwJobRunTest

type ProwJobRunTest struct {
	Test   Test
	Suite  Suite
	Status int // would like to use smallint here, but gorm auto-migrate breaks trying to change the type every start
}

type Suite

type Suite struct {
	Name string
}

type Test

type Test struct {
	Name string
}

Jump to

Keyboard shortcuts

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