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

core: prioritize signaling system during pathfinding #10857

Merged
merged 3 commits into from
Feb 25, 2025

Conversation

bougue-pe
Copy link
Contributor

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

@bougue-pe bougue-pe requested a review from a team as a code owner February 19, 2025 09:39
@bougue-pe bougue-pe requested a review from Khoyo February 19, 2025 09:39
@github-actions github-actions bot added the area:core Work on Core Service label Feb 19, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.53%. Comparing base (65e3c19) to head (888ff46).
Report is 26 commits behind head on dev.

❗ 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              
Flag Coverage Δ
editoast 74.38% <ø> (-0.01%) ⬇️
front 90.36% <ø> (+0.03%) ⬆️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (-0.01%) ⬇️
railjson_generator 87.58% <ø> (ø)
tests 87.90% <ø> (ø)

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.

Copy link
Contributor

@Erashin Erashin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@bougue-pe bougue-pe requested a review from eckter February 20, 2025 14:47
Copy link
Contributor

@eckter eckter left a 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

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]>
@bougue-pe bougue-pe force-pushed the peb/core/pf_prioritize_signaling branch from 2789daa to 888ff46 Compare February 25, 2025 09:37
@bougue-pe bougue-pe added this pull request to the merge queue Feb 25, 2025
Merged via the queue into dev with commit 07fc9d1 Feb 25, 2025
27 checks passed
@bougue-pe bougue-pe deleted the peb/core/pf_prioritize_signaling branch February 25, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core Work on Core Service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: prioritize signaling systems for blocks of pathfinding
5 participants