]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: skip TestSegv/SegvInCgo failures with "runtime: unknown pc"
authorBryan C. Mills <bcmills@google.com>
Fri, 11 Feb 2022 16:32:11 +0000 (11:32 -0500)
committerBryan Mills <bcmills@google.com>
Fri, 11 Feb 2022 19:36:36 +0000 (19:36 +0000)
This test has failed on four different builders in the past month.
Moreover, because every Go program depends on "runtime", it is likely
to be run any time a user runs 'go test all' in their own program.

Since the test is known to be flaky, let's skip it to avoid
introducing testing noise until someone has time to investigate. It
seems like we have enough samples in the builder logs to at least
start with.

For #50979

Change-Id: I9748a82fbb97d4ed95d6f474427e5aa6ecdb023d
Reviewed-on: https://go-review.googlesource.com/c/go/+/385154
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/runtime/crash_cgo_test.go

index 8c250f72d658e8c50d0ceb0aead3bddd322ba155..c9c9406a15a48d09773aedf6e2b4ffdd2e1e8c92 100644 (file)
@@ -626,13 +626,11 @@ func TestSegv(t *testing.T) {
                                        // a VDSO call via asmcgocall.
                                        testenv.SkipFlaky(t, 50504)
                                }
-                               if testenv.Builder() == "linux-mips64le-mengzhuo" && strings.Contains(got, "runtime: unknown pc") {
-                                       // Runtime sometimes throw "unknown pc" when generating the traceback.
-                                       // Curiously, that doesn't seem to happen on the linux-mips64le-rtrk
-                                       // builder.
-                                       testenv.SkipFlaky(t, 50605)
-                               }
                        }
+                       if test == "SegvInCgo" && strings.Contains(got, "runtime: unknown pc") {
+                               testenv.SkipFlaky(t, 50979)
+                       }
+
                        nowant := "runtime: "
                        if strings.Contains(got, nowant) {
                                t.Errorf("unexpectedly saw %q in output", nowant)