golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.29k stars 17.7k forks source link

cmd/go: TestScript/fileline failures #70294

Open gopherbot opened 2 weeks ago

gopherbot commented 2 weeks ago
#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/fileline"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestScript/fileline
=== PAUSE TestScript/fileline
=== CONT  TestScript/fileline
    script_test.go:139: 2024-11-11T23:59:59Z
    script_test.go:141: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/fileline2287564947
    script_test.go:163: 
        PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/testbin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/cache/tools/bin:/Users/swarming/.swarming/w/ir/bbagent_utility_packages:/Users/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages:/Users/swarming/.swarming/w/ir/cipd_bin_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/Users/swarming/.swarming/w/ir/cache/cipd_client:/Users/swarming/.swarming/w/ir/cache/cipd_client/bin:/Users/swarming/.swarming/cipd_cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=amd64
...
        > ! go run ../../gopath/x/y/z/err.go
        [stderr]
        ../x/y/z/err.go:1:22: cannot find package "bar" in any of:
            /Users/swarming/.swarming/w/ir/x/w/goroot/src/bar (from $GOROOT)
            /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/fileline2287564947/gopath/src/bar (from $GOPATH)
        [exit status 1]
        > stderr ^..[\\/]x[\\/]y[\\/]z[\\/]err.go:
        matched: ../x/y/z/err.go:1:22: cannot find package "bar" in any of:
    script_test.go:405: go was invoked but no counters were incremented
--- FAIL: TestScript/fileline (0.60s)

watchflakes

gopherbot commented 2 weeks ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/fileline"
2024-11-11 23:49 gotip-darwin-amd64_11 go@f9159b11 cmd/go.TestScript/fileline (log) === RUN TestScript/fileline === PAUSE TestScript/fileline === CONT TestScript/fileline script_test.go:139: 2024-11-11T23:59:59Z script_test.go:141: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/fileline2287564947 script_test.go:163: PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/testbin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/x/w/goroot/bin:/Users/swarming/.swarming/w/ir/cache/tools/bin:/Users/swarming/.swarming/w/ir/bbagent_utility_packages:/Users/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages:/Users/swarming/.swarming/w/ir/cipd_bin_packages/bin:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3:/Users/swarming/.swarming/w/ir/cipd_bin_packages/cpython3/bin:/Users/swarming/.swarming/w/ir/cache/cipd_client:/Users/swarming/.swarming/w/ir/cache/cipd_client/bin:/Users/swarming/.swarming/cipd_cache/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin HOME=/no-home CCACHE_DISABLE=1 GOARCH=amd64 ... > ! go run ../../gopath/x/y/z/err.go [stderr] ../x/y/z/err.go:1:22: cannot find package "bar" in any of: /Users/swarming/.swarming/w/ir/x/w/goroot/src/bar (from $GOROOT) /Users/swarming/.swarming/w/ir/x/t/cmd-go-test-2262759160/tmpdir2484956214/fileline2287564947/gopath/src/bar (from $GOPATH) [exit status 1] > stderr ^..[\\/]x[\\/]y[\\/]z[\\/]err.go: matched: ../x/y/z/err.go:1:22: cannot find package "bar" in any of: script_test.go:405: go was invoked but no counters were incremented --- FAIL: TestScript/fileline (0.60s)

watchflakes