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

x/tools/go/packages: empty result from go list -f "{{context.GOARCH}} {{context.Compiler}}" (netbsd) #71215

Open
gopherbot opened this issue Jan 10, 2025 · 5 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "golang.org/x/tools/go/packages" && test == "TestErrorMissingFile/Modules"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestErrorMissingFile/Modules
=== PAUSE TestErrorMissingFile/Modules
=== CONT  TestErrorMissingFile/Modules
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 38.170914ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,Module -compiled=true -test=false -export=true -deps=true -find=false -pgo=off -- missing.go
    invoke.go:205: 71.302184ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 54.686548ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,Module -compiled=true -test=false -export=true -deps=true -find=false -pgo=off -- missing.go
    packages_test.go:1669: could not parse GOARCH and Go compiler in format "<GOARCH> <compiler>":
        stdout: <<>>
        stderr: <<>>
--- FAIL: TestErrorMissingFile/Modules (0.34s)

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 Jan 10, 2025
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/tools/go/packages" && test == "TestErrorMissingFile/Modules"
2025-01-09 15:57 x_tools-gotip-netbsd-arm tools@ae303ab9 go@f5a89dff x/tools/go/packages.TestErrorMissingFile/Modules (log)
=== RUN   TestErrorMissingFile/Modules
=== PAUSE TestErrorMissingFile/Modules
=== CONT  TestErrorMissingFile/Modules
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 38.170914ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=off GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -f {{context.ReleaseTags}} -- unsafe
    invoke.go:205: starting GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,Module -compiled=true -test=false -export=true -deps=true -find=false -pgo=off -- missing.go
    invoke.go:205: 71.302184ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe
    invoke.go:205: 54.686548ms for GOROOT= GOPATH=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modcache GO111MODULE=on GOPROXY=file:///home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/modproxy PWD=/home/swarming/.swarming/w/ir/x/t/TestErrorMissingFile_Modules2887077684/fake go list -e -json=Name,ImportPath,Error,Dir,GoFiles,IgnoredGoFiles,IgnoredOtherFiles,CFiles,CgoFiles,CXXFiles,MFiles,HFiles,FFiles,SFiles,SwigFiles,SwigCXXFiles,SysoFiles,CompiledGoFiles,Export,DepOnly,Imports,ImportMap,Module -compiled=true -test=false -export=true -deps=true -find=false -pgo=off -- missing.go
    packages_test.go:1669: could not parse GOARCH and Go compiler in format "<GOARCH> <compiler>":
        stdout: <<>>
        stderr: <<>>
--- FAIL: TestErrorMissingFile/Modules (0.34s)

watchflakes

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Jan 10, 2025
@gopherbot gopherbot added this to the Unreleased milestone Jan 10, 2025
@adonovan adonovan changed the title x/tools/go/packages: TestErrorMissingFile/Modules failures x/tools/go/packages: empty result from go list -e -f {{context.ReleaseTags}} (netbsd) Jan 10, 2025
@adonovan
Copy link
Member

@matloob @samthanawalla

@adonovan
Copy link
Member

Possibly a symptom of #70492?

@matloob
Copy link
Contributor

matloob commented Jan 14, 2025

The error is from running go list -f "{{context.GOARCH}} {{context.Compiler}}" -- unsafe, rather than getting the release tags, right?

@matloob matloob changed the title x/tools/go/packages: empty result from go list -e -f {{context.ReleaseTags}} (netbsd) x/tools/go/packages: empty result from ggo list -f "{{context.GOARCH}} {{context.Compiler}}" (netbsd) Jan 14, 2025
@matloob matloob changed the title x/tools/go/packages: empty result from ggo list -f "{{context.GOARCH}} {{context.Compiler}}" (netbsd) x/tools/go/packages: empty result from go list -f "{{context.GOARCH}} {{context.Compiler}}" (netbsd) Jan 14, 2025
@matloob
Copy link
Contributor

matloob commented Jan 14, 2025

The confusing thing here is that it looks like the go command exited 0? I wonder how that could happen?

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. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
Status: No status
Development

No branches or pull requests

3 participants