You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd
Brad Fitzpatrick 055fdb235f cmd/tailscaled, tstest/integration: make tailscaled die when parent dies
I noticed that failed tests were leaving aroudn stray tailscaled processes
on macOS at least.

To repro, add this to tstest/integration:

    func TestFailInFewSeconds(t *testing.T) {
        t.Parallel()
        time.Sleep(3 * time.Second)
        os.Exit(1)
        t.Fatal("boom")
    }

Those three seconds let the other parallel tests (with all their
tailscaled child processes) start up and start running their tests,
but then we violently os.Exit(1) the test driver and all the children
were kept alive (and were spinning away, using all available CPU in
gvisor scheduler code, which is a separate scary issue)

Updates #cleanup

Change-Id: I9c891ed1a1ec639fb2afec2808c04dbb8a460e0e
Co-authored-by: Maisem Ali <maisem@tailscale.com>
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2 years ago
..
addlicense all: update tools that manage copyright headers 3 years ago
cloner cmd/cloner: use maps.Clone and ptr.To 2 years ago
containerboot cm/k8s-operator,cmd/containerboot: fix STS config, more tests (#9155) 2 years ago
derper net/wsconn: accept a remote addr string and plumb it through 2 years ago
derpprobe prober: migrate to Prometheus metric library 3 years ago
dist cmd/dist,release/dist: add distsign signing hooks (#9070) 2 years ago
get-authkey all: use cmpx.Or where it made sense 3 years ago
gitops-pusher cmd/gitops-pusher: re-use existing types from acl package 3 years ago
hello all: update copyright and license headers 3 years ago
k8s-operator cmd/k8s-operator: emit event if HTTPS is disabled on Tailnet 2 years ago
mkmanifest cmd/mkmanifest, cmd/tailscale, cmd/tailscaled: remove Windows arm32 resources from OSS 3 years ago
mkpkg go.mod: upgrade nfpm to v2 (#8786) 2 years ago
mkversion version/mkversion: open-source version generation logic 3 years ago
nardump all: update copyright and license headers 3 years ago
netlogfmt all: use Go 1.21 slices, maps instead of x/exp/{slices,maps} 2 years ago
nginx-auth tailcfg,all: add and use Node.IsTagged() 3 years ago
pgproxy various: add golangci-lint, fix issues (#7905) 3 years ago
printdep cmd/printdep: print correct toolchain URL 3 years ago
proxy-to-grafana tailcfg,all: add and use Node.IsTagged() 3 years ago
sniproxy cmd/sniproxy: move default debug-port away from 8080. 2 years ago
speedtest all: update copyright and license headers 3 years ago
ssh-auth-none-demo all: replace deprecated ioutil references 2 years ago
stunc all: update copyright and license headers 3 years ago
sync-containers all: adjust some build tags for plan9 2 years ago
tailscale cmd/tailscale: combine serve and funnel for debug wip funnel stream model (#9169) 2 years ago
tailscaled cmd/tailscaled, tstest/integration: make tailscaled die when parent dies 2 years ago
testcontrol all: update copyright and license headers 3 years ago
testwrapper cmd/testwrapper: handle timeouts as test failures 2 years ago
tsconnect ipn/ipnlocal: rename LogoutSync to Logout 2 years ago
tsshd all: update copyright and license headers 3 years ago
viewer types/views,cmd/viewer: add ByteSlice[T] to replace mem.RO 2 years ago