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

cmd/go: TestScript failures #55169

Closed
gopherbot opened this issue Sep 20, 2022 · 2 comments
Closed

cmd/go: TestScript failures #55169

gopherbot opened this issue Sep 20, 2022 · 2 comments
Labels
FrozenDueToAge 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 == "cmd/go" && test == "TestScript"

Bug automatically created to track these flakes.

— 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 Sep 20, 2022
@gopherbot
Copy link
Author

gopherbot commented Sep 20, 2022

Found new matching flaky dashboard failures for:

#!watchflakes
post <- pkg == "cmd/go" && test == "TestScript"
2022-07-12 16:00 aix-ppc64 go@392548f1 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:33783/mod
--- FAIL: TestScript (0.02s)
    --- FAIL: TestScript/gccgo_link_c (0.22s)
        script_test.go:270: 
            # (2022-07-12T17:19:47Z)
            # Issue #7573
            # cmd/cgo: undefined reference when linking a C-library using gccgo (0.156s)
            > [!cgo] skip
            > [!exec:gccgo] skip
            > go build -n -compiler gccgo
            [stderr]
            ../../../../../../go/src/runtime/chan.go:21:2: cannot find package
            ../../../../../../go/src/syscall/exec_unix.go:13:2: cannot find package
            ../../../../../../go/src/runtime/alg.go:8:2: cannot find package
            ../../../../../../go/src/runtime/alg.go:9:2: cannot find package
            ../../../../../../go/src/runtime/mgcpacer.go:9:2: cannot find package
            ../../../../../../go/src/runtime/extern.go:208:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:11:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:12:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:13:2: cannot find package
            ../../../../../../go/src/errors/wrap.go:8:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:14:2: cannot find package
            ../../../../../../go/src/runtime/atomic_pointer.go:8:2: cannot find package
            ../../../../../../go/src/runtime/chan.go:23:2: cannot find package
            ../../../../../../go/src/runtime/cgocall.go:90:2: cannot find package
            [exit status 1]
            FAIL: testdata/script/gccgo_link_c.txt:7: unexpected command failure
2022-07-12 16:00 illumos-amd64 go@392548f1 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:60054/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/gccgo_link_c (0.07s)
        script_test.go:270: 
            # (2022-07-12T16:48:45Z)
            # Issue #7573
            # cmd/cgo: undefined reference when linking a C-library using gccgo (0.066s)
            > [!cgo] skip
            > [!exec:gccgo] skip
            > go build -n -compiler gccgo
            [stderr]
            ../../../../../../go/src/runtime/chan.go:21:2: cannot find package
            ../../../../../../go/src/runtime/error.go:7:8: cannot find package
            ../../../../../../go/src/runtime/alg.go:8:2: cannot find package
            ../../../../../../go/src/internal/reflectlite/swapper.go:8:2: cannot find package
            ../../../../../../go/src/runtime/mgcpacer.go:9:2: cannot find package
            ../../../../../../go/src/runtime/extern.go:208:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:11:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:12:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:13:2: cannot find package
            ../../../../../../go/src/internal/reflectlite/swapper.go:9:2: cannot find package
            ../../../../../../go/src/runtime/atomic_pointer.go:8:2: cannot find package
            ../../../../../../go/src/runtime/chan.go:23:2: cannot find package
            ../../../../../../go/src/runtime/cgocall.go:90:2: cannot find package
            [exit status 1]
            FAIL: testdata/script/gccgo_link_c.txt:7: unexpected command failure
2022-07-12 22:09 aix-ppc64 go@ad672e7c cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:37860/mod
--- FAIL: TestScript (0.02s)
    --- FAIL: TestScript/gccgo_link_c (0.25s)
        script_test.go:270: 
            # (2022-07-13T00:35:50Z)
            # Issue #7573
            # cmd/cgo: undefined reference when linking a C-library using gccgo (0.154s)
            > [!cgo] skip
            > [!exec:gccgo] skip
            > go build -n -compiler gccgo
            [stderr]
            ../../../../../../go/src/runtime/chan.go:21:2: cannot find package
            ../../../../../../go/src/syscall/exec_unix.go:13:2: cannot find package
            ../../../../../../go/src/runtime/alg.go:8:2: cannot find package
            ../../../../../../go/src/runtime/alg.go:9:2: cannot find package
            ../../../../../../go/src/runtime/mgcpacer.go:9:2: cannot find package
            ../../../../../../go/src/runtime/extern.go:208:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:11:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:12:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:13:2: cannot find package
            ../../../../../../go/src/errors/wrap.go:8:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:14:2: cannot find package
            ../../../../../../go/src/runtime/atomic_pointer.go:8:2: cannot find package
            ../../../../../../go/src/runtime/chan.go:23:2: cannot find package
            ../../../../../../go/src/runtime/cgocall.go:90:2: cannot find package
            [exit status 1]
            FAIL: testdata/script/gccgo_link_c.txt:7: unexpected command failure
