golang / go

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

cmd/go: TestScript/build_cwd_newline failures #66971

Open gopherbot opened 6 months ago

gopherbot commented 6 months ago
#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestScript/build_cwd_newline
=== PAUSE TestScript/build_cwd_newline
=== CONT  TestScript/build_cwd_newline
    script_test.go:136: 2024-04-22T15:43:03Z
    script_test.go:138: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/build_cwd_newline2817444750
    script_test.go:160: 
        PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/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
...
        > [GOOS:plan9] skip 'filesystem disallows \n in paths'
        [condition not met]
        # If the directory path containing a package to be built includes a newline,
        # the go command should refuse to even try to build the package. (0.002s)
        > env DIR=$WORK${/}${newline}'package main'${newline}'func main() { panic("uh-oh")'${newline}'/*'
        > mkdir $DIR
        > cd $DIR
        > exec pwd
    script_test.go:160: FAIL: testdata/script/build_cwd_newline.txt:11: exec pwd: exec: "pwd": executable file not found in $PATH
--- FAIL: TestScript/build_cwd_newline (0.01s)

watchflakes

gopherbot commented 6 months ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/build_cwd_newline"
2024-04-22 15:29 gotip-darwin-amd64-nocgo go@734fd7a9 cmd/go.TestScript/build_cwd_newline (log) === RUN TestScript/build_cwd_newline === PAUSE TestScript/build_cwd_newline === CONT TestScript/build_cwd_newline script_test.go:136: 2024-04-22T15:43:03Z script_test.go:138: $WORK=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/build_cwd_newline2817444750 script_test.go:160: PATH=/Users/swarming/.swarming/w/ir/x/t/cmd-go-test-1388592555/tmpdir4131018923/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 ... > [GOOS:plan9] skip 'filesystem disallows \n in paths' [condition not met] # If the directory path containing a package to be built includes a newline, # the go command should refuse to even try to build the package. (0.002s) > env DIR=$WORK${/}${newline}'package main'${newline}'func main() { panic("uh-oh")'${newline}'/*' > mkdir $DIR > cd $DIR > exec pwd script_test.go:160: FAIL: testdata/script/build_cwd_newline.txt:11: exec pwd: exec: "pwd": executable file not found in $PATH --- FAIL: TestScript/build_cwd_newline (0.01s)

watchflakes