Skip to content
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

net/http: TestTLSServer failures #59884

Open
gopherbot opened this issue Apr 28, 2023 · 3 comments
Open

net/http: TestTLSServer failures #59884

gopherbot opened this issue Apr 28, 2023 · 3 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link

#!watchflakes
post <- pkg == "net/http" && test == "TestTLSServer"

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestTLSServer (0.00s)
    --- FAIL: TestTLSServer/h2 (0.05s)
        testing.go:1465: race detected during execution of test
    --- FAIL: TestTLSServer/https1 (0.07s)
        testing.go:1465: race detected during execution of test

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 28, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "net/http" && test == "TestTLSServer"
2023-04-28 01:33 linux-amd64-race go@71ad46cd net/http.TestTLSServer (log)
--- FAIL: TestTLSServer (0.00s)
    --- FAIL: TestTLSServer/h2 (0.05s)
        testing.go:1465: race detected during execution of test
    --- FAIL: TestTLSServer/https1 (0.07s)
        testing.go:1465: race detected during execution of test

watchflakes

@gopherbot
Copy link
Author

Change https://go.dev/cl/490255 mentions this issue: net/http: avoid leaking the writing goroutine

gopherbot pushed a commit that referenced this issue May 2, 2023
The test will wait for all goroutines.
A race can occur if the writing goroutine uses the Log after the test exits.

For #58264
For #59883
For #59884

Change-Id: I9b8ec7c9d024ff74b922b69efa438be5a4fa3483
Reviewed-on: https://go-review.googlesource.com/c/go/+/490255
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "net/http" && test == "TestTLSServer"
2024-03-21 20:26 linux-s390x-ibm-race go@5d29578f net/http.TestTLSServer (log)
==================
WARNING: DATA RACE
Read at 0x00c00031ad43 by goroutine 11157:
  testing.(*common).logDepth()
      /data/golang/workdir/go/src/testing/testing.go:1025 +0x5ad
  testing.(*common).log()
      /data/golang/workdir/go/src/testing/testing.go:1012 +0xb5
  testing.(*common).Logf()
      /data/golang/workdir/go/src/testing/testing.go:1063 +0x62
  net/http_test.testServerNoWriteTimeout.func1()
...
  net/http_test.TestMain()
      /data/golang/workdir/go/src/net/http/main_test.go:24 +0x87
  main.main()
      _testmain.go:1225 +0x35d
==================
--- FAIL: TestTLSServer (0.00s)
    --- FAIL: TestTLSServer/h2 (0.04s)
        testing.go:1413: race detected during execution of test
    --- FAIL: TestTLSServer/https1 (0.03s)
        testing.go:1413: race detected during execution of test

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
Status: No status
Development

No branches or pull requests

1 participant