2022-07-12 22:09 illumos-amd64 go@ad672e7c cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:58047/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/gccgo_link_c (0.08s)
        script_test.go:270: 
            # (2022-07-12T22:31:53Z)
            # Issue #7573
            # cmd/cgo: undefined reference when linking a C-library using gccgo (0.075s)
            > [!cgo] skip
            > [!exec:gccgo] skip
            > go build -n -compiler gccgo
            [stderr]
            ../../../../../../go/src/runtime/chan.go:21:2: cannot find package
            ../../../../../../go/src/runtime/error.go:7:8: cannot find package
            ../../../../../../go/src/runtime/alg.go:8:2: cannot find package
            ../../../../../../go/src/internal/reflectlite/swapper.go:8:2: cannot find package
            ../../../../../../go/src/runtime/mgcpacer.go:9:2: cannot find package
            ../../../../../../go/src/runtime/extern.go:208:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:11:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:12:2: cannot find package
            ../../../../../../go/src/syscall/syscall_unix.go:13:2: cannot find package
            ../../../../../../go/src/internal/reflectlite/swapper.go:9:2: cannot find package
            ../../../../../../go/src/runtime/atomic_pointer.go:8:2: cannot find package
            ../../../../../../go/src/runtime/chan.go:23:2: cannot find package
            ../../../../../../go/src/runtime/cgocall.go:90:2: cannot find package
            [exit status 1]
            FAIL: testdata/script/gccgo_link_c.txt:7: unexpected command failure
2022-07-15 14:20 linux-386-longtest go@4651ebf9 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:41667/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_gopkg_unstable (148.77s)
        script_test.go:270: 
            # (2022-07-15T14:42:06Z)
            > env GO111MODULE=on
            > cp go.mod.empty go.mod
            > go get gopkg.in/dummy.v2-unstable
            [stderr]
            go: downloading gopkg.in/dummy.v2-unstable v2.0.0
...
            	github.com/frankban/quicktest@v1.2.2 requires
            	github.com/google/go-cmp@v0.2.1-0.20190312032427-6f77996f0c42: invalid pseudo-version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in $WORK/gopath/pkg/mod/cache/vcs/8726c33a34f2c7112ff9a550395685eb57f08c9388dac85bc9e0dd90c8cb37bf: exit status 128:
            	14:42:23.531062 http.c:756              == Info: Couldn't find host github.com in the .netrc file; using defaults
            	14:42:23.536719 http.c:756              == Info:   Trying 140.82.114.4:443...
            	14:44:34.969068 http.c:756              == Info: connect to 140.82.114.4 port 443 failed: Connection timed out
            	14:44:34.969124 http.c:756              == Info: Failed to connect to github.com port 443: Connection timed out
            	14:44:34.969134 http.c:756              == Info: Closing connection 0
            	fatal: unable to access 'https://github.com/google/go-cmp/': Failed to connect to github.com port 443: Connection timed out
            [exit status 1]
            FAIL: testdata/script/mod_gopkg_unstable.txt:15: unexpected command failure
2022-07-22 17:25 linux-amd64-longtest go@12e00f6c cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:44511/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_pseudo_cache (10.17s)
        script_test.go:259: 
            # Regression test for golang.org/issue/27171: after resolving an older
            # pseudo-version of a commit, future resolution of that commit by hash should
            # choose the highest appropriate pseudo-version instead of the cached one. (10.171s)
            > go mod download -json golang.org/x/text@v0.0.0-20171215141712-a1b916ed6726
            [stdout]
            {
            	"Path": "golang.org/x/text",
            	"Version": "v0.0.0-20171215141712-a1b916ed6726",
            	"Error": "golang.org/x/text@v0.0.0-20171215141712-a1b916ed6726: unrecognized import path \"golang.org/x/text\": reading https://golang.org/x/text?go-get=1: 500 Internal Server Error"
            }
            [exit status 1]
            FAIL: testdata/script/mod_pseudo_cache.txt:12: unexpected command failure
