Issue metadata
Sign in to add a comment
|
Should all tests use RegistryOverrideManager so that they don't touch the real registry? |
||||||||||||||||||||||
Issue descriptionShould all tests use RegistryOverrideManager so that they don't touch the real registry? For context, we recently had a bug where a unit test in a WIP patch that was being run on try bots was actually modifying the real registry values on the test bots, causing permanent global state changes that affected future unrelated test runs (making them hit DCHECKs): http://crbug.com/635255 Right now, it's way too easy to accidentally make this happen, if you're not careful. That's because if you use an API that touches the registry, unless you explicitly use a RegistryOverrideManager, it will touch the real registry. This is bad because tests are thus not hermetic and cause cause various flakyness issues. Discussing this with gab@, one thing we thought of is whether we could hoist a RegistryOverrideManager instance somewhere in the base testing framework - so all unit tests will have a fake registry set up and never touch the real one. cc'ing some Windows and test folks for their thoughts.
,
Aug 22 2016
,
May 8 2017
Wondering if the last nine months made the right path forward on this bug (see three options in comment #1) clearer. Is anyone aware of this type of issue (see original report) having occurred again?
,
May 16 2017
,
Feb 13 2018
asvitkine@, I'm tempted to close this out unless either - someone is actively interested in fixing it or - someone is aware of a problem of this form that's occurred since the massive cleanup last May (see bug 721245)
,
Feb 14 2018
+dpranke for thoughts I still think this is an issue, but I don't see myself finding time to do something here. Dirk, do you think this is something that would fit under the Fix Flaky Tests effort? (Is there such an effort currently?)
,
Feb 14 2018
There is no such central effort, currently (there are flakiness efforts, but not yet a "Fix Flaky Tests" effort, per se). Best case is that you'd mark this as a bug that might be contributing to flakiness, and someone might be look at it someday. However, if we're not seeing active issues as a result of this, I'd be inclined to follow mpearson's advice.
,
Feb 21 2018
The NextAction date has arrived: 2018-02-21
,
Feb 21 2018
OK, closing. I still think this makes sense to do, but if no one is currently looking at the problem space and when they do, there might be bigger fish to fry, let's close in the meantime. Can be re-opened or re-filed if this is identified as one of the areas that should be addressed in an eventual de-flake effort. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by grt@chromium.org
, Aug 15 2016