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: TestScript/cgo_long_cmd failures #69685

Open
gopherbot opened this issue Sep 27, 2024 · 1 comment
Open

cmd/go: TestScript/cgo_long_cmd failures #69685

gopherbot opened this issue Sep 27, 2024 · 1 comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.

Comments

@gopherbot
Copy link
Contributor

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/cgo_long_cmd"

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestScript/cgo_long_cmd
=== PAUSE TestScript/cgo_long_cmd
=== CONT  TestScript/cgo_long_cmd
    script_test.go:139: 2024-09-27T19:29:36Z
    script_test.go:141: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3329550913/tmpdir263970715/cgo_long_cmd2600984664
    script_test.go:163: 
        PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3329550913/tmpdir263970715/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=ppc64le
...
        [condition not met]
        # Generate a file with a very long #cgo LDFLAGS line.
        # This used to cause "go build" to fail with "argument list too long". (0.336s)
        > go generate
        # Build with the generated file. (0.281s)
        > go build
        [stderr]
        cgolongcmd: invalid flag in #cgo LDFLAGS: 
    script_test.go:163: FAIL: testdata/script/cgo_long_cmd.txt:12: go build: exit status 1
--- FAIL: TestScript/cgo_long_cmd (0.62s)

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 Sep 27, 2024
@gopherbot
Copy link
Contributor Author

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "cmd/go" && test == "TestScript/cgo_long_cmd"
2024-09-27 19:20 gotip-linux-ppc64le_power10 go@62452bed cmd/go.TestScript/cgo_long_cmd (log)
=== RUN   TestScript/cgo_long_cmd
=== PAUSE TestScript/cgo_long_cmd
=== CONT  TestScript/cgo_long_cmd
    script_test.go:139: 2024-09-27T19:29:36Z
    script_test.go:141: $WORK=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3329550913/tmpdir263970715/cgo_long_cmd2600984664
    script_test.go:163: 
        PATH=/home/swarming/.swarming/w/ir/x/t/cmd-go-test-3329550913/tmpdir263970715/testbin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/x/w/goroot/bin:/home/swarming/.swarming/w/ir/cache/tools/bin:/home/swarming/.swarming/w/ir/bbagent_utility_packages:/home/swarming/.swarming/w/ir/bbagent_utility_packages/bin:/home/swarming/.swarming/w/ir/cipd_bin_packages:/home/swarming/.swarming/w/ir/cipd_bin_packages/bin:/home/swarming/.swarming/w/ir/cache/cipd_client:/home/swarming/.swarming/w/ir/cache/cipd_client/bin:/home/swarming/.swarming/cipd_cache/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
        HOME=/no-home
        CCACHE_DISABLE=1
        GOARCH=ppc64le
...
        [condition not met]
        # Generate a file with a very long #cgo LDFLAGS line.
        # This used to cause "go build" to fail with "argument list too long". (0.336s)
        > go generate
        # Build with the generated file. (0.281s)
        > go build
        [stderr]
        cgolongcmd: invalid flag in #cgo LDFLAGS: 
    script_test.go:163: FAIL: testdata/script/cgo_long_cmd.txt:12: go build: exit status 1
--- FAIL: TestScript/cgo_long_cmd (0.62s)

watchflakes

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.
Projects
Status: No status
Development

No branches or pull requests

1 participant