-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
x/playground: faketime headers not stripped from os/exec subprocess output #41339
Comments
CC @golang/osp-team |
I understand this issue is related to but not the same as #38751. The difference here is that it happens specifically for subprocess output even when the output is not large. Is that right? |
Correct. And the fix here is probably independent of that fix. (Probably |
The fundamental issue here is that stdout/stderr of faketime binaries is simply not meant to be generally consumable. Rather it is intended only for handling by the playground itself. I don't think have A more robust solution that comes to mind would be to only enable faketime headers if a specific environment variable is set. The playground would always set this variable, and the faketime binary should probably clear it on init so it isn't inherited by At a higher level, I think we need to step back and think about whether we really want to support subprocesses on the playground. The sandbox can support it just fine, but I think these kinds of weird issues are going to keep coming up as long as we have faketime. If we don't support it, we could disable |
Personally, I think enabling |
What did you do?
https://play.golang.org/p/Gi7BzeGhs6Q
What did you expect to see?
Similar output to
go test -v
when running the test locally:What did you see instead?
Mangled output containing faketime headers:
The text was updated successfully, but these errors were encountered: