-
Notifications
You must be signed in to change notification settings - Fork 46
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
core: prioritize signaling system during pathfinding #10857
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #10857 +/- ##
==========================================
+ Coverage 82.49% 82.53% +0.04%
==========================================
Files 1084 1086 +2
Lines 107614 107931 +317
Branches 739 740 +1
==========================================
+ Hits 88771 89082 +311
- Misses 18801 18807 +6
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
core/kt-osrd-signaling/src/main/kotlin/fr/sncf/osrd/signaling/impl/SigSystemManagerImpl.kt
Outdated
Show resolved
Hide resolved
core/kt-osrd-signaling/src/main/kotlin/fr/sncf/osrd/signaling/impl/SigSystemManagerImpl.kt
Outdated
Show resolved
Hide resolved
core/kt-osrd-signaling/src/main/kotlin/fr/sncf/osrd/signaling/impl/SigSystemManagerImpl.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/api/api_v2/pathfinding/PathfindingBlocksEndpointV2.kt
Outdated
Show resolved
Hide resolved
core/src/test/kotlin/fr/sncf/osrd/pathfinding/PathfindingSignalingTest.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, good job!
Just a couple nitpicks that may be ignored
core/kt-osrd-signaling/src/main/kotlin/fr/sncf/osrd/signaling/impl/SigSystemManagerImpl.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: Pierre-Etienne Bougué <[email protected]>
To be corrected (should prioritize BAL over BAPR) Signed-off-by: Pierre-Etienne Bougué <[email protected]>
When everything else is equal, use the preferred signaling system. Update fail test now that it works. Signaling extra penalty: * is dependant of the duration, not the number of blocks * tries to avoid absorbtion by floating-point Signed-off-by: Pierre-Etienne Bougué <[email protected]>
2789daa
to
888ff46
Compare
When everything else is equal, use the preferred signaling system.
Also migrate pathfinding signaling tests to API v2 (and add new tests).
🔍 please review by commit.
Fix #10296