commit | c0d7737031423fcc1bea14f4bfc1a82ac5d806fd | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Thu Mar 16 10:17:39 2023 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Thu Mar 16 18:59:26 2023 +0000 |
tree | 1644ffec04fe3d6169644443c56edf7d10f3a8a9 | |
parent | 33b932f48d6d60e1c368619a5f086cefeafec07b [diff] |
internal/worker: check analysis work version Before running an analysis scan, check if the result is already in BigQuery. As with govulncheck, we do this by storing a WorkVersion for each analysis, keyed by module path, version, and binary. If the work version of the incoming work matches a stored one that is read at startup, then the scan can be skipped. This required some refactoring to download the binary earlier, so its hash can be computed before scanning starts. Change-Id: I24506c7669ed282224c987d0700123820dd64ab4 Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/476955 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com>
This repository contains code that serves pkg.go.dev/metrics.
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/pkgsite-metrics:” in the subject line, so it is easy to find.