-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/build: freebsd-amd64-race logs for x/tools marked as failing, but do not include error messages #49347
Comments
I think the process may be being killed due to memory exhaustion. The According to https://cloud.google.com/compute/vm-instance-pricing, Since the default GOMAXPROCS is based on the CPU count, and the default test parallelism is based on GOMAXPROCS, I suspect that the increased CPU-to-RAM ratio on the @findleyr, @golang/release: should we address this by adjusting the host shape, or by adding some kind of additional limiting to the test, or explicitly setting GOMAXPROCS on this builder (which would possibly reduce its testing throughput), or something else entirely? |
Comparing these two recent builds: We can see that the failure is not finishing all x/tools tests -- the last test reported is go/loader. |
If this is OOMing in go/packages (which we suspect may lead to this type of silent failure), then I can think of two possible sources:
Looking specifically at some of the go/packages tests, I am also curious about why the tests are so slow and memory intensive, based on what they are doing. e.g. TestLoadDifferentPatterns takes 3s, but that seems extremely slow based on my understanding of our type-checking speed and the scope of that test. |
I think so — well spotted!
That is an interesting theory! But that change was merged in July, and the first of these failures started in October. My leading theory is still machine shape (this builder has a very high CPU-to-RAM ratio), but either or both of those could be aggravating factors as well. |
This builder is still failing multiple times per day on @golang/release: could we try scaling this builder back to a more balanced configuration?
2022-01-31T20:30:41-492cf3a-41f485b/freebsd-amd64-race |
Change https://golang.org/cl/382058 mentions this issue: |
This reduces the freebsd-amd64-race builder to 4 vCPUs instead of 16, which should also reduce the default GOMAXPROCS and default -test.parallel settings on that builder. The theory is that by switching to a standard CPU-to-RAM ratio, we will avoid OOMing in memory-bound x/tools tests, which scale their parallelism by GOMAXPROCS rather than the machine's total RAM size. For golang/go#49347 Change-Id: I6960efc5636fef7d2e6197aee33212a7823f0970 Reviewed-on: https://go-review.googlesource.com/c/build/+/382058 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
(Note that the below regexp is not specific to freebsd or to x/tools. It is just looking for logs that contain only non-error lines.)
greplogs --dashboard -md -l -e '(?m)\A[^ ]+ at.*\n\n(?:(?:[:][:] Running .+\n\n)|(?:go: downloading [^ ]+ v[^ ]+\n)|(?:ok\s+[^ ]+\s+[^ ]+s\n)|(?:[?]\s+[^ ]+\s+\[no test files\]\n))+\z'
2021-11-04T07:05:31-84e69e7-2622235/freebsd-amd64-race
2021-11-03T23:49:25-84e69e7-fa19146/freebsd-amd64-race
2021-11-03T19:32:33-3b1a674-74f99d0/freebsd-amd64-race
2021-11-03T00:49:50-714668c-a4b2c57/freebsd-amd64-race
2021-11-02T23:44:58-714668c-a0f373c/freebsd-amd64-race
2021-11-02T16:40:04-058ed05-8c8baad/freebsd-amd64-race
2021-11-02T00:12:17-ee08195-81fea0b/freebsd-amd64-race
2021-10-28T16:54:58-c8ad2e1-6bd0e7f/freebsd-amd64-race
2021-10-26T01:18:46-f916b54-49fda9e/freebsd-amd64-race
2021-10-25T14:51:39-fc8b4ca-1ed060c/freebsd-amd64-race
2021-10-17T02:23:16-98f6e03-fa7d11a/freebsd-amd64-race
2021-10-16T16:27:40-98f6e03-640a49b/freebsd-amd64-race
2021-10-16T14:50:21-98f6e03-680caf1/freebsd-amd64-race
2021-10-15T20:34:15-98f6e03-1b072b3/freebsd-amd64-race
2021-10-15T14:09:01-98f6e03-1cbec68/freebsd-amd64-race
2021-10-15T02:45:22-288d0b3-2ac3bdf/freebsd-amd64-race
2021-10-15T02:02:50-ce04ca3-3da0ff8/freebsd-amd64-race
2021-10-15T01:35:56-ce04ca3-0c45ed0/freebsd-amd64-race
2021-10-14T23:32:09-3a269dc-9e8ed86/freebsd-amd64-race
2021-10-14T18:44:37-e69ba9d-a37bebc/freebsd-amd64-race
CC @golang/release
The text was updated successfully, but these errors were encountered: