commit | 087355d38e1b6d70eca72dc1b0482ce585788215 | [log] [tgz] |
---|---|---|
author | Rob Findley <rfindley@google.com> | Thu May 09 20:02:33 2024 +0000 |
committer | Gopher Robot <gobot@golang.org> | Fri May 10 14:38:26 2024 +0000 |
tree | a11e9427d133be7ea5fd06b201e8883040337f75 | |
parent | 889c202c7c056e4442df61a8ea5e5304a0b59840 [diff] |
internal/upload: don't skip all uploads on the first report failure A single failure of createReport should not prevent the upload of other reports. Fix this by logging and proceeding when there is a failure. To test this failure, and to generally make it easier to exercise upload bugs, make the following testing improvements: - Add regtest.RunProgAsOf, which is like RunProg but sets CounterTime (newly exposed) to a time in the past. - Add regtest.NewIncProgram for the common use case of a program that just increments counters and exits. - Export CreateTestUploadConfig and CreateTestUploadServer. - Have CreateTestUploadServer implement its own cleanup. - Add a testWriter to echo upload logs to t.Log. Together, these helpers make it relatively easy to write an ad-hoc upload test using only the public counter and upload APIs. For golang/go#65970 Change-Id: I9f54ad22a1f69cc6162ebe5628ad3287b89bbee1 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/584400 Auto-Submit: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This repository holds the Go Telemetry server code and libraries, used for hosting telemetry.go.dev and instrumenting Go toolchain programs with opt-in telemetry.
Warning: this repository is intended for use only in tools maintained by the Go team, including tools in the Go distribution and auxiliary tools like gopls or govulncheck. There are no compatibility guarantees for any of the packages here: public APIs will change in breaking ways as the telemetry integration is refined.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/telemetry:” in the subject line, so it is easy to find.
This repository uses eslint to format TS files, stylelint to format CSS files, and prettier to format TS, CSS, Markdown, and YAML files.
See the style guides:
It is encouraged that all TS and CSS code be run through formatters before submitting a change. However, it is not a strict requirement enforced by CI.
./npm install
./npm run all