Toolkit: remove unused plugin-ci report types (#21012)

This commit is contained in:
Ryan McKinley
2019-12-10 16:06:41 -08:00
committed by GitHub
parent 72ee1b9a94
commit 23510f95a3
2 changed files with 2 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
import { PluginMeta, PluginBuildInfo, DataFrame, KeyValue } from '@grafana/data';
import { PluginMeta, KeyValue } from '@grafana/data';
export interface PluginPackageDetails {
plugin: ZipFileInfo;
@@ -54,44 +54,6 @@ export interface TestResultsInfo {
screenshots: string[];
}
// Saved at the folder level
export interface PluginHistory {
last: {
info: PluginDevInfo;
report: PluginBuildReport;
};
size: DataFrame[]; // New frame for each package
coverage: DataFrame[]; // New frame for each job
timing: DataFrame[]; // New frame for each job/workflow
}
export interface PluginDevInfo {
pluginId: string;
name: string;
logo?: string; // usually logo.svg or logo.png
build: PluginBuildInfo;
version: string;
}
export interface DevSummary {
[key: string]: PluginDevInfo;
}
export interface PluginDevSummary {
branch: DevSummary;
pr: DevSummary;
}
export const defaultPluginHistory: PluginHistory = {
last: {
info: {} as PluginDevInfo,
report: {} as PluginBuildReport,
},
size: [],
coverage: [],
timing: [],
};
export interface CountAndSize {
count: number;
bytes: number;

View File

@@ -2,7 +2,7 @@ import execa from 'execa';
import path from 'path';
import fs from 'fs';
import { KeyValue } from '@grafana/data';
import { PluginDevInfo, ExtensionSize, ZipFileInfo, PluginBuildReport, PluginHistory } from './types';
import { ExtensionSize, ZipFileInfo } from './types';
const md5File = require('md5-file');
@@ -92,16 +92,3 @@ export function findImagesInFolder(dir: string, prefix = '', append?: string[]):
return imgs;
}
export function appendPluginHistory(report: PluginBuildReport, info: PluginDevInfo, history: PluginHistory) {
history.last = {
info,
report,
};
if (!history.size) {
history.size = [];
}
console.log('TODO, append build stats to the last one');
}