sg: refactor process output piping to use errgroups
Created by: mrnugget
This confirms that #30529 (closed) is fixed and makes it a bit less error prone.
Test plan
-
Change cmd/github-proxy/github_proxy.go
to print 10M characters withlog15.Warn
, runcd dev/sg && go run . run github-proxy
-
Change cmd/github-proxy/github_proxy.go
to print single characters without newlines, runcd dev/sg && go run . run github-proxy