Page MenuHomePhabricator

Lexeme CI PHPUnit tests broken
Closed, ResolvedPublic

Description

12:01:48 1) Wikibase\Lexeme\Tests\MediaWiki\Api\AddFormTest::testRateLimitIsCheckedWhenEditing
12:01:48 Failed asserting that two strings are equal.
12:01:48 --- Expected
12:01:48 +++ Actual
12:01:48 @@ @@
12:01:48 -'actionthrottledtext'
12:01:48 +'apierror-ratelimited'
12:01:48 
12:01:48 /workspace/src/extensions/WikibaseLexeme/tests/phpunit/mediawiki/Api/AddFormTest.php:53
12:01:48 /workspace/src/tests/phpunit/includes/api/ApiTestCase.php:277
12:01:48 /workspace/src/tests/phpunit/MediaWikiIntegrationTestCase.php:527

from: https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-php81-noselenium-docker/15813/console

Caused by Implement rate limiting in Authority. (Ic349f03b)

Acceptance Criteria:

  • Lexeme CI is no longer failing on master
  • The skipped tests are reenabled and adjusted as needed

Event Timeline

Implement rate limiting in Authority. (Ic349f03b) has DEPLOY: Risky! in its commit message, so we will disabled those tests for now and reenable them after next week's train, once we know that there are no issues with the core change.

Change 940885 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Temporarily disable rate-limit tests

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

Michael triaged this task as Unbreak Now! priority.

UBN as Lexeme build failures on master prevent multiple teams from merging their code.

Change 940885 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Temporarily disable rate-limit tests

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

Michael changed the task status from Open to Stalled.Jul 24 2023, 11:08 AM
Michael lowered the priority of this task from Unbreak Now! to Needs Triage.

We should fix and re-enable those tests after Implement rate limiting in Authority. (Ic349f03b) is known to be stable in production. So, probably after the train next week, likely on Thursday (=August 3rd).

https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/939251 is all happily merged now. Temporary test skipping confirmed to have fixed the blockage

Michael changed the task status from Stalled to Open.Aug 2 2023, 4:46 PM
Michael claimed this task.
Michael moved this task from incoming to in progress on the Wikidata board.

I do not see a revert and also T310476 looks fine, so I think we can start to prepare the proper fix now.

Change 944964 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/WikibaseLexeme@master] Reenable and adjust API rate-limiting tests for new message

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

Change 944964 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Reenable and adjust API rate-limiting tests for new message

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

Michael updated the task description. (Show Details)
Michael moved this task from Peer Review to Our work done on the Wikidata Dev Team (Sprint-∞) board.