Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

organize job run results by job #73

Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Sep 8, 2020

This presentation is more what people expect and simplifies some logic of the processing and transformation. It also gets us ready for building out test results by job and unifying aggregration types.

Copy link
Contributor

@bparees bparees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple nits but i like the nesting.

main.go Outdated
}
}

func getFailedTestNamesFromJobRuns(jobRuns map[string]testgridanalysisapi.RawJobRunResult) sets.String {
func getFailedTestNamesFromJobRuns(jobResults map[string]testgridanalysisapi.RawJobResult) sets.String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func getFailedTestNamesFromJobRuns(jobResults map[string]testgridanalysisapi.RawJobResult) sets.String {
func getFailedTestNamesFromJobResults(jobResults map[string]testgridanalysisapi.RawJobResult) sets.String {

bzComponentToBZJobResults := map[string][]sippyprocessingv1.BugzillaJobResult{}
for job, jobRunResults := range jobRunsByJob {
curr := generateJobFailuresByBugzillaComponent(job, jobRunResults, jobToTestResults[job].TestResults)
for job, jobRunResult := range allJobResults {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for job, jobRunResult := range allJobResults {
for job, jobResult := range allJobResults {

?

@bparees
Copy link
Contributor

bparees commented Sep 8, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 8, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, deads2k

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 8, 2020
@openshift-merge-robot openshift-merge-robot merged commit 9b098b6 into openshift:master Sep 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants