Skip to content
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

Ensured StratCon Campaigns Always Generate At Least One Track (Sentry) #6581

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IllianiCBT
Copy link
Collaborator

  • Refactored logic to extract reusable helper methods getScenarioOdds and getDeploymentTime, improving code clarity and maintainability.
  • Introduced fallback mechanism to guarantee a minimum of one track in StratCon Areas of Operation, preventing cases where zero tracks are generated.
  • Added getTrackCount method in StratconCampaignState to replace direct use of getTracks().size().
  • Corrected potential division by zero errors when distributing track objects by ensuring a valid track count.

Fix Sentry Report

- Refactored logic to extract reusable helper methods `getScenarioOdds` and `getDeploymentTime`, improving code clarity and maintainability.
- Introduced fallback mechanism to guarantee a minimum of one track in StratCon Areas of Operation, preventing cases where zero tracks are generated.
- Added `getTrackCount` method in `StratconCampaignState` to replace direct use of `getTracks().size()`.
- Corrected potential division by zero errors when distributing track objects by ensuring a valid track count.
@IllianiCBT IllianiCBT added Bug StratCon Bugs relating strictly to StratCon Severity: Medium Issues described as medium severity as per the new issue form labels Apr 7, 2025
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2025
Copy link

codecov bot commented Apr 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 11.43%. Comparing base (f44952c) to head (e0895dd).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6581   +/-   ##
=========================================
  Coverage     11.43%   11.43%           
- Complexity     6451     6455    +4     
=========================================
  Files          1087     1087           
  Lines        139447   139454    +7     
  Branches      21560    21561    +1     
=========================================
+ Hits          15944    15951    +7     
+ Misses       121908   121906    -2     
- Partials       1595     1597    +2     

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

@IllianiCBT IllianiCBT changed the title Ensured StratCon Campaigns Always Generate At Least One Track Ensured StratCon Campaigns Always Generate At Least One Track (Sentry) Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Severity: Medium Issues described as medium severity as per the new issue form StratCon Bugs relating strictly to StratCon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant