Hyang-Ah Hana Kim submitted the change with unreviewed changes![Open in Gerrit]()
Change information
Commit message:
godev/cmd/worker: skip empty partition in charts
When there is no data to draw, do not include in the charts data.
Previously, this resulted in adding null to chartdata > Programs >
Charts and caused the frontend javascript to throw an exception.
Update charts.ts to handle chart json files that contain null charts.
While we are here,
* remove the exception for cmd/go (which does not have version).
After CL 585198 go toolchain programs will produce counter files
with the program field filled with the go version.
* fix the program version handling since now toolchains will have
version strings that are not semver.
Fixes golang/go#67397
Change-Id: I0c037afbbfd931b70ada310dba9d67b49521ad94
Files:
- M godev/cmd/worker/main.go
- M godev/cmd/worker/main_test.go
- M godev/go.mod
- M godev/go.sum
- M internal/content/telemetrygodev/charts.ts
Change size: L
Delta: 5 files changed, 242 insertions(+), 44 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Robert Findley
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: telemetry
Gerrit-Branch: master
Gerrit-Change-Id: I0c037afbbfd931b70ada310dba9d67b49521ad94
Gerrit-Change-Number: 585479
Gerrit-PatchSet: 6