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:
Benjamin Wang 2024-04-29 18:35:05 +01:00 committed by GitHub
commit 2b1914c262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View File

@ -166,7 +166,7 @@ function run_for_module {
}
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.
@ -178,6 +178,9 @@ function maybe_run() {
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() {
modules=(
"${ROOT_MODULE}/api/v3"

View File

@ -95,9 +95,9 @@ func processRow(dashboard, tab string, row *apipb.ListRowsResponse_Row, allTests
if maxDays > 0 && header.Started.AsTime().Before(earliestTimeToConsider) {
continue
}
total += 1
total++
if _, ok := failureTestStatusesInt[cell.Result]; ok {
failed += 1
failed++
// 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))
}

View File

@ -26,7 +26,7 @@ import (
func createIssues(tests []*TestResultSummary, labels []string) {
openIssues := getOpenIssues(labels)
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
}
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
for _, issue := range issues {
if strings.Contains(*issue.Title, t.Name) {