-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from stbenjam/update-components
Update jira components
- Loading branch information
Showing
20 changed files
with
874 additions
and
400 deletions.
There are no files selected for viewing
364 changes: 182 additions & 182 deletions
364
data/openshift-gce-devel/ci_analysis_us/component_mapping.json
Large diffs are not rendered by default.
Oops, something went wrong.
264 changes: 132 additions & 132 deletions
264
data/openshift-gce-devel/ci_analysis_us/qe_component_mapping.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
pkg/components/cloudcompute/clusterapiproviders/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cloudcomputeclusterapiproviders | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
54 changes: 54 additions & 0 deletions
54
pkg/components/cloudcompute/clusterapiproviders/component.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package cloudcomputeclusterapiproviders | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/config" | ||
) | ||
|
||
type Component struct { | ||
*config.Component | ||
} | ||
|
||
var ClusterAPIProvidersComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "Cloud Compute / Cluster API Providers", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "Cloud Compute / Cluster API Providers", | ||
Matchers: []config.ComponentMatcher{}, | ||
}, | ||
} | ||
|
||
func (c *Component) IdentifyTest(test *v1.TestInfo) (*v1.TestOwnership, error) { | ||
if matcher := c.FindMatch(test); matcher != nil { | ||
jira := matcher.JiraComponent | ||
if jira == "" { | ||
jira = c.DefaultJiraComponent | ||
} | ||
return &v1.TestOwnership{ | ||
Name: test.Name, | ||
Component: c.Name, | ||
JIRAComponent: jira, | ||
Priority: matcher.Priority, | ||
Capabilities: append(matcher.Capabilities, identifyCapabilities(test)...), | ||
}, nil | ||
} | ||
|
||
return nil, nil | ||
} | ||
|
||
func (c *Component) StableID(test *v1.TestInfo) string { | ||
// Look up the stable name for our test in our renamed tests map. | ||
if stableName, ok := c.TestRenames[test.Name]; ok { | ||
return stableName | ||
} | ||
return test.Name | ||
} | ||
|
||
func (c *Component) JiraComponents() (components []string) { | ||
components = []string{c.DefaultJiraComponent} | ||
for _, m := range c.Matchers { | ||
components = append(components, m.JiraComponent) | ||
} | ||
|
||
return components | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/components/cloudcompute/controlplanemachineset/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cloudcomputecontrolplanemachineset | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
54 changes: 54 additions & 0 deletions
54
pkg/components/cloudcompute/controlplanemachineset/component.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package cloudcomputecontrolplanemachineset | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/config" | ||
) | ||
|
||
type Component struct { | ||
*config.Component | ||
} | ||
|
||
var ControlPlaneMachineSetComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "Cloud Compute / ControlPlaneMachineSet", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "Cloud Compute / ControlPlaneMachineSet", | ||
Matchers: []config.ComponentMatcher{}, | ||
}, | ||
} | ||
|
||
func (c *Component) IdentifyTest(test *v1.TestInfo) (*v1.TestOwnership, error) { | ||
if matcher := c.FindMatch(test); matcher != nil { | ||
jira := matcher.JiraComponent | ||
if jira == "" { | ||
jira = c.DefaultJiraComponent | ||
} | ||
return &v1.TestOwnership{ | ||
Name: test.Name, | ||
Component: c.Name, | ||
JIRAComponent: jira, | ||
Priority: matcher.Priority, | ||
Capabilities: append(matcher.Capabilities, identifyCapabilities(test)...), | ||
}, nil | ||
} | ||
|
||
return nil, nil | ||
} | ||
|
||
func (c *Component) StableID(test *v1.TestInfo) string { | ||
// Look up the stable name for our test in our renamed tests map. | ||
if stableName, ok := c.TestRenames[test.Name]; ok { | ||
return stableName | ||
} | ||
return test.Name | ||
} | ||
|
||
func (c *Component) JiraComponents() (components []string) { | ||
components = []string{c.DefaultJiraComponent} | ||
for _, m := range c.Matchers { | ||
components = append(components, m.JiraComponent) | ||
} | ||
|
||
return components | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/components/cloudcompute/machineapiproviders/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cloudcomputemachineapiproviders | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
54 changes: 54 additions & 0 deletions
54
pkg/components/cloudcompute/machineapiproviders/component.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package cloudcomputemachineapiproviders | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/config" | ||
) | ||
|
||
type Component struct { | ||
*config.Component | ||
} | ||
|
||
var MachineAPIProvidersComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "Cloud Compute / Machine API Providers", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "Cloud Compute / Machine API Providers", | ||
Matchers: []config.ComponentMatcher{}, | ||
}, | ||
} | ||
|
||
func (c *Component) IdentifyTest(test *v1.TestInfo) (*v1.TestOwnership, error) { | ||
if matcher := c.FindMatch(test); matcher != nil { | ||
jira := matcher.JiraComponent | ||
if jira == "" { | ||
jira = c.DefaultJiraComponent | ||
} | ||
return &v1.TestOwnership{ | ||
Name: test.Name, | ||
Component: c.Name, | ||
JIRAComponent: jira, | ||
Priority: matcher.Priority, | ||
Capabilities: append(matcher.Capabilities, identifyCapabilities(test)...), | ||
}, nil | ||
} | ||
|
||
return nil, nil | ||
} | ||
|
||
func (c *Component) StableID(test *v1.TestInfo) string { | ||
// Look up the stable name for our test in our renamed tests map. | ||
if stableName, ok := c.TestRenames[test.Name]; ok { | ||
return stableName | ||
} | ||
return test.Name | ||
} | ||
|
||
func (c *Component) JiraComponents() (components []string) { | ||
components = []string{c.DefaultJiraComponent} | ||
for _, m := range c.Matchers { | ||
components = append(components, m.JiraComponent) | ||
} | ||
|
||
return components | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/components/cloudcompute/machinecsrapprover/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package cloudcomputemachinecsrapprover | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
54 changes: 54 additions & 0 deletions
54
pkg/components/cloudcompute/machinecsrapprover/component.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package cloudcomputemachinecsrapprover | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/config" | ||
) | ||
|
||
type Component struct { | ||
*config.Component | ||
} | ||
|
||
var MachineCSRApproverComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "Cloud Compute / Machine CSR Approver", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "Cloud Compute / Machine CSR Approver", | ||
Matchers: []config.ComponentMatcher{}, | ||
}, | ||
} | ||
|
||
func (c *Component) IdentifyTest(test *v1.TestInfo) (*v1.TestOwnership, error) { | ||
if matcher := c.FindMatch(test); matcher != nil { | ||
jira := matcher.JiraComponent | ||
if jira == "" { | ||
jira = c.DefaultJiraComponent | ||
} | ||
return &v1.TestOwnership{ | ||
Name: test.Name, | ||
Component: c.Name, | ||
JIRAComponent: jira, | ||
Priority: matcher.Priority, | ||
Capabilities: append(matcher.Capabilities, identifyCapabilities(test)...), | ||
}, nil | ||
} | ||
|
||
return nil, nil | ||
} | ||
|
||
func (c *Component) StableID(test *v1.TestInfo) string { | ||
// Look up the stable name for our test in our renamed tests map. | ||
if stableName, ok := c.TestRenames[test.Name]; ok { | ||
return stableName | ||
} | ||
return test.Name | ||
} | ||
|
||
func (c *Component) JiraComponents() (components []string) { | ||
components = []string{c.DefaultJiraComponent} | ||
for _, m := range c.Matchers { | ||
components = append(components, m.JiraComponent) | ||
} | ||
|
||
return components | ||
} |
2 changes: 1 addition & 1 deletion
2
...loudcompute/otherprovider/capabilities.go → ...ents/cloudcompute/unknown/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
pkg/components/confidentialcomputeattestation/capabilities.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package confidentialcomputeattestation | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
54 changes: 54 additions & 0 deletions
54
pkg/components/confidentialcomputeattestation/component.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package confidentialcomputeattestation | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/config" | ||
) | ||
|
||
type Component struct { | ||
*config.Component | ||
} | ||
|
||
var ConfidentialComputeAttestationComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "confidential-compute-attestation", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "confidential-compute-attestation", | ||
Matchers: []config.ComponentMatcher{}, | ||
}, | ||
} | ||
|
||
func (c *Component) IdentifyTest(test *v1.TestInfo) (*v1.TestOwnership, error) { | ||
if matcher := c.FindMatch(test); matcher != nil { | ||
jira := matcher.JiraComponent | ||
if jira == "" { | ||
jira = c.DefaultJiraComponent | ||
} | ||
return &v1.TestOwnership{ | ||
Name: test.Name, | ||
Component: c.Name, | ||
JIRAComponent: jira, | ||
Priority: matcher.Priority, | ||
Capabilities: append(matcher.Capabilities, identifyCapabilities(test)...), | ||
}, nil | ||
} | ||
|
||
return nil, nil | ||
} | ||
|
||
func (c *Component) StableID(test *v1.TestInfo) string { | ||
// Look up the stable name for our test in our renamed tests map. | ||
if stableName, ok := c.TestRenames[test.Name]; ok { | ||
return stableName | ||
} | ||
return test.Name | ||
} | ||
|
||
func (c *Component) JiraComponents() (components []string) { | ||
components = []string{c.DefaultJiraComponent} | ||
for _, m := range c.Matchers { | ||
components = append(components, m.JiraComponent) | ||
} | ||
|
||
return components | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package nodeinstasliceoperator | ||
|
||
import ( | ||
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1" | ||
"github.com/openshift-eng/ci-test-mapping/pkg/util" | ||
) | ||
|
||
func identifyCapabilities(test *v1.TestInfo) []string { | ||
capabilities := util.DefaultCapabilities(test) | ||
|
||
return capabilities | ||
} |
Oops, something went wrong.