Greetings,
This patch[0] sets the default configuration in Wikimedia CI to enable the temporary accounts feature.[1] This means: PHPUnit, Selenium, API-Testing, and QUnit tests run in an environment where temporary account autocreation is enabled.
## Why?
Next week, the Trust and Safety Product team is deploying the temporary accounts feature to testwiki.[2] Later this year, we will move forward with deploying to other production wikis. By enabling temporary accounts in CI, we increase the likelihood that new code works smoothly with the temporary accounts feature.
## What do I need to do?
This time, nothing. All MediaWiki core, extension and skins tests pass, whether temporary accounts are enabled or disabled.[3]
For new PHPUnit tests, please make use of `TempUserTestTrait` to disable the temporary accounts feature for tests that make assertions specifically about anonymous IP editing.
We also recommend that you enable temporary accounts in your local development environment by adding `$wgAutoCreateTempUser['enabled'] = true;` to your LocalSettings.php.
## Questions?
Please contact us[4] or file a task on Phab and tag it with “#Temporary accounts”.
[0] https://gerrit.wikimedia.org/r/c/mediawiki/core/+/980947
[1] https://www.mediawiki.org/wiki/Trust_and_Safety_Product/Temporary_Accounts/F..., https://www.mediawiki.org/wiki/Help:Temporary_accounts
[2] https://phabricator.wikimedia.org/T348895
[3] https://phabricator.wikimedia.org/T355879
[4] https://www.mediawiki.org/wiki/Talk:Trust_and_Safety_Product/Temporary_Accou...
Cheers,
Kosta & Thalia, Trust and Safety Product
and
Szymon Grabarczuk (he/him)
Lead Movement Communications Specialist (Product & Tech)
Wikimedia Foundation https://wikimediafoundation.org/