x/oauth2/authhandler: Example persistently deadlocking on Android builders due to reading from os.Stdin #45523
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Soon
This needs to be done soon. (regressions, serious bugs, outages)
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
The
Example
test added tox/oauth2/authhandler
in CL 232238 usesfmt.Scanln
to read fromos.Stdin
:https://go.googlesource.com/oauth2/+/refs/heads/master/authhandler/example_test.go#35
The assumption that an
Example
function can safely read fromos.Stdin
— or thatos.Stdin
is either closed or unclosed during the execution of a test binary — does not hold in general.The
Example
function should either be fixed or removed. Note that its current failure mode is to always time out, which can waste substantial builder resources (CC @golang/release).2021-04-02T16:14:24-2e8d934/android-386-emu
2021-04-02T16:14:24-2e8d934/android-amd64-emu
2021-03-23T18:09:02-22b0ada/android-386-emu
2021-03-23T18:09:02-22b0ada/android-amd64-emu
CC @shinfan @andyrzhao @tbpg @codyoss
The text was updated successfully, but these errors were encountered: