Page MenuHomePhabricator

Flaky API test: Item prefix search: 200 - non-empty search response
Closed, ResolvedPublic

Description

Seen in this build for this change:

  1) Item prefix search
       200 - non-empty search response:

      AssertionError: expected [ { id: 'Q220', …(3) }, …(1) ] to have a length of 1 but got 2      
      actual expected
      
      21
      
      at Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/domains/search/tests/mocha/openapi-validation/ItemPrefixSearchTest.js:41:10)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)



ERROR: "api-testing:spec-search" exited with 1.
ERROR: "api-testing:rest-api" exited with 1.

The test is presumably part of T388209.

Event Timeline

Also failed in this build for property prefix search:

1) property prefix search
     200 - non-empty search response:

    AssertionError: expected [ { id: 'P145', …(3) }, …(1) ] to have a length of 1 but got 2      
    actual expected
    
    21
    
    at Context.<anonymous> (/workspace/src/extensions/Wikibase/repo/domains/search/tests/mocha/openapi-validation/PropertyPrefixSearchTest.js:44:10)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

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

[mediawiki/extensions/Wikibase@master] Search: Increase random string length in test

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

Change #1217555 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Search: Increase random string length in test

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