Page MenuHomePhabricator

Make provideLuaData static
Closed, ResolvedPublic

Description

in Wikibase/client/tests/phpunit/integration/includes/DataAccess/Scribunto/WikibaseLibraryInProcessEntityCacheTest.php:
provideLuaData is a non-static dataProvider function. It can't be made static without also changing files in other extensions:

  • extensions/Scribunto
    • tests/phpunit/Engines/LuaCommon/LuaEngineTestBase.php
    • tests/phpunit/Engines/LuaCommon/LuaEngineUnitTestBase.php
  • extensions/Capiunto
    • tests/phpunit/output/BasicRowTest.php
    • tests/phpunit/output/BasicTest.php

To avoid breaking CI, this change needs to happen in a multistep process across the affected repos.

Event Timeline

Change #1094483 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] Temporarily skip tests using `provideLuaData`

https://gerrit.wikimedia.org/r/1094483

Change #1097415 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Capiunto@master] Skip tests while `provideLuaData` is made static

https://gerrit.wikimedia.org/r/1097415

Change #1097415 abandoned by Audrey Penven:

[mediawiki/extensions/Capiunto@master] Skip tests while `provideLuaData` is made static

https://gerrit.wikimedia.org/r/1097415

Change #1094483 abandoned by Audrey Penven:

[mediawiki/extensions/Wikibase@master] Skip tests while `provideLuaData` is made static

https://gerrit.wikimedia.org/r/1094483

making provideLuaData static in Scribunto is covered in T337135

Change #1098566 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] Remove override implementation of provideLuaData

https://gerrit.wikimedia.org/r/1098566

Change #1098566 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] provideLuaData - remove override, make stub version static

https://gerrit.wikimedia.org/r/1098566

This is done as far as Wikibase is concerned (the rest is covered in T337135 as mentioned above).