This is an automated email from the ASF dual-hosted git repository.
houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 2e159066ee4 SOLR-17661: Fix flaky TestLTRQParserPlugin tests
2e159066ee4 is described below
commit 2e159066ee43294cd6b9298df85e9b2901377b10
Author: Houston Putman <[email protected]>
AuthorDate: Tue Jun 10 15:39:47 2025 -0500
SOLR-17661: Fix flaky TestLTRQParserPlugin tests
The flaky tests are:
-
TestLTRQParserPlugin.ltr_expensiveFeatureRescoring_shouldTimeOutAndReturnPartialResults
-
TestLTRQParserPlugin.ltr_expensiveFeatureRescoringAndPartialResultsNotTolerated_shouldRaiseException
These tests have to timeout after the initial search is complete, and
during the reranking phase. The reranking model takes 1 second to load,
so increase the timeout to 800ms so that the search is more likely to
complete in that timeframe.
---
.../ltr/src/test/org/apache/solr/ltr/TestLTRQParserPlugin.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/solr/modules/ltr/src/test/org/apache/solr/ltr/TestLTRQParserPlugin.java
b/solr/modules/ltr/src/test/org/apache/solr/ltr/TestLTRQParserPlugin.java
index a8924b2e1da..3e1a38b6444 100644
--- a/solr/modules/ltr/src/test/org/apache/solr/ltr/TestLTRQParserPlugin.java
+++ b/solr/modules/ltr/src/test/org/apache/solr/ltr/TestLTRQParserPlugin.java
@@ -153,7 +153,7 @@ public class TestLTRQParserPlugin extends TestRerankBase {
query.setQuery(solrQuery);
query.setFields("id", "score");
query.setRows(4);
- query.setTimeAllowed(300);
+ query.setTimeAllowed(800);
query.add("fv", "true");
query.add("rq", "{!ltr model=slowModel reRankDocs=3}");
@@ -187,7 +187,7 @@ public class TestLTRQParserPlugin extends TestRerankBase {
query.setQuery(solrQuery);
query.setFields("id", "score");
query.setRows(4);
- query.setTimeAllowed(300);
+ query.setTimeAllowed(800);
query.add("partialResults", "false");
query.add("fv", "true");
query.add("rq", "{!ltr model=slowModel reRankDocs=3}");