From 116f656c082da88069d8e23bac0f126f37efa562 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 11 Sep 2024 12:33:55 +0400 Subject: [PATCH] Vcs - enable alerting for vcs slack channel from dev + fix of incorrect tabs naming --- dashboard/new-dashboard/src/routes.ts | 12 +-- .../setting/vcsSettings.go | 90 +++++++++---------- 2 files changed, 50 insertions(+), 52 deletions(-) diff --git a/dashboard/new-dashboard/src/routes.ts b/dashboard/new-dashboard/src/routes.ts index 61b920ad2..2c09f3e42 100644 --- a/dashboard/new-dashboard/src/routes.ts +++ b/dashboard/new-dashboard/src/routes.ts @@ -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)", }, ], }, diff --git a/pkg/degradation-detector/setting/vcsSettings.go b/pkg/degradation-detector/setting/vcsSettings.go index d527ed2e9..89f6a4287 100644 --- a/pkg/degradation-detector/setting/vcsSettings.go +++ b/pkg/degradation-detector/setting/vcsSettings.go @@ -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 }