[tests-only][full-ci] test(cli): add acceptance tests for the search optimize command - #12741
Open
anon-pradip wants to merge 3 commits into
Open
[tests-only][full-ci] test(cli): add acceptance tests for the search optimize command#12741anon-pradip wants to merge 3 commits into
anon-pradip wants to merge 3 commits into
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
from
August 6, 2026 12:29
d5b76f9 to
a3c7967
Compare
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
3 times, most recently
from
August 7, 2026 11:09
5e28b35 to
8148a64
Compare
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
from
August 26, 2026 07:07
8148a64 to
d2ad05c
Compare
anon-pradip
marked this pull request as ready for review
August 26, 2026 09:13
ishabaral
requested review from
PrajwolAmatya,
ishabaral,
kavitagautam and
saw-jan
August 26, 2026 09:13
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
from
August 27, 2026 08:34
e52e0cc to
681c00a
Compare
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
from
August 27, 2026 11:11
681c00a to
ae88ccd
Compare
anon-pradip
force-pushed
the
test/search-optimize-cli
branch
from
August 31, 2026 04:26
ae88ccd to
e740cd3
Compare
| Given user "Alice" has been created with default attributes | ||
| And using spaces DAV path | ||
| And user "Alice" has uploaded file with content "some data" to "textfile.txt" | ||
| And the administrator reindexes all spaces using the CLI |
Contributor
There was a problem hiding this comment.
Suggested change
| And the administrator reindexes all spaces using the CLI | |
| When the administrator reindexes all spaces using the CLI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds acceptance tests for the new
ocis search optimizeCLI command (#12136), which compacts the Bleve search index without re-indexing content.What's included
tests/acceptance/features/cliCommands/searchOptimize.featurewith two scenarios:index optimization completeon an empty index. No reindex and no search assertions, because optimize compacts segments, it does not index content.searchWithRetryinSearchContext.phpis now two-phase. It polls until the search service answers HTTP 207 after a restart (~63s budget), then polls for results (~13s). This removes the flaky fixed-sleep pattern that failed after server restarts while keeping the old fast path for scenarios that never restart anything.SERVICE_READY_RETRY_COUNTinbootstrap.php.Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: