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: avoid recomputing unnecessary coastings, which sometimes crashed #9825

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Nov 22, 2024

The forward coasting would sometimes not intersect with the base curve, which causes some weirdness and 0-length steps.

That coasting would only happen if there's no intersection with min speed limit. In that case, it's not actually necessary to compute it (it's supposed to give the same result as the backwards one).

@eckter eckter requested a review from a team as a code owner November 22, 2024 14:40
@eckter eckter requested a review from Erashin November 22, 2024 14:40
@github-actions github-actions bot added the area:core Work on Core Service label Nov 22, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2024

⚠️ 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 37.77%. Comparing base (28c965c) to head (5d3a2fc).
Report is 10 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    #9825      +/-   ##
==========================================
- Coverage   37.79%   37.77%   -0.02%     
==========================================
  Files         994      994              
  Lines       91192    91185       -7     
  Branches     1176     1174       -2     
==========================================
- Hits        34468    34449      -19     
- Misses      56270    56282      +12     
  Partials      454      454              
Flag Coverage Δ
editoast 72.96% <ø> (-0.05%) ⬇️
front 20.08% <ø> (-0.02%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.49% <ø> (ø)
tests 86.74% <ø> (ø)

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.


🚨 Try these New Features:

The forward coasting would sometimes not intersect with the
base curve, which causes some weirdness and 0-length steps.

That coasting would only happen if there's no intersection with
min speed limit. In that case, it's not actually necessary
to compute it (it's supposed to give the same result as the
backwards one).

Signed-off-by: Eloi Charpentier <[email protected]>
@eckter eckter force-pushed the ech/fix-mareco-crash branch from c25c2d5 to 5d3a2fc Compare November 25, 2024 09:35
@eckter eckter enabled auto-merge November 25, 2024 09:42
@eckter eckter added this pull request to the merge queue Nov 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2024
@Erashin Erashin added this pull request to the merge queue Nov 25, 2024
Merged via the queue into dev with commit 46aa74f Nov 25, 2024
27 checks passed
@Erashin Erashin deleted the ech/fix-mareco-crash branch November 25, 2024 13:37
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.

3 participants