Skip to content

[fix][test] Fix flaky ManagedLedgerTest.testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers - #24330

Merged
nodece merged 1 commit into
apache:masterfrom
lhotari:lh-fix-flaky-testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers
May 22, 2025
Merged

nodece merged 1 commit into
apache:masterfrom
lhotari:lh-fix-flaky-testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers

Conversation

@lhotari

@lhotari lhotari commented May 21, 2025

Copy link
Copy Markdown
Member

Fixes #24329

Motivation

See #24329

Modifications

Since the ledger will rollover asynchronously, the number of ledgers will be 11 eventually in the test.
Use Awaitility to assert this.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 4.1.0 milestone May 21, 2025
@lhotari
lhotari requested review from dao-jun and nodece May 21, 2025 16:32
@lhotari lhotari self-assigned this May 21, 2025
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label May 21, 2025
@codecov-commenter

codecov-commenter commented May 21, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.20%. Comparing base (bbc6224) to head (1783055).
Report is 1115 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #24330      +/-   ##
============================================
+ Coverage     73.57%   74.20%   +0.63%     
+ Complexity    32624    32622       -2     
============================================
  Files          1877     1866      -11     
  Lines        139502   145124    +5622     
  Branches      15299    16593    +1294     
============================================
+ Hits         102638   107691    +5053     
- Misses        28908    28909       +1     
- Partials       7956     8524     +568     
Flag Coverage Δ
inttests 26.64% <ø> (+2.06%) ⬆️
systests 23.32% <ø> (-1.01%) ⬇️
unittests 73.68% <ø> (+0.84%) ⬆️

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

see 1083 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.

@lhotari
lhotari requested a review from heesung-sohn May 21, 2025 18:04
@nodece
nodece merged commit 9ffaeea into apache:master May 22, 2025
KannarFr pushed a commit to CleverCloud/pulsar that referenced this pull request Sep 22, 2025
walkinggo pushed a commit to walkinggo/pulsar that referenced this pull request Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: ManagedLedgerTest.testDoNotGetOffloadPoliciesMultipleTimesWhenTrimLedgers

4 participants