mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: remove unused plugin-ci report types (#21012)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user