Merge pull request #17770 from tico88612/feat/update-tools
Test: add tools/rw-heatmaps & tools/testgrid-analysis to module_dirs
This commit is contained in:
commit
2b1914c262
@ -166,7 +166,7 @@ function run_for_module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function module_dirs() {
|
function module_dirs() {
|
||||||
echo "api pkg client/pkg client/internal/v2 client/v3 server etcdutl etcdctl tests ."
|
echo "api pkg client/pkg client/internal/v2 client/v3 server etcdutl etcdctl tests tools/rw-heatmaps tools/testgrid-analysis ."
|
||||||
}
|
}
|
||||||
|
|
||||||
# maybe_run [cmd...] runs given command depending on the DRY_RUN flag.
|
# maybe_run [cmd...] runs given command depending on the DRY_RUN flag.
|
||||||
@ -178,6 +178,9 @@ function maybe_run() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# modules
|
||||||
|
# returns the list of all modules in the project, not including the tools,
|
||||||
|
# as they are not considered to be added to the bill for materials.
|
||||||
function modules() {
|
function modules() {
|
||||||
modules=(
|
modules=(
|
||||||
"${ROOT_MODULE}/api/v3"
|
"${ROOT_MODULE}/api/v3"
|
||||||
|
@ -95,9 +95,9 @@ func processRow(dashboard, tab string, row *apipb.ListRowsResponse_Row, allTests
|
|||||||
if maxDays > 0 && header.Started.AsTime().Before(earliestTimeToConsider) {
|
if maxDays > 0 && header.Started.AsTime().Before(earliestTimeToConsider) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
total += 1
|
total++
|
||||||
if _, ok := failureTestStatusesInt[cell.Result]; ok {
|
if _, ok := failureTestStatusesInt[cell.Result]; ok {
|
||||||
failed += 1
|
failed++
|
||||||
// markdown table format of | commit | log |
|
// markdown table format of | commit | log |
|
||||||
logs = append(logs, fmt.Sprintf("| %s | %s | https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/%s/%s |", strings.Join(header.Extra, ","), header.Started.AsTime().String(), tab, header.Build))
|
logs = append(logs, fmt.Sprintf("| %s | %s | https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/%s/%s |", strings.Join(header.Extra, ","), header.Started.AsTime().String(), tab, header.Build))
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
func createIssues(tests []*TestResultSummary, labels []string) {
|
func createIssues(tests []*TestResultSummary, labels []string) {
|
||||||
openIssues := getOpenIssues(labels)
|
openIssues := getOpenIssues(labels)
|
||||||
for _, t := range tests {
|
for _, t := range tests {
|
||||||
createIssueIfNonExist(tab, t, openIssues, append(labels, "help wanted"))
|
createIssueIfNonExist(t, openIssues, append(labels, "help wanted"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ func getOpenIssues(labels []string) []*github.Issue {
|
|||||||
return allIssues
|
return allIssues
|
||||||
}
|
}
|
||||||
|
|
||||||
func createIssueIfNonExist(tab string, t *TestResultSummary, issues []*github.Issue, labels []string) {
|
func createIssueIfNonExist(t *TestResultSummary, issues []*github.Issue, labels []string) {
|
||||||
// check if there is already an open issue regarding this test
|
// check if there is already an open issue regarding this test
|
||||||
for _, issue := range issues {
|
for _, issue := range issues {
|
||||||
if strings.Contains(*issue.Title, t.Name) {
|
if strings.Contains(*issue.Title, t.Name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user