Page MenuHomePhabricator

CI failures in multiple extensions with captcha related errors
Closed, ResolvedPublic

Event Timeline

Jakob_WMDE triaged this task as Unbreak Now! priority.Fri, Jun 28, 9:24 AM

This looks like it might be related to test ordering. From my experiments locally, extensions/WikibaseLexeme/tests/phpunit/mediawiki/Api/EditFormElementsTest.php passes fine when its run alone, and fails if it's run in a suite with extensions/AbuseFilter/tests/phpunit/integration/Hooks/ConfirmEditHandlerTest.php:

<testsuite name="T368705">
    <file>/workspace/src/extensions/AbuseFilter/tests/phpunit/integration/Hooks/ConfirmEditHandlerTest.php</file>
    <file>/workspace/src/extensions/WikibaseLexeme/tests/phpunit/mediawiki/Api/EditFormElementsTest.php</file>
</testsuite>

results in:

Using PHP 8.1.29
Running with MediaWiki settings because there might be integration tests
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.

...........E.EEEEEEEEEEEEEEEE.EEEEEE.                             37 / 37 (100%)

Time: 00:02.469, Memory: 139.00 MB

There were 23 errors:

1) Wikibase\Lexeme\Tests\MediaWiki\Api\EditFormElementsTest::testGivenOtherRepresentations_changesRepresentationsOfForm
ApiUsageException: Incorrect or missing CAPTCHA.
...

Change #1050574 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/AbuseFilter@master] Reset setForceShowCaptcha to false after test

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

Tagging T361190 here as this is a failure that was surfaced by parallel testing

Change #1050574 merged by jenkins-bot:

[mediawiki/extensions/AbuseFilter@master] Reset setForceShowCaptcha to false after test

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

Jakob_WMDE claimed this task.

Thanks for fixing this.

(mid-air collision :) I was trying to close the task at the same time)