Quick and dirty summing of coverage report generated by the Istanbul npm package.
Helps understand overall groupings percentage covered. Works with OpenShift Console.
- Checkout and navigate to
frontend/ yarn coverage
| diff --git frontend/packages/console-shared/src/components/dropdown/ResourceDropdown.tsx frontend/packages/console-shared/src/components/dropdown/ResourceDropdown.tsx | |
| index 9514e4632..965f0c66a 100644 | |
| --- frontend/packages/console-shared/src/components/dropdown/ResourceDropdown.tsx | |
| +++ frontend/packages/console-shared/src/components/dropdown/ResourceDropdown.tsx | |
| @@ -62,6 +62,7 @@ interface ResourceDropdownProps { | |
| actionTitle: string; | |
| actionKey: string; | |
| }[]; | |
| + customResourceKey?: (dataSelectorValue: any, resource: K8sResourceKind) => string; | |
| dataSelector: string[] | number[] | symbol[]; |
| diff --git a/dynamic-demo-plugin/console-extensions.json b/dynamic-demo-plugin/console-extensions.json | |
| index 57ce393b66..e680f9c558 100644 | |
| --- a/dynamic-demo-plugin/console-extensions.json | |
| +++ b/dynamic-demo-plugin/console-extensions.json | |
| @@ -7,6 +7,78 @@ | |
| * 'default' export). Only the plugin's exposed modules may be used in code references. | |
| */ | |
| [ | |
| + { | |
| + "type": "console.dashboards/overview/detail/item", |
| import * as React from 'react'; | |
| export enum ModelServingMetricType { | |
| ENDPOINT_HEALTH = 'end-point-health', | |
| INFERENCE_PERFORMANCE = 'inference-performance', | |
| AVG_RESPONSE_TIME = 'avg-response-time', | |
| REQUEST_COUNT = 'request-count', | |
| FAILED_REQUEST_COUNT = 'failed-request-count', | |
| } |
| apiVersion: tekton.dev/v1beta1 | |
| kind: PipelineRun | |
| metadata: | |
| name: conditional-execution-pipeline | |
| annotations: | |
| tekton.dev/output_artifacts: '{"flip-coin": [{"key": "artifacts/$PIPELINERUN/flip-coin/Output.tgz", | |
| "name": "flip-coin-Output", "path": "/tmp/outputs/Output/data"}], "random-num": | |
| [{"key": "artifacts/$PIPELINERUN/random-num/Output.tgz", "name": "random-num-Output", | |
| "path": "/tmp/outputs/Output/data"}], "random-num-2": [{"key": "artifacts/$PIPELINERUN/random-num-2/Output.tgz", | |
| "name": "random-num-2-Output", "path": "/tmp/outputs/Output/data"}]}' |
| apiVersion: dashboard.opendatahub.io/v1alpha | |
| kind: AcceleratorProfile | |
| metadata: | |
| name: hpu-profile | |
| spec: | |
| description: gaudi device | |
| displayName: Habana HPU | |
| enabled: true | |
| identifier: habana.ai/gaudi | |
| tolerations: |