Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/openshift-eng.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ includeSuites:
- Gitops-lp-interop
- ACS-lp-interop
- OADP-lp-interop
- COO-lp-interop
- tracing-uiplugin
excludeSuites: []
excludeTests:
- "Build image%"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
reviewers:
- IshwarKanse
approvers:
- IshwarKanse
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package tracinguiplugin

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)

// Extract [Capability:XXX] tags from test name
capabilities = append(capabilities, util.ExtractTestField(test.Name, "Capability")...)

return capabilities
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package tracinguiplugin

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 ClusterObservabilityOperatorComponent = Component{
Component: &config.Component{
Name: "tracing-uiplugin",
Operators: []string{"cluster-observability-operator"},
DefaultJiraComponent: "tracing-uiplugin",
Matchers: []config.ComponentMatcher{
{
Suite: "tracing-uiplugin",
},
},
},
}

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
}

func (c *Component) ListNamespaces() []string {
return c.Namespaces
}
2 changes: 2 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
cloudnativeeventshardwareeventproxy "github.com/openshift-eng/ci-test-mapping/pkg/components/cloudnativeevents/hardwareeventproxy"
"github.com/openshift-eng/ci-test-mapping/pkg/components/clusterautoscaler"
"github.com/openshift-eng/ci-test-mapping/pkg/components/clusterloader"
tracinguiplugin "github.com/openshift-eng/ci-test-mapping/pkg/components/clusterobservabilityoperator/tracinguiplugin"
"github.com/openshift-eng/ci-test-mapping/pkg/components/clusterresourceoverrideadmissionoperator"
"github.com/openshift-eng/ci-test-mapping/pkg/components/clusterversionoperator"
"github.com/openshift-eng/ci-test-mapping/pkg/components/cnfcerttnf"
Expand Down Expand Up @@ -267,6 +268,7 @@ func NewComponentRegistry() *Registry {
r.Register("Cloud Native Events / Hardware Event Proxy", &cloudnativeeventshardwareeventproxy.HardwareEventProxyComponent)
r.Register("Cluster Autoscaler", &clusterautoscaler.ClusterAutoscalerComponent)
r.Register("Cluster Loader", &clusterloader.ClusterLoaderComponent)
r.Register("tracing-uiplugin", &tracinguiplugin.ClusterObservabilityOperatorComponent)
r.Register("Cluster Resource Override Admission Operator", &clusterresourceoverrideadmissionoperator.ClusterResourceOverrideAdmissionOperatorComponent)
r.Register("Cluster Version Operator", &clusterversionoperator.ClusterVersionOperatorComponent)
r.Register("Console Metal3 Plugin", &consolemetal3plugin.ConsoleMetal3PluginComponent)
Expand Down