Skip to content

Commit

Permalink
Merge pull request kubernetes#1782 from mm4tt/perf-dash-all-names
Browse files Browse the repository at this point in the history
Add parsers for common measurement matching any test name
  • Loading branch information
k8s-ci-robot authored Apr 14, 2021
2 parents a397740 + 5408a67 commit 5e3b31e
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perfdash/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: push

# See deployment.yaml for the version currently running-- bump this ahead before rebuilding!
TAG = 2.32
TAG = 2.33

REPO = gcr.io/k8s-testimages

Expand Down
44 changes: 44 additions & 0 deletions perfdash/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ var (
OutputFilePrefix: "StatelessPodStartupLatency_PodStartupLatency",
Parser: parsePerfData,
}},
"Resources": []TestDescription{{
OutputFilePrefix: "ResourceUsageSummary",
Parser: parseResourceUsageData,
}},
},
"APIServer": {
"DensityResponsiveness": []TestDescription{{
Expand Down Expand Up @@ -190,6 +194,38 @@ var (
OutputFilePrefix: "MetricsForE2E",
Parser: parseApiserverInitEventsCount,
}},
"Responsiveness": []TestDescription{{
OutputFilePrefix: "APIResponsiveness",
Parser: parsePerfData,
}},
"RequestCount": []TestDescription{{
OutputFilePrefix: "APIResponsiveness",
Parser: parseRequestCountData,
}},
"Responsiveness_Prometheus": []TestDescription{{
OutputFilePrefix: "APIResponsivenessPrometheus",
Parser: parsePerfData,
}},
"RequestCount_Prometheus": []TestDescription{{
OutputFilePrefix: "APIResponsivenessPrometheus",
Parser: parseRequestCountData,
}},
"Responsiveness_PrometheusSimple": []TestDescription{{
OutputFilePrefix: "APIResponsivenessPrometheus_simple",
Parser: parsePerfData,
}},
"RequestCount_PrometheusSimple": []TestDescription{{
OutputFilePrefix: "APIResponsivenessPrometheus_simple",
Parser: parseRequestCountData,
}},
"RequestCountByClient": []TestDescription{{
OutputFilePrefix: "MetricsForE2E",
Parser: parseApiserverRequestCount,
}},
"InitEventsCount": []TestDescription{{
OutputFilePrefix: "MetricsForE2E",
Parser: parseApiserverInitEventsCount,
}},
},
"Scheduler": {
"SchedulingLatency": []TestDescription{
Expand Down Expand Up @@ -385,6 +421,10 @@ var (
OutputFilePrefix: "DnsLookupLatency",
Parser: parsePerfData,
}},
"DNSLookupLatency": []TestDescription{{
OutputFilePrefix: "DnsLookupLatency",
Parser: parsePerfData,
}},
},
"SystemPodMetrics": {
"Load_SystemPodMetrics": []TestDescription{{
Expand All @@ -397,6 +437,10 @@ var (
OutputFilePrefix: "SystemPodMetrics",
Parser: parseSystemPodMetrics,
}},
"SystemPodMetrics": []TestDescription{{
OutputFilePrefix: "SystemPodMetrics",
Parser: parseSystemPodMetrics,
}},
},
}

Expand Down
2 changes: 1 addition & 1 deletion perfdash/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: perfdash
image: gcr.io/k8s-testimages/perfdash:2.32
image: gcr.io/k8s-testimages/perfdash:2.33
command:
- /perfdash
- --www=true
Expand Down
5 changes: 4 additions & 1 deletion perfdash/metrics-downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ func (g *Downloader) getJobData(wg *sync.WaitGroup, result JobToCategoryData, re
for categoryLabel, categoryMap := range tests.Descriptions {
for testLabel, testDescriptions := range categoryMap {
for _, testDescription := range testDescriptions {
filePrefix := fmt.Sprintf("%v_%v", testDescription.OutputFilePrefix, testDescription.Name)
filePrefix := testDescription.OutputFilePrefix
if testDescription.Name != "" {
filePrefix = fmt.Sprintf("%v_%v", filePrefix, testDescription.Name)
}
searchPrefix := g.artifactName(tests, filePrefix)
artifacts, err := g.MetricsBkt.ListFilesInBuild(job, buildNumber, searchPrefix)
if err != nil || len(artifacts) == 0 {
Expand Down

0 comments on commit 5e3b31e

Please sign in to comment.