redis / redis/redis-vl-python

Fix flaky test_text_query_word_weights and re-enable test

Open
#497 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug CI/CD
Dominant language
Python
Stars
427
Forks
101
Avg merge
6d 3h
Merged PRs (30d)
20

Description

Summary

Investigate and fix flakiness in test_text_query_word_weights, then re-enable it in CI.

Level: Beginner

Current State

  • The test is currently skipped due to flaky behavior.
  • This hides potential correctness regressions in text query weighting behavior.

Proposed Change

  • Identify root cause of nondeterminism (ordering, floating-point sensitivity, or environment assumptions).
  • Stabilize assertion strategy.
  • Remove skip marker and verify reliability across repeated runs.

Definition of Done

  • Test is re-enabled.
  • Test passes consistently in repeated local runs and CI.
  • Full unit suite remains green.

Out of Scope

  • Broad refactor of text query architecture.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate test_text_query_word_weights in the test suite and inspect its skip marker and assertions. Run the test repeatedly to identify the nondeterminism, stabilize the assertion strategy, remove the skip, and verify repeated runs, CI, and the full unit suite remain green.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, redis
Domain
search, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.