Skip to content

Unstable test: apiSearch1/search.feature:189 still finds a deleted folder (posix, OpenSearch) #4226

Todo

Description

@pbleser-oc

The acceptance test apiSearch1/search.feature:189, the example old of the scenario "user cannot search deleted items", fails now and then in test-API-search1-posix-opensearch:

And the search result should contain "0" entries
→ WebDav::checkIFResponseContainsNumberEntries Expected result to contain '0' files/entries, but got '1' files/entries.

The scenario removes the folder folderMain from a project space and searches for *folderMain* right after. The search still returns one entry, so it most likely ran before the search index had processed the deletion: the index is updated asynchronously, from events.

Seen in:

apiSearch1/search.feature also failed in pipelines of PRs #4219, #3212 and #4198 since #6129, not necessarily in the same scenario. Found with oc-ci-failures.

A possible fix: let the step that checks the search result retry for a few seconds until the search index has caught up, instead of checking once.

AI assistance: Claude Code (claude-opus-5-5) collected the failures with oc-ci-failures and drafted this issue; I reviewed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions