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: stdcm: increase max length to test for engineering allowances #10386

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Jan 15, 2025

Fix #10385 (at least the few cases I've seen recently, I'll re-check if it still happens afterwards)

So apparently even 20km isn't always enough to add any amount of delay, because sometimes we barely have the traction to maintain the current speed. Ideally we should remove that check altogether, but it would still cause performance issues (repeatedly computing margins over potentially thousands of kilometers would certainly cause timeouts). We should look into #7136 for a proper solution.

EDIT: this version is better but it's still not enough. I've found a case with a 300km long allowance section that was still impossible. We may need to rework some stuff.


So there's two extra fixes:

  1. Small bugfix on how we compute the "slowest envelope": we'd stop early if the max speed envelope ended with a speedup (we'd "intersect" right away)
  2. In post-processing, prefill the fixed time point list with the end of every engineering allowance. This avoids some unnecessary and constraining extra fixed points at the wrong places.

@eckter eckter requested a review from Erashin January 15, 2025 09:26
@eckter eckter requested a review from a team as a code owner January 15, 2025 09:26
@github-actions github-actions bot added the area:core Work on Core Service label Jan 15, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 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 81.59%. Comparing base (675d279) to head (18d2096).
Report is 5 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   #10386      +/-   ##
==========================================
- Coverage   81.64%   81.59%   -0.05%     
==========================================
  Files        1066     1067       +1     
  Lines      105735   105535     -200     
  Branches      727      727              
==========================================
- Hits        86328    86114     -214     
- Misses      19366    19380      +14     
  Partials       41       41              
Flag Coverage Δ
editoast 73.63% <ø> (-0.05%) ⬇️
front 89.30% <ø> (-0.04%) ⬇️
gateway 2.18% <ø> (ø)
osrdyne 3.28% <ø> (ø)
railjson_generator 87.50% <ø> (ø)
tests 87.05% <ø> (ø)

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 marked this pull request as draft January 15, 2025 14:31
@eckter eckter force-pushed the ech/fix-engineering-max-length branch from 21e4c3a to 18d2096 Compare January 15, 2025 15:42
@eckter eckter marked this pull request as ready for review January 15, 2025 15:45
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: stdcm: we're (still) too optimistic on engineering allowances
2 participants