Skip to content

feat(wow-core): add command size information to WaitSignal #1811

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 2 commits into from
Jul 31, 2025

Conversation

Ahoo-Wang
Copy link
Owner

  • Add getCommandSize() method to MonoCommandWaitNotifier
  • Update WaitSignal interface and SimpleWaitSignal class to include commandSize
  • This enhancement allows tracking the number of commands emitted by Saga

- Add getCommandSize() method to MonoCommandWaitNotifier
- Update WaitSignal interface and SimpleWaitSignal class to include commandSize
- This enhancement allows tracking the number of commands emitted by Saga

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label Jul 31, 2025
Copy link
Contributor

github-actions bot commented Jul 31, 2025

Test Results

1 468 tests  ±0   1 451 ✅ ±0   12m 12s ⏱️ +26s
  368 suites ±0      17 💤 ±0 
  368 files   ±0       0 ❌ ±0 

Results for commit cb57058. ± Comparison against base commit 6c84a7d.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jul 31, 2025

Codecov Report

❌ Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.24%. Comparing base (6c84a7d) to head (cb57058).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...e/ahoo/wow/command/wait/MonoCommandWaitNotifier.kt 71.42% 1 Missing and 1 partial ⚠️
...main/kotlin/me/ahoo/wow/command/wait/WaitSignal.kt 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1811      +/-   ##
============================================
+ Coverage     91.22%   91.24%   +0.02%     
- Complexity     3714     3715       +1     
============================================
  Files           701      701              
  Lines         12810    12818       +8     
  Branches        812      814       +2     
============================================
+ Hits          11686    11696      +10     
+ Misses          736      734       -2     
  Partials        388      388              
Flag Coverage Δ
unittests 91.24% <70.00%> (+0.02%) ⬆️

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.

…ream and waiting for stage

- Add command stream and waiting for stage logic to the test
- Use MockAggregateCreated event instead of mock
- Propagate saga handled context
- Verify command stream size

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang merged commit 3e81342 into main Jul 31, 2025
33 of 34 checks passed
@Ahoo-Wang Ahoo-Wang deleted the command-size branch July 31, 2025 08:17
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