2022-08-04 15:31 linux-386-longtest go@2b8a9a48 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:43685/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/govcs (18.93s)
        script_test.go:270: 
            # (2022-08-04T16:07:28Z)
            # GOVCS stops go get (0.152s)
            # public pattern works (0.022s)
            # private pattern works (0.126s)
            # other patterns work (for more patterns, see TestGOVCS) (0.253s)
            # bad patterns are reported (for more bad patterns, see TestGOVCSErrors) (0.115s)
...
            16:07:47.475437 http.c:715              => Send header:
            16:07:47.475482 http.c:756              == Info: We are completely uploaded and fine
            16:07:47.475692 http.c:756              == Info: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            16:07:47.475721 http.c:756              == Info: stopped the pause stream!
            16:07:47.475737 http.c:756              == Info: Connection #0 to host go.googlesource.com left intact
            error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            fatal: expected flush after ref listing
            package golang.org/x/text/language: exit status 128
            [exit status 1]
            FAIL: testdata/script/govcs.txt:153: unexpected command failure
2022-08-08 16:57 freebsd-amd64-race go@c3833a55 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:36901/mod
==================
WARNING: DATA RACE
Read at 0x000001427d60 by goroutine 275:
  cmd/go/internal/base.AtExit()
      /tmp/workdir/go/src/cmd/go/internal/base/base.go:110 +0x5d0
  cmd/go/internal/work.(*Builder).Init()
      /tmp/workdir/go/src/cmd/go/internal/work/action.go:273 +0x54c
  cmd/go_test.(*testScript).cmdCc()
      /tmp/workdir/go/src/cmd/go/script_test.go:560 +0x12f
...
--- FAIL: TestScript (0.04s)
    --- FAIL: TestScript/doc (2.67s)
        script_test.go:270: 
            # (2022-08-08T17:13:12Z)
            # go doc --help (0.149s)
            # go help doc (0.087s)
            # go doc <pkg> (0.309s)
            # go doc <pkg> <sym> (0.315s)
            # go doc <pkg> <sym> <method> (0.159s)
            # go doc <pkg>.<sym> (0.171s)
...
            # (2022-08-08T17:13:13Z)
            # Issue 35837: "go vet -<analyzer> <std package>" should use the requested
            # analyzers, not the default analyzers for 'go test'. (1.859s)
            # Issue 37030: "go vet <std package>" without other flags should disable the
            # unsafeptr check by default. (1.915s)
            # However, it should be enabled if requested explicitly. (1.683s)
            # -unreachable is disabled during test but on during plain vet. (1.801s)
            # A flag terminator should be allowed before the package list. (0.652s)

        testing.go:1319: race detected during execution of test
2022-08-09 18:32 linux-amd64-longtest go@beebd537 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:33027/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_replace_gopkgin (12.55s)
        script_test.go:270: 
            # (2022-08-09T18:56:44Z)
            # Regression test for golang.org/issue/34254:
            # a clone of gopkg.in/[…].vN should be replaceable by
            # a fork hosted at corp.example.com/[…]/vN,
            # even if there is an explicit go.mod file containing the
            # gopkg.in path. (0.000s)
...
            	18:56:48.755444 http.c:715              => Send header: content-length: 128
            	18:56:48.755447 http.c:715              => Send header:
            	18:56:48.755497 http.c:756              == Info: We are completely uploaded and fine
            	18:56:48.755704 http.c:756              == Info: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            	18:56:48.755717 http.c:756              == Info: stopped the pause stream!
            	18:56:48.755726 http.c:756              == Info: Connection #0 to host go.googlesource.com left intact
            	error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            	fatal: expected flush after ref listing
            [exit status 1]
            FAIL: testdata/script/mod_replace_gopkgin.txt:20: unexpected command failure
2022-08-10 18:52 linux-386-longtest go@8003efe1 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:36787/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/vendor_test_issue11864 (0.26s)
        script_test.go:270: 
            # (2022-08-10T19:30:00Z)
            > [!net] skip
            > [!exec:git] skip
            > env GO111MODULE=off
            > go get github.com/rsc/go-get-issue-11864
            [stderr]
...
    --- FAIL: TestScript/mod_gopkg_unstable (29.70s)
        script_test.go:270: 
            # (2022-08-10T19:31:04Z)
            > env GO111MODULE=on
            > cp go.mod.empty go.mod
            > go get gopkg.in/dummy.v2-unstable
            [stderr]
            go: downloading gopkg.in/dummy.v2-unstable v2.0.0
            go: added gopkg.in/dummy.v2-unstable v2.0.0
            > cp x.go.txt x.go
