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/mod_get_fallback failures due to unexpected 404s from proxy.golang.org #65459

Open
gopherbot opened this issue Feb 2, 2024 · 3 comments
Labels
GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. proxy.golang.org
Milestone

Comments

@gopherbot
Copy link

gopherbot commented Feb 2, 2024

#!watchflakes
post <- pkg == "cmd/go" && test ~ `TestScript` && `FAIL: TestScript/mod_get_fallback` && `stderr '.* https://golang\.org': unexpected success`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestScript/mod_get_fallback
=== PAUSE TestScript/mod_get_fallback
=== CONT  TestScript/mod_get_fallback
    script_test.go:132: 2024-01-31T21:07:29Z
    script_test.go:134: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-2626998490/tmpdir2658682677/mod_get_fallback3284986218
    script_test.go:156: 
        PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-2626998490/tmpdir2658682677/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info
        # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info: 200 OK (0.002s)
        go: added golang.org/x/mod v0.14.0
        go: added golang.org/x/tools v0.17.0
        > stderr '# get https://proxy.golang.org/golang.org/x/tools/@v/list'
        matched: # get https://proxy.golang.org/golang.org/x/tools/@v/list
        > ! stderr '# get https://golang.org'
        matched: # get https://golang.org/x/tools/cmd?go-get=1
    script_test.go:156: FAIL: testdata/script/mod_get_fallback.txt:11: stderr '# get https://golang.org': unexpected success
--- FAIL: TestScript/mod_get_fallback (73.98s)

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 Feb 2, 2024
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/mod_get_fallback"
2024-01-31 20:51 gotip-linux-amd64-longtest-race go@5c0d0929 cmd/go.TestScript/mod_get_fallback (log)
=== RUN   TestScript/mod_get_fallback
=== PAUSE TestScript/mod_get_fallback
=== CONT  TestScript/mod_get_fallback
    script_test.go:132: 2024-01-31T21:07:29Z
    script_test.go:134: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-2626998490/tmpdir2658682677/mod_get_fallback3284986218
    script_test.go:156: 
        PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-2626998490/tmpdir2658682677/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/home/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info
        # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info: 200 OK (0.002s)
        go: added golang.org/x/mod v0.14.0
        go: added golang.org/x/tools v0.17.0
        > stderr '# get https://proxy.golang.org/golang.org/x/tools/@v/list'
        matched: # get https://proxy.golang.org/golang.org/x/tools/@v/list
        > ! stderr '# get https://golang.org'
        matched: # get https://golang.org/x/tools/cmd?go-get=1
    script_test.go:156: FAIL: testdata/script/mod_get_fallback.txt:11: stderr '# get https://golang.org': unexpected success
--- FAIL: TestScript/mod_get_fallback (73.98s)

watchflakes

@bcmills bcmills added the GoCommand cmd/go label Feb 5, 2024
@bcmills bcmills added this to the Backlog milestone Feb 5, 2024
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test ~ `TestScript` && `FAIL: TestScript/mod_get_fallback`
2024-02-02 15:13 linux-amd64-longtest-race go@244ccf47 cmd/go.TestScript (log)
vcs-test.golang.org rerouted to http://127.0.0.1:38655
https://vcs-test.golang.org rerouted to https://127.0.0.1:36249
go test proxy running at GOPROXY=http://127.0.0.1:33443/mod
2024/02/02 16:03:19 http: TLS handshake error from 127.0.0.1:34554: read tcp 127.0.0.1:36249->127.0.0.1:34554: read: connection reset by peer
2024/02/02 16:03:19 http: TLS handshake error from 127.0.0.1:34548: EOF
2024/02/02 16:03:19 http: TLS handshake error from 127.0.0.1:34528: EOF
--- FAIL: TestScript (1.11s)
    --- FAIL: TestScript/mod_get_fallback (66.99s)
        script_test.go:132: 2024-02-02T16:03:51Z
        script_test.go:134: $WORK=/workdir/tmp/cmd-go-test-687207055/tmpdir1040938466/mod_get_fallback3961943255
...
            # get https://proxy.golang.org/golang.org/x/mod/@v/list: 200 OK (0.010s)
            # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info
            # get https://proxy.golang.org/golang.org/x/mod/@v/v0.14.0.info: 200 OK (0.003s)
            go: added golang.org/x/mod v0.14.0
            go: added golang.org/x/tools v0.17.0
            > stderr '# get https://proxy.golang.org/golang.org/x/tools/@v/list'
            matched: # get https://proxy.golang.org/golang.org/x/tools/@v/list
            > ! stderr '# get https://golang.org'
            matched: # get https://golang.org/x?go-get=1
        script_test.go:156: FAIL: testdata/script/mod_get_fallback.txt:11: stderr '# get https://golang.org': unexpected success

watchflakes

@bcmills
Copy link
Contributor

bcmills commented Mar 5, 2024

The root cause here seems to have been a spurious 404 response from the module proxy for the x/tools module. From the test log:

https://proxy.golang.org/golang.org/x/tools/@v/list: 404 Not Found (58.250s)

(FYI @suzmue)

@bcmills bcmills changed the title cmd/go: TestScript/mod_get_fallback failures cmd/go: TestScript/mod_get_fallback failures due to proxy 404s Mar 5, 2024
@bcmills bcmills changed the title cmd/go: TestScript/mod_get_fallback failures due to proxy 404s cmd/go: TestScript/mod_get_fallback failures due to unexpected 404s from proxy.golang.org Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. proxy.golang.org
Projects
Status: No status
Development

No branches or pull requests

2 participants