-
Notifications
You must be signed in to change notification settings - Fork 29
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
TRT-1475: Update Jira Component and map vsphere variant #172
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
334c69b
Update jira components
xueqzhan ef4c14b
Add vsphere variant mapping
xueqzhan a5b1f81
Add readme for variant to jira component mapping
xueqzhan 39d2909
Fix lint error
xueqzhan de3cbc4
Enable variant mapping in cron job
xueqzhan 9bd18d4
Add variant mapping to qe dataset as well
xueqzhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
data/openshift-gce-devel/ci_analysis_qe/variant_mapping.json
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,20 @@ | ||
[ | ||
{ | ||
"APIVersion": "v1", | ||
"Kind": "VariantOwnership", | ||
"Product": "OpenShift", | ||
"JiraProject": "OCPBUGS", | ||
"JiraComponent": "Cloud Compute / vSphere Provider", | ||
"VariantName": "Platform", | ||
"VariantValue": "vsphere" | ||
}, | ||
{ | ||
"APIVersion": "v1", | ||
"Kind": "VariantOwnership", | ||
"Product": "OpenShift", | ||
"JiraProject": "OCPBUGS", | ||
"JiraComponent": "Bare Metal Hardware Provisioning", | ||
"VariantName": "Platform", | ||
"VariantValue": "metal" | ||
} | ||
] |
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
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 bpfman | ||
|
||
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 | ||
} |
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 bpfman | ||
|
||
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 BpfmanComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "bpfman", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "bpfman", | ||
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/vsphereprovider/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 cloudcomputevsphereprovider | ||
|
||
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 | ||
} |
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,55 @@ | ||
package cloudcomputevsphereprovider | ||
|
||
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 VSphereProviderComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "Cloud Compute / vSphere Provider", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "Cloud Compute / vSphere Provider", | ||
Variants: []string{"Platform:vsphere"}, | ||
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 hypershiftaro | ||
|
||
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 | ||
} |
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 hypershiftaro | ||
|
||
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 AROComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "HyperShift / ARO", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "HyperShift / ARO", | ||
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 hypershiftopenstack | ||
|
||
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 | ||
} |
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 hypershiftopenstack | ||
|
||
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 OpenStackComponent = Component{ | ||
Component: &config.Component{ | ||
Name: "HyperShift / OpenStack", | ||
Operators: []string{}, | ||
DefaultJiraComponent: "HyperShift / OpenStack", | ||
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 hypershiftrosa | ||
|
||
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also produce this data for QE? Even if it's empty I want to make sure the tables, etc get created (line #21)