Skip to content

[2.8] [MOD-10076] - remove the FDs check in gc oom test#6925

Merged
redisearch-backport-pull-request[bot] merged 1 commit into2.8from
backport-6903-to-2.8
Sep 29, 2025
Merged

[2.8] [MOD-10076] - remove the FDs check in gc oom test#6925
redisearch-backport-pull-request[bot] merged 1 commit into2.8from
backport-6903-to-2.8

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

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

Description

Backport of #6903 to 2.8.


Note

Simplifies test_gc_oom by removing file-descriptor checks (and psutil) and invoking GC once after deletions.

  • Tests:
    • tests/pytests/test_gc.py:
      • Remove psutil import and get_open_file_count helper.
      • Drop open file descriptor assertions in test_gc_oom.
      • Invoke forceInvokeGC(env) once after deleting all docs; keep GC bytes_collected checks and post-memory-increase GC run.

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

* add wait for gc

* remove FDs check

* add wait for gc

* remove FDs check

(cherry picked from commit 44d4914)
@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.49%. Comparing base (e4de255) to head (bff1ec6).
⚠️ Report is 1 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #6925      +/-   ##
==========================================
- Coverage   87.50%   87.49%   -0.01%     
==========================================
  Files         203      203              
  Lines       35634    35634              
==========================================
- Hits        31181    31178       -3     
- Misses       4453     4456       +3     
Flag Coverage Δ
flow 81.81% <ø> (-0.22%) ⬇️
unit 42.75% <ø> (ø)

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 29, 2025
Merged via the queue into 2.8 with commit d3c157e Sep 29, 2025
17 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-6903-to-2.8 branch September 29, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant