commit | b0a68d0868dc044754b872ea2320bba92daf6473 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Sat Feb 25 08:23:02 2023 -0500 |
committer | Jonathan Amsterdam <jba@google.com> | Mon Feb 27 16:22:56 2023 +0000 |
tree | 93b7c75e71cc817dcdb861974ca5203d59f75dc4 | |
parent | 182af9be4e554f09df521106407a03caa0904257 [diff] |
internal/worker: run "go clean" in sandbox directly We want to run "go clean" in the sandbox to remove cached files, so we don't run out of disk (which is memory in Cloud Run). Previously, we ran the vulncheck_sandbox binary, and it had code to run go clean. But we could just invoke "go" in the sandbox and pass it "clean" and the other arguments. This CL does that, and removes the now-dead code from vulncheck_sandbox. It also verifies that go clean is doing something by logging the disk usage before and after. Change-Id: Ieac31588d21e4db5f60933ed20ac88516c920eeb Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/471162 Reviewed-by: Maceo Thompson <maceothompson@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
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.