Skip to content

cmd/dist: all.bash does not fail when run.bash fails #79535

Description

@rsc

I got tired of waiting for all.bash to finish the tests (and one had failed already anyway) so I typed ^C but then it still printed the final banner and exited with a successful status. If the tests are interrupted then dist test should exit non-zero and then all.bash should also exit non-zero. Looking at the scripts I don't see what is wrong. But this is a critical thing to fix. If tests fail then all.bash must not succeed!

ok  	net/internal/socktest	1.492s
ok  	net/mail	1.649s
ok  	net/netip	2.227s
--- FAIL: TestGobError (7.79s)
    client_test.go:61: expected `reading body unexpected EOF', got dial tcp 127.0.0.1:59866: connect: operation timed out
2026/05/20 09:47:36 Test RPC server listening on 127.0.0.1:59912
2026/05/20 09:47:46 Test HTTP RPC server listening on 127.0.0.1:59930
2026/05/20 09:47:46 NewServer test RPC server listening on 127.0.0.1:59932
2026/05/20 09:47:46 rpc.Register: type ReplyNotPointer has no exported methods of suitable type
2026/05/20 09:47:46 rpc.Register: type ArgNotPublic has no exported methods of suitable type
2026/05/20 09:47:46 rpc.Register: type ReplyNotPublic has no exported methods of suitable type
2026/05/20 09:47:46 rpc.Register: type NeedsPtrType has no exported methods of suitable type (hint: pass a pointer to value of that type)
2026/05/20 09:47:46 rpc.Serve: accept:accept tcp 127.0.0.1:59940: use of closed network connection
FAIL
FAIL	net/rpc	19.016s
ok  	net/rpc/jsonrpc	1.832s
ok  	net/smtp	1.535s
ok  	net/textproto	1.534s
ok  	net/url	1.546s
ok  	os	25.309s
ok  	os/exec	1.199s
ok  	os/exec/internal/fdtest	0.780s
^Cgo tool dist: signal: interrupt
---
Installed Go for darwin/arm64 in /Users/rsc/ogo
Installed commands in /Users/rsc/ogo/bin
*** You need to add /Users/rsc/ogo/bin to your PATH.
% 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.okay-after-rc1Used by release team to mark a release-blocker issue as okay to resolve either before or after rc1release-blocker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions