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: pathfinding: filter out routes without blocks #5515

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Oct 30, 2023

Fixes #5434
Fixes #3746
Fixes #5544

As explained in the comment: this should never happen, but poor signaling data may be the cause of routes that have no block. Filtering them out fixes the 500s caused by this case.

@eckter eckter requested a review from a team as a code owner October 30, 2023 13:40
@eckter eckter force-pushed the ech/fix-broken-route-to-block branch from b111c8e to 2414205 Compare October 30, 2023 13:51
@codecov
Copy link

codecov bot commented Oct 30, 2023

Codecov Report

Merging #5515 (5263c45) into dev (7e5a041) will increase coverage by 0.00%.
Report is 4 commits behind head on dev.
The diff coverage is 70.00%.

@@            Coverage Diff            @@
##                dev    #5515   +/-   ##
=========================================
  Coverage     18.80%   18.81%           
- Complexity     2320     2321    +1     
=========================================
  Files           861      861           
  Lines        103592   103598    +6     
  Branches       2413     2414    +1     
=========================================
+ Hits          19483    19487    +4     
- Misses        82760    82761    +1     
- Partials       1349     1350    +1     
Flag Coverage Δ
core 78.77% <70.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...f/osrd/standalone_sim/ScheduleMetadataExtractor.kt 93.43% <100.00%> (ø)
...rd/api/pathfinding/PathfindingResultConverter.java 92.34% <66.66%> (-1.44%) ⬇️

... and 1 file with indirect coverage changes

@eckter eckter added this pull request to the merge queue Oct 31, 2023
Merged via the queue into dev with commit 0efa9de Oct 31, 2023
@eckter eckter deleted the ech/fix-broken-route-to-block branch October 31, 2023 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants