New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 794021 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Mac
Pri: 3
Type: Task



Sign in to add a comment

ScopedFeatureList Cleanup of Global FieldTrialList

Project Member Reported by gch...@chromium.org, Dec 12 2017

Issue description

If a ScopedFeatureList is used to initialize a feature with parameters, and a global FieldTrialList exists, the ScopedFeatureList cannot clean up its field trial when it goes out of scope. 

This means that if two ScopedFeatureLists are created in the same test, or if tests do not destroy global state between cases (such as in iOS Earl Grey), ScopedFeatureList cannot initialize experiment parameters after the first time in that session.

A hacky solution was found (make the ScopedFeatureList use a unique field trial name per call), but further investigation is needed for a cleaner solution. Possibilities are to make it possible for ScopedFeatureList to reset the state of FieldTrialList, or to ensure that FieldTrialList is destroyed with a ScopedFeatureList.
 

Comment 1 by pkl@chromium.org, Dec 18 2017

Who owns ScopedFeatureList ?

Comment 2 by gch...@chromium.org, Dec 18 2017

Cc: -isherman@chromium.org
Owner: isherman@chromium.org
Status: Assigned (was: Untriaged)
The owners of base/metrics.

Assigning to isherman@ for now.
Components: Test
Labels: -Type-Bug -Pri-2 Pri-3 Type-Task
Owner: ----
Status: Available (was: Assigned)
Gregory landed the hacky solution in [ https://chromium-review.googlesource.com/c/chromium/src/+/813102 ].  I don't think anyone has immediate plans to implement a cleaner solution.
Project Member

Comment 4 by sheriffbot@chromium.org, Jan 3

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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
Cc: linds...@chromium.org rohitrao@chromium.org
Status: Available (was: Untriaged)
Does EG2 change anything? Do we need a not-hacky solution still?
Cc: justincohen@chromium.org
EG2 allows us to kill and relaunch the browser process, so we have the ability to isolate tests and run them with their own flags.  It's expensive (~30s per launch), so we don't want to do it unless necessary, but it should be possible.

Is this still a cross-platform bug, or should we mark it as iOS-only?

Sign in to add a comment