Page MenuHomePhabricator

Test failure: Wikibase\Repo\Tests\Hooks\Helpers\OutputPageEditabilityTest::testGivenPageIsEditable_returnsTrue
Open, Needs TriagePublic

Description

21:09:04 There were 3 failures:
21:09:04 
21:09:04 1) Wikibase\Repo\Tests\Hooks\Helpers\OutputPageEditabilityTest::testGivenPageIsEditable_returnsTrue with data set #0 (MediaWiki\Output\OutputPage Object (...))
21:09:04 Failed asserting that false is true.
21:09:04 
21:09:04 /workspace/src/extensions/Wikibase/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php:88
21:09:04 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:106
Logs generated by test

Show Details
21:09:04 
21:09:04 2) Wikibase\Repo\Tests\Hooks\Helpers\OutputPageEditabilityTest::testGivenPageIsEditable_returnsTrue with data set #1 (MediaWiki\Output\OutputPage Object (...))
21:09:04 Failed asserting that false is true.
21:09:04 
21:09:04 /workspace/src/extensions/Wikibase/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php:88
21:09:04 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:106
Logs generated by test

Show Details
21:09:04 
21:09:04 3) Wikibase\Repo\Tests\Hooks\Helpers\OutputPageEditabilityTest::testGivenPageIsEditable_returnsTrue with data set #2 (MediaWiki\Output\OutputPage Object (...))
21:09:04 Failed asserting that false is true.
21:09:04 
21:09:04 /workspace/src/extensions/Wikibase/repo/tests/phpunit/includes/Hooks/Helpers/OutputPageEditabilityTest.php:88
21:09:04 phpvfscomposer:///workspace/src/vendor/phpunit/phpunit/phpunit:106

Seen on https://integration.wikimedia.org/ci/job/integration-quibble-fullrun-extensions-phpunit/607/console from https://gerrit.wikimedia.org/r/c/integration/quibble/+/1075303, which set WikiLambda as the extension under test.

Event Timeline

All three failing tests use an NS_MAIN title, so at a guess, WikiLambda probably changes the interpretation of that namespace?

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

[mediawiki/extensions/Wikibase@master] Use non-main namespace for three tests

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

Can we see if ^ helps? Would Depends-On on the Quibble change work?

I see:

11:56:20 INFO:zuul.Cloner.mediawiki/extensions/Wikibase:Prepared mediawiki/extensions/Wikibase repo with commit e6ca7bf55df64a37c2ed9b2ccceaa994626cee4c

in the log, so I assume it pulled in the change. But it doesn't seem to have resolved the issue.

Hm, but I don’t see any OutputPageEditabilityTest errors in the CI output of PS2 there? It looks like a bunch of other errors now? (At least some of which, like “Requested page AbuseFilter testing page isn't in the wikitext content model”, feel like they might also be due to the main namespace no longer being wikitext.)

Assuming that I understand the problems in this task correctly – that various tests get confused when, due to WikiLambda being installed, ns0 is no longer a wikitext namespace – I think this task could be considered part of T289741: Explore impact of adding WikiLambda to the general MediaWiki CI gate (or even a duplicate of it).

The WikiLambda jobs take less than 10 mins to run in linear mode, just because there aren't so many dependencies. Considering this and T375551 are potentially our only remaining issues for parallel testing, and since WikiLambda testing anyway seems to be a thorny topic, I would suggest we just exclude this extension from parallel testing and move forward.

The WikiLambda jobs take less than 10 mins to run in linear mode, just because there aren't so many dependencies. Considering this and T375551 are potentially our only remaining issues for parallel testing, and since WikiLambda testing anyway seems to be a thorny topic, I would suggest we just exclude this extension from parallel testing and move forward.

That seems reasonable to me. Although if T289741: Explore impact of adding WikiLambda to the general MediaWiki CI gate goes through, we'd encounter the errors again if/when we enable parallel testing for MW core patches and gate-and-submit.

Assuming that I understand the problems in this task correctly – that various tests get confused when, due to WikiLambda being installed, ns0 is no longer a wikitext namespace – I think this task could be considered part of T289741: Explore impact of adding WikiLambda to the general MediaWiki CI gate (or even a duplicate of it).

Tagging WikiLambda per the comment above.

Change #1075511 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use non-main namespace for three tests

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