Skip to content

Conversation

@meiravgri
Copy link
Collaborator

@meiravgri meiravgri commented Oct 29, 2025

Relax lastReservedThreads assertion in async mode to prevent test flakiness

In async mode, the SVS index may reserve fewer threads than requested for indexing jobs when threads fail to mark themselves as reserved before the reservation timeout expires.

This PR changes the strict equality assertion for lastReservedThreads in async mode tests to use less-than-or-equal comparison (ASSERT_LE) instead of exact equality (ASSERT_EQ).

@meiravgri meiravgri changed the title relax lastReservedThreads test to avoid flakyness Relax lastReservedThreads assertion in async mode to prevent test flakiness Oct 29, 2025
@meiravgri meiravgri requested a review from alonre24 October 29, 2025 05:42
@meiravgri meiravgri enabled auto-merge October 29, 2025 05:43
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.02%. Comparing base (3513261) to head (f7134d1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #816   +/-   ##
=======================================
  Coverage   97.02%   97.02%           
=======================================
  Files         126      126           
  Lines        7368     7368           
=======================================
  Hits         7149     7149           
  Misses        219      219           

☔ 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.

@meiravgri meiravgri added this pull request to the merge queue Oct 29, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 29, 2025
@meiravgri meiravgri added this pull request to the merge queue Oct 29, 2025
Merged via the queue into main with commit 31ba93e Oct 29, 2025
19 checks passed
@meiravgri meiravgri deleted the meiravg_relax_last_reserved_assert branch October 29, 2025 10:48
github-actions bot pushed a commit that referenced this pull request Oct 29, 2025
…lakiness (#816)

relax lastReservedThreads test to avoid flakyness

(cherry picked from commit 31ba93e)
@github-actions
Copy link

Successfully created backport PR for 8.2:

github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2025
…test flakiness (#817)

Relax `lastReservedThreads` assertion in async mode to prevent test flakiness (#816)

relax lastReservedThreads test to avoid flakyness

(cherry picked from commit 31ba93e)

Co-authored-by: meiravgri <109056284+meiravgri@users.noreply.github.com>
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.

3 participants