Skip to content

Commit

Permalink
Vcs - enable alerting for vcs slack channel from dev + fix of incorre…
Browse files Browse the repository at this point in the history
…ct tabs naming
  • Loading branch information
Alexey committed Sep 11, 2024
1 parent 6b8fdeb commit 116f656
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 52 deletions.
12 changes: 6 additions & 6 deletions dashboard/new-dashboard/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,27 +507,27 @@ const IDEA: Product = {
tabs: [
{
url: ROUTES.VcsIdeaDashboardDev,
label: "Performance dashboard idea project DevServer (obsolete)",
label: "Performance dashboard idea project DevServer",
},
{
url: ROUTES.VcsSpaceDashboardDev,
label: "Performance dashboard space project DevServer (obsolete)",
label: "Performance dashboard space project DevServer",
},
{
url: ROUTES.VcsStarterDashboardDev,
label: "Performance dashboard starter project DevServer (obsolete)",
label: "Performance dashboard starter project DevServer",
},
{
url: ROUTES.VcsIdeaDashboard,
label: "Performance dashboard idea project",
label: "Performance dashboard idea project (obsolete)",
},
{
url: ROUTES.VcsSpaceDashboard,
label: "Performance dashboard space project",
label: "Performance dashboard space project (obsolete)",
},
{
url: ROUTES.VcsStarterDashboard,
label: "Performance dashboard starter project",
label: "Performance dashboard starter project (obsolete)",
},
],
},
Expand Down
90 changes: 44 additions & 46 deletions pkg/degradation-detector/setting/vcsSettings.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,54 @@ package setting
import detector "github.com/JetBrains/ij-perf-report-aggregator/pkg/degradation-detector"

type testMetricDef struct {
test []string
metric []string
test []string
metric []string
}

func GenerateVCSSettings() []detector.PerformanceSettings {
testMetrics := []testMetricDef{
{test: []string{"intellij_clone_specific_commit/gitLogIndexing", "intellij_sources/gitLogIndexing"}, metric: []string{"vcs-log-indexing"}},
{test: []string{"intellij_sources/EditorImpl-phm",
"intellij_sources/EditorImpl-noindex",
"intellij_sources/showFileHistory/EditorImpl",
"intellij_sources/showFileHistory/EditorImpl-instant-git"}, metric: []string{"showFileHistory", "showFirstPack"}},
{test: []string{"intellij_sources/filterVcsLogTab-phm", "intellij_sources/filterVcsLogTab-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/filterVcsLogTab-path-phm", "intellij_sources/filterVcsLogTab-path-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/filterVcsLogTab-date-phm", "intellij_sources/filterVcsLogTab-date-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/git-commit"}, metric: []string{"git-commit#fusCommitDuration", "vcs-log-refreshing"}},
{test: []string{"intellij_sources/git-branch-widget", "vcs_100k_branches/git-branch-widget"}, metric: []string{"gitShowBranchWidget"}},
{test: []string{"intellij_sources/vcs-annotate-instant-git", "intellij_sources/vcs-annotate"}, metric: []string{"showFileAnnotation", "git-open-annotation"}},
}
testMetrics := []testMetricDef{
{test: []string{"intellij_clone_specific_commit/gitLogIndexing", "intellij_sources/gitLogIndexing"}, metric: []string{"vcs-log-indexing"}},
{test: []string{"intellij_sources/EditorImpl-phm",
"intellij_sources/EditorImpl-noindex",
"intellij_sources/showFileHistory/EditorImpl",
"intellij_sources/showFileHistory/EditorImpl-instant-git"}, metric: []string{"showFileHistory", "showFirstPack"}},
{test: []string{"intellij_sources/filterVcsLogTab-phm", "intellij_sources/filterVcsLogTab-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/filterVcsLogTab-path-phm", "intellij_sources/filterVcsLogTab-path-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/filterVcsLogTab-date-phm", "intellij_sources/filterVcsLogTab-date-noindex"}, metric: []string{"vcs-log-filtering"}},
{test: []string{"intellij_sources/git-commit"}, metric: []string{"git-commit#fusCommitDuration", "vcs-log-refreshing"}},
{test: []string{"intellij_sources/git-branch-widget", "vcs_100k_branches/git-branch-widget"}, metric: []string{"gitShowBranchWidget"}},
{test: []string{"intellij_sources/vcs-annotate-instant-git", "intellij_sources/vcs-annotate"}, metric: []string{"showFileAnnotation", "git-open-annotation"}},
}

machines := []string{"intellij-linux-performance-aws-%",
// uncomment latter to cover all os
// "intellij-windows-performance-aws-%",
// "intellij-macos-perf-eqx-%",
}
machines := []string{"intellij-linux-performance-aws-%"}// uncomment latter to cover all os
// "intellij-windows-performance-aws-%",
// "intellij-macos-perf-eqx-%",

settings := make([]detector.PerformanceSettings, 0, 100)
for _, testMetric := range testMetrics {
for _, test := range testMetric.test {
for _, metric := range testMetric.metric {
for _, machine := range machines {
settings = append(settings, detector.PerformanceSettings{
Db: "perfint",
Table: "idea",
Machine: machine,
Project: test,
Metric: metric,
Branch: "master",
SlackSettings: detector.SlackSettings{
Channel: "vcs-perf-tests",
ProductLink: "intellij",
},
AnalysisSettings: detector.AnalysisSettings{
MinimumSegmentLength: 7,
MedianDifferenceThreshold: 10,
},
})
}
}
}
settings := make([]detector.PerformanceSettings, 0, 100)
for _, testMetric := range testMetrics {
for _, test := range testMetric.test {
for _, metric := range testMetric.metric {
for _, machine := range machines {
settings = append(settings, detector.PerformanceSettings{
Db: "perfintDev",
Table: "idea",
Machine: machine,
Project: test,
Metric: metric,
Branch: "master",
SlackSettings: detector.SlackSettings{
Channel: "vcs-perf-tests",
ProductLink: "intellij",
},
AnalysisSettings: detector.AnalysisSettings{
MinimumSegmentLength: 7,
MedianDifferenceThreshold: 10,
},
})
}
}
}

}
return settings
}
return settings
}

0 comments on commit 116f656

Please sign in to comment.