Go: x/build/cmd/release: TestScript/test_race_install_cgo and TestDWARF fail for -target=windows-amd64, and just TestDWARF fails for -target=windows-386

Created on 9 Jun 2020  ·  3Comments  ·  Source: golang/go

This is an issue for a specific test. See #39386 for the high level tracking issue.

This can be reproduced if your account has permissions needed to run releasebot (documented here) with:

$ release -target=windows-amd64 -version=go1.15beta1 -watch -rev=cacac8bdc5c93e7bc71df71981fdf32dded017bf
[...]
go test proxy running at GOPROXY=http://127.0.0.1:50986/mod
go proxy: no archive rsc.io v1.5.2: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.1.0: file does not exist
go proxy: no archive rsc.io v1.0.0: file does not exist
go proxy: no archive rsc.io v1.5.1: file does not exist
go proxy: no archive example.com/newcycle v1.0.0: file does not exist
go proxy: no archive test.go v1.0.0: file does not exist
go proxy: no archive rsc.io v1.5.2: file does not exist
--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/test_race_install_cgo (1.21s)
        script_test.go:210: 
            # Tests Issue #10500 (1.209s)
            > [!race] skip
            > [!darwin] ! stale cmd/cgo  # The darwin builders are spuriously stale; see #33598.
            FAIL: testdata\script\test_race_install_cgo.txt:5: cmd/cgo is unexpectedly stale


FAIL
FAIL    cmd/go  111.443s
[...]
--- FAIL: TestDWARF (1.62s)
    dwarf_test.go:39: cmd/link is stale - run go install cmd/link
FAIL
FAIL    cmd/link    19.749s
[...]
FAIL
go tool dist: Failed: exit status 1

And:

$ release -target=windows-386 -version=go1.15beta1 -watch -rev=cacac8bdc5c93e7bc71df71981fdf32dded017bf
[...]
--- FAIL: TestDWARF (1.28s)
    dwarf_test.go:39: cmd/link is stale - run go install cmd/link
FAIL
FAIL    cmd/link    25.084s
[...]
FAIL
go tool dist: Failed: exit status 1

@bcmills I've made you an assignee on this issue based on https://github.com/golang/go/issues/39386#issuecomment-641370552 but please let us know if you can't keep looking into this. Thank you.

/cc @toothrot @cagedmantis @andybons @golang/osp-team

Builders NeedsInvestigation release-blocker

All 3 comments

I am able to reproduce the error using run.bat, but not using ..\bin\go test cmd/link. That suggest to me that cmd/dist is performing some other modification to the environment that is breaking the test. I'm still trying to figure out what.

Oh, there's the trouble. The bogus “unset GOROOT_FINAL” logic from cmd/dist is for some reason duplicated in run.bat. Fix incoming.

https://github.com/golang/go/blob/b9332ed31aa4c2b73134a1b968761fc4c259ccac/src/run.bat#L38-L41

Change https://golang.org/cl/237359 mentions this issue: run.bat: do not unset GOROOT_FINAL before running tests

Was this page helpful?
0 / 5 - 0 ratings