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: TestGoBuildUmask Failed in Github code space #62724

Closed
qiulaidongfeng opened this issue Sep 19, 2023 · 1 comment
Closed

cmd/go: TestGoBuildUmask Failed in Github code space #62724

qiulaidongfeng opened this issue Sep 19, 2023 · 1 comment
Assignees
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@qiulaidongfeng
Copy link
Contributor

What version of Go are you using (go version)?

$ go version
tip

Does this issue reproduce with the latest release?

yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/root/.go/current'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/root/.go/current/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='devel go1.22-ee788dba Sat Sep 9 01:48:44 2023 +0000'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build913665288=/tmp/go-build -gno-record-gcc-switches'

What did you do?

Fork golang/go in github, see https://docs.github.com/en/codespaces/developing-in-codespaces/creating-a-codespace-for-a-repository Create a code space.
See also https://docs.github.com/en/codespaces/developing-in-codespaces/opening-an-existing-codespace Open the code space.
cd src
./all.bash

What did you expect to see?

Test passed.

What did you see instead?

--- FAIL: TestGoBuildUmask (0.20s)
go_unix_test.go:34: running testgo [build -o /tmp/cmd-go-test-2516507273/gotest427460297/x /tmp/cmd-go-test-2516507273/gotest427460297/x.go]
go_unix_test.go:40: wrote x with mode=-rwxr-xrw-, wanted no 0077 bits
vcs-test.golang.org rerouted to http://127.0.0.1:46227
https://vcs-test.golang.org rerouted to https://127.0.0.1:35865
go test proxy running at GOPROXY=http://127.0.0.1:45935/mod
2023/09/19 11:45:14 http: TLS handshake error from 127.0.0.1:53824: EOF
FAIL
FAIL cmd/go 82.097s

@bcmills bcmills added Testing An issue that has been verified to require only test changes, not just a test failure. GoCommand cmd/go NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Sep 19, 2023
@bcmills bcmills self-assigned this Sep 19, 2023
@bcmills bcmills added the NeedsFix The path to resolution is known, but the work has not been done. label Sep 19, 2023
@bcmills bcmills added this to the Go1.22 milestone Sep 19, 2023
@gopherbot gopherbot removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 19, 2023
@gopherbot
Copy link

Change https://go.dev/cl/529495 mentions this issue: cmd/go: in TestGoBuildUmask, create a file using os.WriteFile as a control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GoCommand cmd/go NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

3 participants