Try to fix the flaky test force_reindex_commits_from_main_index_spec
What does this MR do and why?
https://gitlab.com/gitlab-org/gitlab/-/jobs/5033526425
I made this spec more robust. Instead of expecting the indexed_documents_count
as 0
, I am checking the initial_documents_left_to_be_indexed_count
to be > 0
. And after first batch of .migrate
, I am testing the difference between initial_documents_left_to_be_indexed_count - documents_left_to_be_indexed_count
to be eq to batch_size
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #419781 (closed)
Edited by Ravi Kumar