...
            	19:31:32.121447 http.c:715              => Send header: content-length: 49
            	19:31:32.121461 http.c:715              => Send header:
            	19:31:32.121508 http.c:756              == Info: We are completely uploaded and fine
            	19:31:32.121555 http.c:756              == Info: HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            	19:31:32.121568 http.c:756              == Info: stopped the pause stream!
            	19:31:32.121584 http.c:756              == Info: Connection #0 to host go.googlesource.com left intact
            	error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
            	fatal: expected flush after ref listing
            [exit status 1]
            FAIL: testdata/script/mod_gopkg_unstable.txt:16: unexpected command failure
2022-08-22 18:57 linux-386-longtest go@a74e5f58 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:37473/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/get_insecure_env (2.19s)
        script_test.go:282: 
            # (2022-08-22T19:30:35Z)
            # GOPATH: Set up (0.000s)
            # GOPATH: Try go get -d of HTTP-only repo (should fail). (0.084s)
            # GOPATH: Try again with invalid GOINSECURE (should fail). (0.052s)
            # GOPATH: Try with correct GOINSECURE (should succeed). (2.050s)
            > env GOINSECURE=insecure.go-get-issue-15410.appspot.com/pkg/p
            > go get -d insecure.go-get-issue-15410.appspot.com/pkg/p
            [stderr]
            package insecure.go-get-issue-15410.appspot.com/pkg/p: unrecognized import path "insecure.go-get-issue-15410.appspot.com/pkg/p": reading https://insecure.go-get-issue-15410.appspot.com/pkg?go-get=1: 503 Service Unavailable
            [exit status 1]
            FAIL: testdata/script/get_insecure_env.txt:16: unexpected command failure
2022-08-22 23:36 linux-386-longtest go@0f42e35f cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:33351/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/govcs (10.53s)
        script_test.go:282: 
            # (2022-08-23T00:09:02Z)
            # GOVCS stops go get (0.057s)
            # public pattern works (0.012s)
            # private pattern works (0.030s)
            # other patterns work (for more patterns, see TestGOVCS) (0.035s)
            # bad patterns are reported (for more bad patterns, see TestGOVCSErrors) (0.064s)
            # bad GOVCS patterns do not stop commands that do not need to check VCS (0.117s)
            # svn is disallowed by default (0.032s)
            # fossil is disallowed by default (0.041s)
            # bzr is disallowed by default (0.052s)
            # git is OK by default (10.088s)
            > env GOVCS=
            > env GONOSUMDB='*'
            > [net] [exec:git] [!short] go get rsc.io/sampler
            [stderr]
            go: unrecognized import path "rsc.io/sampler": https fetch: Get "https://rsc.io/sampler?go-get=1": read tcp 10.128.1.43:53588->216.239.32.21:443: read: connection reset by peer
            [exit status 1]
            FAIL: testdata/script/govcs.txt:70: unexpected command failure
2022-08-29 19:17 linux-amd64-longtest go@37cedd26 cmd/go.TestScript (log)
go test proxy running at GOPROXY=http://127.0.0.1:44621/mod
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_sumdb_golang (37.22s)
        script_test.go:259: 
            # Test default GOPROXY and GOSUMDB (0.214s)
            # Download direct from github. (20.030s)
            # Download from proxy.golang.org with go.sum entry already.
            # Use 'go list' instead of 'go get' since the latter may download extra go.mod
            # files not listed in go.sum. (2.045s)
            # Download again.
...
            > stderr github.com/rsc
            > go list -mod=mod -x rsc.io/quote  # Download module source.
            [stderr]
            go: downloading rsc.io/quote v1.5.2
            # get https://proxy.golang.org/rsc.io/quote/@v/v1.5.2.zip: 404 testing (0.000s)
            # get https://rsc.io/quote?go-get=1
            # get https://rsc.io/quote?go-get=1: Get "https://rsc.io/quote?go-get=1": read tcp 10.128.1.86:37196->216.239.34.21:443: read: connection reset by peer
            unrecognized import path "rsc.io/quote": https fetch: Get "https://rsc.io/quote?go-get=1": read tcp 10.128.1.86:37196->216.239.34.21:443: read: connection reset by peer
            [exit status 1]
            FAIL: testdata/script/mod_sumdb_golang.txt:74: unexpected command failure

watchflakes

@rsc
Copy link
Contributor

rsc commented Sep 20, 2022

These have stopped for now. We can refine the pattern if they continue.

@rsc rsc closed this as completed Sep 20, 2022
@gopherbot gopherbot changed the title cmd/go: flaky TestScript cmd/go:: TestScript failures Sep 20, 2022
@gopherbot gopherbot changed the title cmd/go:: TestScript failures cmd/go: TestScript failures Sep 20, 2022
@golang golang locked and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants