From 5e528689e6e0460a0ed6d606fdecfb4c1d43bcef Mon Sep 17 00:00:00 2001 From: Andriy Dzikh Date: Mon, 26 Jul 2021 11:54:41 -0700 Subject: [PATCH] Remove duration chart. --- hack/jenkins/test-flake-chart/flake_chart.js | 40 -------------------- 1 file changed, 40 deletions(-) diff --git a/hack/jenkins/test-flake-chart/flake_chart.js b/hack/jenkins/test-flake-chart/flake_chart.js index 22e6775a08..a53b1732a6 100644 --- a/hack/jenkins/test-flake-chart/flake_chart.js +++ b/hack/jenkins/test-flake-chart/flake_chart.js @@ -564,46 +564,6 @@ function displayEnvironmentChart(testData, environmentName) { const chart = new google.visualization.LineChart(flakeRateContainer); chart.draw(data, options); } - { - const data = new google.visualization.DataTable(); - data.addColumn('date', 'Date'); - for (const name of recentTopFlakes) { - data.addColumn('number', `Duration - ${name}`); - data.addColumn({ type: 'string', role: 'tooltip', 'p': { 'html': true } }); - } - data.addRows( - orderedDates.map(dateTime => [new Date(dateTime)].concat(recentTopFlakes.map(name => { - const data = aggregatedRuns.get(name).get(dateTime); - return data !== undefined ? [ - data.duration, - `
- ${name}
- ${data.date.toString()}
- Average Duration: ${data.duration.toFixed(2)}s
- Hashes:
- ${data.commitHashes.map(({ hash, duration, runs }) => ` - ${hash} (Average Duration: ${duration.toFixed(2)}s [${runs} runs])`).join("
")} -
` - ] : [null, null]; - })).flat()) - ); - const options = { - title: `Average duration by day of top ${topFlakes} of recent test flakiness (past ${dateRange} days) on ${environmentName}`, - width: window.innerWidth, - height: window.innerHeight, - pointSize: 10, - pointShape: "circle", - vAxes: { - 0: { title: "Average Duration (s)" }, - }, - tooltip: { trigger: "selection", isHtml: true } - }; - const durationContainer = document.createElement("div"); - durationContainer.style.width = "100vw"; - durationContainer.style.height = "100vh"; - chartsContainer.appendChild(durationContainer); - const chart = new google.visualization.LineChart(durationContainer); - chart.draw(data, options); - } { // Group test runs by their date, then by their commit, and finally by test names. const testCountData = testData