From: Bryan C. Mills Date: Tue, 8 Feb 2022 20:24:33 +0000 (-0500) Subject: net/http/pprof: skip TestDeltaProfile on all arm and arm64 architectures X-Git-Tag: go1.19beta1~1119 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4469557974a95b1f4bc1c700aee6779a0f15d22e;p=gostls13.git net/http/pprof: skip TestDeltaProfile on all arm and arm64 architectures Given that we have seen failures with the same failure mode on both openbsd/arm and android/arm64, it seems likely that the underlying bug affects at least all ARM-based architectures. It appears that either these architectures are not able to sample at the frequency expected by the test, or the samples are for some reason being dropped. For #50218 Change-Id: I42a6c8ecda57448f8068e8facb42a4a2cecbbb37 Reviewed-on: https://go-review.googlesource.com/c/go/+/383997 Trust: Bryan Mills Run-TryBot: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui --- diff --git a/src/net/http/pprof/pprof_test.go b/src/net/http/pprof/pprof_test.go index 1a4d653a62..f82ad45bf6 100644 --- a/src/net/http/pprof/pprof_test.go +++ b/src/net/http/pprof/pprof_test.go @@ -153,7 +153,7 @@ func mutexHog(duration time.Duration, hogger func(mu1, mu2 *sync.Mutex, start ti } func TestDeltaProfile(t *testing.T) { - if runtime.GOOS == "openbsd" && runtime.GOARCH == "arm" { + if strings.HasPrefix(runtime.GOARCH, "arm") { testenv.SkipFlaky(t, 50218) }