Page MenuHomePhabricator

BundleSizeTest contains 1 abstract method and must therefore be declared abstract or implement the remaining methods
Closed, ResolvedPublic

Description

Seen on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralNotice/+/1147043 https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php74-noselenium/98049/console

19:34:53 PHP Fatal error:  Class MediaWiki\Extensions\FlaggedRevs\Tests\Structure\BundleSizeTest contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (MediaWiki\Tests\Structure\BundleSizeTestBase::getBundleSizeConfigData) in /workspace/src/extensions/CentralNotice/tests/phpunit/structure/BundleSizeTest.php on line 13

Ping T393122: Make PHPUnit dataProvider on BundleSizeTestBase static

Event Timeline

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/FlaggedRevs/+/1143035

So this patch passed FlaggedRevs CI but broke CentralNotice CI? And only for branch wmf/1.45.0-wmf.1? Interesting.

CentralNotice is special about deployment, see T179536: Unexpected side-effect of CentralNotice wmf_deploy branch strategy

The error message indicates an error in namespacing, fixed with 657c9cc4c50b3c1c8afdc573ca21fc714d6b8f07, relevant is the folder/file name, not the namespace/class name

Novem_Linguae removed a subscriber: matmarex.

Got it. So the fix is probably to cherry pick 657c9cc4c50b3c1c8afdc573ca21fc714d6b8f07 into CentralNotice -> branch wmf/1.45.0-wmf.1.

Change #1147060 had a related patch set uploaded (by Reedy; author: Hashar):

[mediawiki/extensions/CentralNotice@wmf/1.45.0-wmf.1] Update incorrect PHP namespace in BundleSizeTest

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

Change #1147839 had a related patch set uploaded (by Jgleeson; author: Jgleeson):

[mediawiki/extensions/CentralNotice@wmf/1.45.0-wmf.1] Make BundleSizeTest cross-compatible with <=1.44 and >=1.45

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

Change #1147839 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@wmf/1.45.0-wmf.1] Make BundleSizeTest cross-compatible with <=1.44 and >=1.45

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

Change #1147910 had a related patch set uploaded (by Ejegg; author: Jgleeson):

[mediawiki/extensions/CentralNotice@master] Make BundleSizeTest cross-compatible with <=1.44 and >=1.45

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

Change #1147910 merged by jenkins-bot:

[mediawiki/extensions/CentralNotice@master] Make BundleSizeTest cross-compatible with <=1.44 and >=1.45

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

Change #1147060 abandoned by Jforrester:

[mediawiki/extensions/CentralNotice@wmf/1.45.0-wmf.1] Update incorrect PHP namespace in BundleSizeTest

Reason:

Being done in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralNotice/+/1146631

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