Skip to content

refactor(wow-core): enhance waitingLast() to aggregate signals #1847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 6, 2025

Conversation

Ahoo-Wang
Copy link
Owner

  • Update waitingLast() method to collect and sort all signals
  • Aggregate results from all signals before returning the last one
  • Improve handling of multiple signals in wait strategies

- Update waitingLast() method to collect and sort all signals
- Aggregate results from all signals before returning the last one
- Improve handling of multiple signals in wait strategies

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label Aug 6, 2025
…ated tests

- Move waitingLast() implementation from WaitStrategy to WaitingFor
- Update SimpleWaitingForChainTest with new waitingLast() tests
- Modify WaitingForAfterProcessed to use the new waitingLast() method
- Remove redundant waitingLast() implementation from WaitStrategy

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
Copy link
Contributor

github-actions bot commented Aug 6, 2025

Test Results

1 516 tests  +2   1 499 ✅ +2   11m 51s ⏱️ -1s
  372 suites ±0      17 💤 ±0 
  372 files   ±0       0 ❌ ±0 

Results for commit bb068ac. ± Comparison against base commit a43e89f.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Aug 6, 2025

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.16%. Comparing base (a43e89f) to head (bb068ac).

Files with missing lines Patch % Lines
...wow/command/wait/stage/WaitingForAfterProcessed.kt 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #1847   +/-   ##
=========================================
  Coverage     91.15%   91.16%           
- Complexity     3751     3752    +1     
=========================================
  Files           707      707           
  Lines         13026    13034    +8     
  Branches        836      836           
=========================================
+ Hits          11874    11882    +8     
+ Misses          759      758    -1     
- Partials        393      394    +1     
Flag Coverage Δ
unittests 91.16% <84.61%> (+<0.01%) ⬆️

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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- Add new test function `waitingLastEmpty` to cover scenario when waiting for stage is empty
- Ensure cancel status is false and terminate status is false before completing
- Verify that the waiting last operation completes successfully

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang merged commit 1f8d0a4 into main Aug 6, 2025
9 checks passed
@Ahoo-Wang Ahoo-Wang deleted the waitingLast branch August 6, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant