Page MenuHomePhabricator

Wikibase CI broken: MergeLexemesTest::testRequestByUserWithoutPermission_accessIsDenied: writeapidenied != permissiondenied
Closed, ResolvedPublic

Description

Seen in this build for this eminently harmless change:

1) Wikibase\Lexeme\Tests\MediaWiki\Api\MergeLexemesTest::testRequestByUserWithoutPermission_accessIsDenied
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'writeapidenied'
+'permissiondenied'

I assume this is due to T294397: Drop writeapi MediaWiki right and WikibaseLexeme needs a similar fix to Wikibase: Remove usage of writeapi userright.

Event Timeline

Hm, there should actually be a couple more test failures – e.g. tests/phpunit/mediawiki/Api/AddFormTest.php also fails for me locally. I wonder why I don’t see these in CI… could it be related to the work in T50217: Speed up MediaWiki PHPUnit build by running integration tests in parallel (which is currently enabled in Wikibase)?

Change #1059279 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/WikibaseLexeme@master] Update tests for removal of writeapi right

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

Hm, there should actually be a couple more test failures – e.g. tests/phpunit/mediawiki/Api/AddFormTest.php also fails for me locally. I wonder why I don’t see these in CI… could it be related to the work in T50217: Speed up MediaWiki PHPUnit build by running integration tests in parallel (which is currently enabled in Wikibase)?

I’m looking into this further in WikibaseLexeme and Wikibase, but in the meantime the CI fix itself is ready for review.

Hm, there should actually be a couple more test failures – e.g. tests/phpunit/mediawiki/Api/AddFormTest.php also fails for me locally. I wonder why I don’t see these in CI… could it be related to the work in T50217: Speed up MediaWiki PHPUnit build by running integration tests in parallel (which is currently enabled in Wikibase)?

I’m looking into this further in WikibaseLexeme and Wikibase, but in the meantime the CI fix itself is ready for review.

Okay, I’ve now seen a failure of that test reported in both WikibaseLexeme and Wikibase CI, so I guess it was just not visible in the other build. (Maybe it exited before the other test ran?) So my concerns about the test splitting are assuaged again :)

Change #1059279 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Update tests for removal of writeapi right

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

Sorry for the trouble!

The remaining codesearch hits for writeapidenied seem unproblematic.