Tgr added a comment.
What a mess. The test calls `Language::factory`, which needs NamespaceInfo, which tries to initialize a bunch of configuration settings. Somehow something inside `new ServiceOptions( NamespaceInfo::CONSTRUCTOR_OPTIONS, $services->getMainConfig() )` triggers session handling (no idea how that would happen, and the stack trace doesn't tell anything about that). When exiting the method, the session destructor is called. The session is dirty (which I think shouldn't happen at this point, but then this is a unit test so who knows how many components behave in unusual ways) and validates the user's name, which requires UserNameUtils, which needs the content language, which would be created by the language factory. Why does that standard-looking ServiceOptions call trigger session handling, when a pretty much identical call in the LanguageFactory wiring doesn't? And what does any of it have to with the GrowthExperiments extension? Seems mystical to me. TASK DETAIL https://phabricator.wikimedia.org/T315489 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Tgr Cc: Urbanecm_WMF, Aklapper, Tgr, Hellket777, LisafBia6531, Astuthiodit_1, 786, Sgs, Biggs657, karapayneWMDE, Invadibot, caldera, maantietaja, Juan90264, Alter-paule, NavinRizwi, Beast1978, ItamarWMDE, Un1tY, Akuckartz, Hook696, Kent7301, joker88john, CucyNoiD, Nandana, kostajh, Gaboe420, lucamauri, Giuliamocci, Cpaulf30, Lahi, Gq86, Af420, Bsandipan, GoranSMilovanovic, Nattes, QZanden, LawExplorer, Lewizho99, Maathavan, Iniquity, _jensen, rosalieper, Taiwania_Justo, Neuronton, Scott_WUaS, Wikidata-bugs, aude, geraki, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org