Page MenuHomePhabricator

CirrusSearch integration tests should have a suite testing some wikibase related queries
Closed, ResolvedPublic5 Estimated Story Points

Description

Followup on https://wikitech.wikimedia.org/w/index.php?title=Incidents/2023-06-18_search_broken_on_wikidata_and_commons

AC:

  • integration tests are failing if the wikibase index mapping/settings are incorrect
  • integration tests are failing if the queries generated by WikibaseCirrusSearch are incorrect

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
bking set the point value for this task to 5.Jul 10 2023, 3:30 PM

Change 937195 had a related patch set uploaded (by Ebernhardson; author: Ebernhardson):

[mediawiki/extensions/CirrusSearch@master] Add very basic integration tests for wikibasecirrussearch

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

The integration testing now enables analysis chain deduplication and uses the EntityFullTextQueryBuilder along with the typical rescore configuration on wikidata.org. The test itself now issues both a regular entity search and a wbsearchentities (prefix) search. I have verified, by manually checking out an older version of WikibaseCirrusSearch, that this now fails as expected with the patch the caused the incident, and the latest version of WBCS passes.

Change 937195 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] Add very basic integration tests for wikibasecirrussearch

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