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: add error detail when using a route that has no exit signal #7380

Merged
merged 1 commit into from
May 16, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented May 7, 2024

Using a path that included a route that doesn't end on a block or buffer stop used to cause obscure errors at the simulation step. With this change, the error happens during the pathfinding with a error clearly pointing where to fix the infra problem.

@eckter eckter requested a review from a team as a code owner May 7, 2024 09:40
@eckter eckter requested a review from multun May 7, 2024 09:40
@eckter eckter changed the title core: add error detail when a route has missing exit signal core: add error detail when using a route that has no exit signal May 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented May 7, 2024

Codecov Report

Attention: Patch coverage is 41.66667% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 29.44%. Comparing base (803331e) to head (9604c3e).
Report is 5 commits behind head on dev.

Files Patch % Lines
.../api_v2/pathfinding/PathfindingBlocksEndpointV2.kt 41.66% 6 Missing and 1 partial ⚠️
.../osrd/api/pathfinding/PathfindingBlocksEndpoint.kt 36.36% 6 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #7380      +/-   ##
============================================
+ Coverage     29.39%   29.44%   +0.04%     
+ Complexity     2016     2013       -3     
============================================
  Files          1162     1162              
  Lines        143505   143521      +16     
  Branches       2809     2814       +5     
============================================
+ Hits          42184    42259      +75     
+ Misses        99667    99602      -65     
- Partials       1654     1660       +6     
Flag Coverage Δ
core 76.18% <41.66%> (-0.12%) ⬇️
editoast 72.32% <ø> (+0.26%) ⬆️
front 9.83% <ø> (ø)
gateway 2.41% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 83.96% <ø> (ø)

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.

@eckter eckter force-pushed the ech/detail-pathfinding-error branch from ea5bf86 to e9b777b Compare May 7, 2024 10:04
@eckter eckter force-pushed the ech/detail-pathfinding-error branch from e9b777b to 9604c3e Compare May 15, 2024 07:57
@eckter eckter added this pull request to the merge queue May 16, 2024
Merged via the queue into dev with commit c231679 May 16, 2024
18 checks passed
@eckter eckter deleted the ech/detail-pathfinding-error branch May 16, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants