commit | f48c80bd79b2b9bbe9e92392128a67b8b49dc014 | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Mon Feb 26 13:54:37 2024 -0500 |
committer | Michael Matloob <matloob@golang.org> | Wed Feb 28 15:55:12 2024 +0000 |
tree | 146efe030d8ba55798a0a20f078b3a29e6a91f8e | |
parent | 957559d9b86c2a65de2f2ecd54c848b209a23044 [diff] |
telemetry: in Start, run upload.Run at most once a day This change will create a token file to acquire a token to limit uploading to at most once a day: before upload is run, we'll check to see if an upload token file already exists. If it doesn't, or it's been a day since the existing file has been created, it's been a day since the last upload.Run was attempted so we can run it again. If it doesn't, we'll skip running upload.Run. We don't delete the token files when we're done with the upload, but instead only delete them when we want to acquire a new lock so that the existence of the file and its modification time is a signal of the last time uploading was run. The token acquiring code is based on acquireLockFile in x/tools/gopls/internal/server/prompt.go. For golang/go#65500 Change-Id: Ie31c1f351e2d31a016fd2ad79b29784e6631c564 Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/567075 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com>
This repository holds the Go Telemetry server code and libraries.
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
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.