Skip to content

[2.10] [MOD-11611] fix test_vecsim:TestTimeoutReached #6910

Merged
meiravgri merged 1 commit into2.10from
backport-6904-to-2.10
Sep 29, 2025
Merged

[2.10] [MOD-11611] fix test_vecsim:TestTimeoutReached #6910
meiravgri merged 1 commit into2.10from
backport-6904-to-2.10

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Sep 28, 2025

Description

Backport of #6904 to 2.10.


Note

In TestTimeoutReached, use large_k=1000 for no-timeout KNN and remove no-timeout success checks for RANGE and HYBRID queries, keeping only timeout-failure validations.

  • Tests (tests/pytests/test_vecsim.py):
    • TestTimeoutReached:
      • Add large_k = 1000; use it for no-timeout KNN (LIMIT/K) and update assertions.
      • Remove no-timeout success assertions for @vector:[VECTOR_RANGE ...] and HYBRID (HYBRID_POLICY) queries; retain 1ms timeout error checks.

Written by Cursor Bugbot for commit 3986666. This will update automatically on new commits. Configure here.

* test: update KNN query to use large_k and remove redundant checks

* revert unnecessary changes

(cherry picked from commit 8e2dd9b)
@codecov
Copy link

codecov bot commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.28%. Comparing base (b38f839) to head (3986666).
⚠️ Report is 1 commits behind head on 2.10.

Additional details and impacted files
@@            Coverage Diff             @@
##             2.10    #6910      +/-   ##
==========================================
- Coverage   89.31%   89.28%   -0.04%     
==========================================
  Files         207      207              
  Lines       36165    36165              
==========================================
- Hits        32302    32291      -11     
- Misses       3863     3874      +11     
Flag Coverage Δ
flow 83.81% <ø> (-0.16%) ⬇️
unit 42.72% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Sep 28, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 28, 2025
@meiravgri meiravgri added this pull request to the merge queue Sep 29, 2025
Merged via the queue into 2.10 with commit d5c85db Sep 29, 2025
14 checks passed
@meiravgri meiravgri deleted the backport-6904-to-2.10 branch September 29, 2025 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant