Skip to content

Conversation

@bergwolf
Copy link
Member

@bergwolf bergwolf commented Jan 7, 2026

UT sometimes fails with:
thread 'cache::worker::tests::test_worker_mgr_rate_limiter' (18435) panicked at storage/src/cache/worker.rs:512:9: assertion failed: mgr.prefetch_inflight.load(Ordering::Acquire) <= 2 test cache::worker::tests::test_worker_mgr_rate_limiter ... FAILED

The check for intermediate inflight request is not really necessary and unreliable. Let's just drop it.

UT sometimes fails with:
thread 'cache::worker::tests::test_worker_mgr_rate_limiter' (18435) panicked at storage/src/cache/worker.rs:512:9:
assertion failed: mgr.prefetch_inflight.load(Ordering::Acquire) <= 2
test cache::worker::tests::test_worker_mgr_rate_limiter ... FAILED

The check for intermediate inflight request is not really necessary and
unreliable. Let's just drop it.

Signed-off-by: Peng Tao <[email protected]>
@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.43%. Comparing base (f1d835c) to head (23ff088).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1825      +/-   ##
==========================================
- Coverage   56.46%   56.43%   -0.04%     
==========================================
  Files         199      199              
  Lines       52048    52046       -2     
  Branches    44851    44849       -2     
==========================================
- Hits        29388    29370      -18     
- Misses      21176    21191      +15     
- Partials     1484     1485       +1     
Files with missing lines Coverage Δ
storage/src/cache/worker.rs 62.68% <ø> (-0.23%) ⬇️

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@BraveY BraveY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BraveY BraveY merged commit 5a9d42d into dragonflyoss:master Jan 7, 2026
21 of 25 checks passed
@bergwolf bergwolf deleted the fix-ut branch January 7, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants