cloud-bulldozer / performance-dashboards

Performance dashboards from the Perf & Scale team
Apache License 2.0
17 stars 38 forks source link

Include assets in build requirements #127

Closed rsevilla87 closed 1 month ago

rsevilla87 commented 1 month ago

Type of change

Description

If any of the assets is modified, make should rebuild the templates-

Related Tickets & Documents

Checklist before requesting a review

vishnuchalla commented 1 month ago

lgtm. Thanks

vishnuchalla commented 1 month ago

@rsevilla87 I think at present, when something is modified in assets we already see those changes reflected. Did you come across any issues recently?

rsevilla87 commented 1 month ago

@rsevilla87 I think at present, when something is modified in assets we already see those changes reflected. Did you come across any issues recently?

It doesn't track the changes as is now

rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library
rsevilla@wonderland ~/labs/performance-dashboards (master) $ echo > assets/kube-burner-report-mode/panels.libsonnet 
rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library
vishnuchalla commented 1 month ago

@rsevilla87 I think at present, when something is modified in assets we already see those changes reflected. Did you come across any issues recently?

It doesn't track the changes as is now

rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library
rsevilla@wonderland ~/labs/performance-dashboards (master) $ echo > assets/kube-burner-report-mode/panels.libsonnet 
rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library

Assets need not necessarily get rendered. They get compiled underneath and help generate the dashboard json for us. So they are being used underneath already if that is what your concern is.

rsevilla87 commented 1 month ago

@rsevilla87 I think at present, when something is modified in assets we already see those changes reflected. Did you come across any issues recently?

It doesn't track the changes as is now

rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library
rsevilla@wonderland ~/labs/performance-dashboards (master) $ echo > assets/kube-burner-report-mode/panels.libsonnet 
rsevilla@wonderland ~/labs/performance-dashboards (master) $ make v2 
bin/jsonnetfmt -i templates/CPT/ingress-perf-v2.jsonnet templates/CPT/k8s-netperf-v2.jsonnet templates/CPT/kube-burner-report-mode-v2.jsonnet templates/CPT/kube-burner-report-ocp-wrapper-v2.jsonnet templates/General/api-performance-overview-v2.jsonnet templates/General/cilium-k8s-perf-v2.jsonnet templates/General/etcd-on-cluster-dashboard-v2.jsonnet templates/General/hypershift-performance-v2.jsonnet templates/General/k8s-perf-v2.jsonnet templates/General/ocp-performance-v2.jsonnet templates/General/ovn-monitoring-v2.jsonnet templates/General/pgbench-dashboard-v2.jsonnet templates/General/uperf-v2.jsonnet templates/General/vegeta-wrapper-v2.jsonnet templates/General/ycsb-v2.jsonnet
Rendered the v2 dashboards with latest grafonnet library

Assets need not necessarily get rendered. They get compiled underneath and help generate the dashboard json for us. So they are being used underneath already if that is what your concern is.

I know, but, as a requirement to generate the json dashboards, they should be a requirement, so once any of these assets is modified make v2 will take action