auth cache test flake on Windows |
||||
Issue descriptionJust reporting a test flake that I observed recently: * e:/b/swarm_slave/w/ir/kitchen-workdir/infra/go/src/github.com/luci/luci-go/common/auth/internal/proc_cache_test.go Line 115: Expected: nil Actual: 'rename C:\Users\CHROME~2\AppData\Local\Temp\disk_token_cache259112295\creds.json423451645 C:\Users\CHROME~2\AppData\Local\Temp\disk_token_cache259112295\creds.json: Access is denied.' (Probably due to known filesystem contention issues on Windows.)
,
Apr 27 2017
Would a rename/retry loop work, like we do in other contexts?
,
Apr 27 2017
This test _tests_ rename/retry loop (see https://github.com/luci/luci-go/blob/master/common/auth/internal/disk_cache.go#L180). Turns out it craps out a lot on Windows under contention. That's the primary reason this test exists: to verify stuff still works even in presence of Windows weird errors.
,
Apr 27 2017
o lol
,
Apr 27 2017
Could we make it so that transient errors after retry return nil? https://github.com/luci/luci-go/blob/master/common/auth/internal/disk_cache.go#L214 if errors.IsTransient(err) { return nil } return err --- Alternatively, we could move this logic into the unit test and have it not fail on transient.
,
Jun 21 2017
,
Jun 21 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 21 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by vadimsh@chromium.org
, Apr 27 2017