Page MenuHomePhabricator

TheWikipediaLibrary extension tests fail when Echo is not present
Closed, ResolvedPublic

Description

TheWikipediaLibrary extension does require the Echo extension but tests are failing when Echo is not loaded:

1) TheWikipediaLibraryEchoTest::testNoDupes
Error: Class "MediaWiki\Extension\Notifications\DbFactory" not found

/workspace/src/extensions/TheWikipediaLibrary/tests/phpunit/TheWikipediaLibraryEchoTest.php:38/workspace/src/extensions/TheWikipediaLibrary/tests/phpunit/TheWikipediaLibraryEchoTest.php:20

The test should use $this->markTestSkippedIfExtensionNotLoaded( 'Echo' ) or alternatively TheWikipediaLibrary can be marked to require Echo in extension.json.

Event Timeline

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

[mediawiki/extensions/TheWikipediaLibrary@master] tests: skip Echo tess when it is not loaded

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

A_smart_kitten subscribed.

[…] or alternatively TheWikipediaLibrary can be marked to require Echo in extension.json.

Given that the extension's MW.org page lists Echo as a dependency (added in this edit), I assume that Echo should also be listed as a dependency in extension.json. This would also personally make sense to me, given that the listed description of the extension is to "notify users of their eligibility for the Wikipedia Library", which would presumably require Echo to do.

Change #1205087 merged by jenkins-bot:

[mediawiki/extensions/TheWikipediaLibrary@master] tests: skip Echo tests when it is not loaded

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

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

[mediawiki/extensions/TheWikipediaLibrary@REL1_39] tests: skip Echo tests when it is not loaded

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

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

[mediawiki/extensions/TheWikipediaLibrary@REL1_43] tests: skip Echo tests when it is not loaded

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

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

[mediawiki/extensions/TheWikipediaLibrary@REL1_44] tests: skip Echo tests when it is not loaded

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

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

[mediawiki/extensions/TheWikipediaLibrary@REL1_45] tests: skip Echo tests when it is not loaded

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

Noting that the tests are skipped, but we will need to fix the actual issue, so moving this back to ready.

Never mind; the patches do fix the issue.

Change #1213980 merged by jenkins-bot:

[mediawiki/extensions/TheWikipediaLibrary@REL1_43] tests: skip Echo tests when it is not loaded

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

Change #1213981 merged by jenkins-bot:

[mediawiki/extensions/TheWikipediaLibrary@REL1_44] tests: skip Echo tests when it is not loaded

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

Change #1213979 merged by Umherirrender:

[mediawiki/extensions/TheWikipediaLibrary@REL1_39] tests: skip Echo tests when it is not loaded

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

Change #1213982 merged by jenkins-bot:

[mediawiki/extensions/TheWikipediaLibrary@REL1_45] tests: skip Echo tests when it is not loaded

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

backports all look good; @Dillon and I looked back through the commit history and didn't find any reason that Echo shouldn't be a dependency in extension.json; I suggest we add that in. It shouldn't hurt any of this work.