Documentation
¶
Index ¶
- func AllPodsSummary(pods []corev1.Pod) string
- func CompactTestLogs(input string, threshold float64) string
- func CrashLoopBackOffSummary(pods []corev1.Pod) string
- func DeduplicateLogsWithWindow(input string, threshold float64, windowSize int) string
- func ErrorStateSummary(pods []corev1.Pod) string
- func ExtractFailedJobsFromAggregate(logData string) map[string]bool
- func ExtractFailingTestsBlock(input string) (string, error)
- func ExtractFlakyTestsBlock(input string) (string, error)
- func ExtractMonitorTestFailures(input string) (string, error)
- func ExtractPath(url string) string
- func ExtractProwJobInfo(jobURL string) (string, string, error)
- func ExtractStepName(logLine string) (string, error)
- func ExtractTestNameFromURL(url string) (string, error)
- func FetchAggregateJobFailures(baseUrl, logData string) (string, error)
- func FetchJSONBytes(url string) ([]byte, error)
- func FetchTopLevelKeys(data []byte) ([]string, error)
- func FetchURL(url string) (string, error)
- func FilterAcceptedTags(release *api.Release) []api.Tag
- func FilterPodsByNamespaceAsString(pods []corev1.Pod, namespace string) string
- func FilterPodsByNodeAsString(pods []corev1.Pod, nodeName string) string
- func FilterRejectedTags(release *api.Release) []api.Tag
- func FindNodeByName(nodes []corev1.Node, name string) (*corev1.Node, error)
- func GetContainerLogFilePath(gatherExtraPath, podName, namespace, containerName string) string
- func GetContainerNamesInPod(pods []corev1.Pod, podName string) string
- func GetErrorAndWarningFromSpyglassFile(spyglassFilePath string) (string, error)
- func GetGatherExtraFolderPath(prowurl string) (string, error)
- func GetNodeAnnotationsString(node *corev1.Node) string
- func GetNodeConditionsString(node *corev1.Node) string
- func GetNodeInfoString(node *corev1.Node) string
- func GetNodeLabelsString(node *corev1.Node) string
- func GetPodsByNamespace(pods []corev1.Pod, namespace string) []corev1.Pod
- func GetSpyglassDataRelevantToTestFailure(spyglassFilePath, testName string) (string, error)
- func GetSpyglassFileNames(logsPath, testName, stepFolder string) ([]string, error)
- func IndentMultiline(s, indent string) string
- func InitStateSummary(pods []corev1.Pod) string
- func LoadClusterOperatorsFromFile(filePath string) ([]configv1.ClusterOperator, error)
- func LoadClusterVersionFromFile(filePath string) (*configv1.ClusterVersion, error)
- func LoadNodesFromFile(path string) ([]corev1.Node, error)
- func LoadPodsFromFile(path string) ([]corev1.Pod, error)
- func ParseAPIReleaseInfo(data []byte) (*api.APIReleaseInfo, error)
- func ParseChangeLog(data []byte) (*api.ChangeLog, error)
- func ParseChangeLogComponentInfoList(data []byte) ([]api.ChangeLogComponentInfo, error)
- func ParseChangeLogImageInfoList(data []byte) ([]api.ChangeLogImageInfo, error)
- func ParseChangeLogReleaseInfo(data []byte) (*api.ChangeLogReleaseInfo, error)
- func ParseCommitInfoList(data []byte) ([]api.CommitInfo, error)
- func ParseRelease(data []byte) (*api.Release, error)
- func ParseUpgradeHistoryList(data []byte) ([]api.UpgradeHistory, error)
- func ParseVerificationJobsSummary(data []byte) (*api.VerificationJobsSummary, error)
- func ParseVerificationStatusMap(data []byte) (api.VerificationStatusMap, error)
- func PendingPodsSummary(pods []corev1.Pod) string
- func RunningPodsSummary(pods []corev1.Pod) string
- type EventInterval
- type Locator
- type Message
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPodsSummary ¶
func CompactTestLogs ¶
func CrashLoopBackOffSummary ¶
func DeduplicateLogsWithWindow ¶
DeduplicateLogsWithWindow removes similar lines based on relative similarity threshold within a sliding window of the last `windowSize` lines.
func ErrorStateSummary ¶
func ExtractFlakyTestsBlock ¶
func ExtractPath ¶
func ExtractStepName ¶
ExtractStepName parses a log line and extracts the step name
func ExtractTestNameFromURL ¶
ExtractTestNameFromURL extracts the first "e2e-*" segment from a prow job URL
func FetchJSONBytes ¶
FetchJSONBytes fetches JSON data from the given URL and returns it as a byte slice.
func FetchTopLevelKeys ¶
FetchTopLevelKeys fetches JSON from the URL and returns the top-level keys only.
func FilterAcceptedTags ¶
FilterAcceptedTags filters only tags with Phase == "Accepted"
func FilterRejectedTags ¶
FilterRejectedTags filters only tags with Phase == "Rejected"
func GetContainerLogFilePath ¶
func GetContainerNamesInPod ¶
GetContainerNamesInPod returns a string of container names in the specified pod.
func GetNodeAnnotationsString ¶
GetNodeAnnotationsString returns all annotations from node metadata as a string
func GetNodeConditionsString ¶
GetNodeConditionsString returns node condition information as a formatted string
func GetNodeInfoString ¶
GetNodeInfoString safely extracts and returns NodeInfo from a Node object as a formatted string
func GetNodeLabelsString ¶
GetNodeLabelsString returns all labels from node metadata as a string
func GetSpyglassDataRelevantToTestFailure ¶
Given a test name check for the Locator.Keys objects in the spyglass data to see if there is an entry with key "e2e-test" that matches the test name. return result as string
func GetSpyglassFileNames ¶
func IndentMultiline ¶
func InitStateSummary ¶
func LoadClusterOperatorsFromFile ¶
func LoadClusterOperatorsFromFile(filePath string) ([]configv1.ClusterOperator, error)
Load JSON array of ClusterOperators from file
func LoadClusterVersionFromFile ¶
func LoadClusterVersionFromFile(filePath string) (*configv1.ClusterVersion, error)
Load ClusterVersion object from file
func ParseAPIReleaseInfo ¶
func ParseAPIReleaseInfo(data []byte) (*api.APIReleaseInfo, error)
ParseAPIReleaseInfo converts raw JSON bytes into APIReleaseInfo
func ParseChangeLogComponentInfoList ¶
func ParseChangeLogComponentInfoList(data []byte) ([]api.ChangeLogComponentInfo, error)
func ParseChangeLogImageInfoList ¶
func ParseChangeLogImageInfoList(data []byte) ([]api.ChangeLogImageInfo, error)
func ParseChangeLogReleaseInfo ¶
func ParseChangeLogReleaseInfo(data []byte) (*api.ChangeLogReleaseInfo, error)
func ParseCommitInfoList ¶
func ParseCommitInfoList(data []byte) ([]api.CommitInfo, error)
func ParseRelease ¶
ParseRelease parses a JSON byte slice into a Release struct
func ParseUpgradeHistoryList ¶
func ParseUpgradeHistoryList(data []byte) ([]api.UpgradeHistory, error)
func ParseVerificationJobsSummary ¶
func ParseVerificationJobsSummary(data []byte) (*api.VerificationJobsSummary, error)
func ParseVerificationStatusMap ¶
func ParseVerificationStatusMap(data []byte) (api.VerificationStatusMap, error)
func PendingPodsSummary ¶
func RunningPodsSummary ¶
Types ¶
type EventInterval ¶
type EventInterval struct {
Level string `json:"level"`
Display bool `json:"display"`
Source string `json:"source,omitempty"`
StructuredLocator Locator `json:"locator"`
StructuredMessage Message `json:"message"`
From *time.Time `json:"from"`
To *time.Time `json:"to"`
// Filename is the base filename we read the intervals from in gcs. If multiple,
// that usually means one for upgrade and one for conformance portions of the job run.
// TODO: this may need to be revisited once we're further along with the UI/new schema.
Filename string `json:"filename"`
}
type Report ¶
type Report struct {
Items []EventInterval `json:"items"`
}