This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git

commit fb8a29c3e734874cd25dbbc6228d593c38760ca5
Author: David Smiley <[email protected]>
AuthorDate: Sun Sep 13 21:34:27 2026 -0400

    Test fix: flaky doc-order assertions in TextToVectorUpdateProcessorTest 
(#4879)
    
    Co-authored-by: Claude Sonnet 5 <[email protected]>
    (cherry picked from commit 5c7840131265e233f09e40f149d300da04b6365c)
    (cherry picked from commit 68b226dfc18c529182442216f175e854e885b22d)
---
 .../update/processor/TextToVectorUpdateProcessorTest.java              | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/solr/modules/llm/src/test/org/apache/solr/llm/textvectorisation/update/processor/TextToVectorUpdateProcessorTest.java
 
b/solr/modules/llm/src/test/org/apache/solr/llm/textvectorisation/update/processor/TextToVectorUpdateProcessorTest.java
index 6f57dfe3d52..be967bfd80b 100644
--- 
a/solr/modules/llm/src/test/org/apache/solr/llm/textvectorisation/update/processor/TextToVectorUpdateProcessorTest.java
+++ 
b/solr/modules/llm/src/test/org/apache/solr/llm/textvectorisation/update/processor/TextToVectorUpdateProcessorTest.java
@@ -76,6 +76,9 @@ public class TextToVectorUpdateProcessorTest extends 
TestLlmBase {
     final SolrQuery query = new SolrQuery();
     query.setQuery(solrQuery);
     query.add("fl", "id,vector");
+    // *:* gives every doc the same score, so without an explicit sort the 
order between
+    // tied docs is arbitrary (depends on segment/merge timing), which made 
this flaky.
+    query.setSort("id", SolrQuery.ORDER.desc);
     return query;
   }
 

Reply via email to