Skip to content

Commit

Permalink
Merge pull request #142 from stbenjam/update-components
Browse files Browse the repository at this point in the history
Update jira components
  • Loading branch information
openshift-merge-bot[bot] authored Aug 20, 2024
2 parents 04eb9f1 + b80884c commit 4b85466
Show file tree
Hide file tree
Showing 20 changed files with 874 additions and 400 deletions.
364 changes: 182 additions & 182 deletions data/openshift-gce-devel/ci_analysis_us/component_mapping.json

Large diffs are not rendered by default.

264 changes: 132 additions & 132 deletions data/openshift-gce-devel/ci_analysis_us/qe_component_mapping.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions pkg/components/cloudcompute/clusterapiproviders/capabilities.go
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 pkg/components/cloudcompute/clusterapiproviders/component.go
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 pkg/components/cloudcompute/controlplanemachineset/capabilities.go
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 pkg/components/cloudcompute/controlplanemachineset/component.go
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 pkg/components/cloudcompute/machineapiproviders/capabilities.go
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 pkg/components/cloudcompute/machineapiproviders/component.go
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 pkg/components/cloudcompute/machinecsrapprover/capabilities.go
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 pkg/components/cloudcompute/machinecsrapprover/component.go
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
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cloudcomputeotherprovider
package cloudcomputeunknown

import (
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package cloudcomputeotherprovider
package cloudcomputeunknown

import (
v1 "github.com/openshift-eng/ci-test-mapping/pkg/api/types/v1"
Expand All @@ -9,11 +9,11 @@ type Component struct {
*config.Component
}

var OtherProviderComponent = Component{
var UnknownComponent = Component{
Component: &config.Component{
Name: "Cloud Compute / Other Provider",
Name: "Cloud Compute / Unknown",
Operators: []string{"cluster-api", "machine-approver", "machine-api", "control-plane-machine-set"},
DefaultJiraComponent: "Cloud Compute / Other Provider",
DefaultJiraComponent: "Cloud Compute / Unknown",
Namespaces: []string{
"openshift-cluster-machine-approver",
"openshift-machine-api",
Expand Down
12 changes: 12 additions & 0 deletions pkg/components/confidentialcomputeattestation/capabilities.go
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 pkg/components/confidentialcomputeattestation/component.go
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
}
12 changes: 12 additions & 0 deletions pkg/components/node/instasliceoperator/capabilities.go
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
}
Loading

0 comments on commit 4b85466

Please sign in to comment.