-
Notifications
You must be signed in to change notification settings - Fork 45
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: support arrival on stop signal for conflict detection #7322
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #7322 +/- ##
============================================
+ Coverage 28.99% 29.06% +0.06%
- Complexity 2021 2028 +7
============================================
Files 1223 1225 +2
Lines 149045 149222 +177
Branches 2934 2962 +28
============================================
+ Hits 43218 43365 +147
- Misses 104087 104107 +20
- Partials 1740 1750 +10
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a first pass of comments for the moment, trying to make sense of all of this.
core/src/main/java/fr/sncf/osrd/standalone_sim/ScheduleMetadataExtractor.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/fr/sncf/osrd/standalone_sim/ScheduleMetadataExtractor.kt
Show resolved
Hide resolved
core/src/main/java/fr/sncf/osrd/conflicts/IncrementalRequirementEnvelopeAdapter.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/infra_exploration/InfraExplorer.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/fr/sncf/osrd/conflicts/SpacingResourceGenerator.kt
Outdated
Show resolved
Hide resolved
core/src/main/java/fr/sncf/osrd/conflicts/SpacingResourceGenerator.kt
Outdated
Show resolved
Hide resolved
3766a56
to
ce71668
Compare
41267d6
to
176f4ff
Compare
ffe32d1
to
59f7f67
Compare
5ef4b4f
to
9737fdb
Compare
a97f97f
to
5c71726
Compare
88e815c
to
c4f4f8d
Compare
3ad325e
to
2a666fc
Compare
2a666fc
to
404eb89
Compare
9de94ec
to
c3bdc7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed Editoast only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for tests (which is where my review was actually required), but there's some weird stuff going on in core. Mostly minor comments but there's one that requires careful double-checking
core/src/main/java/fr/sncf/osrd/conflicts/IncrementalRequirementEnvelopeAdapter.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/infra_exploration/InfraExplorer.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/infra_exploration/InfraExplorer.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/stdcm/infra_exploration/InfraExplorer.kt
Outdated
Show resolved
Hide resolved
So far, there is a test that is supposed to provide a situation where: - train A goes from SA5 to SD2 through SC5, with a stop in SC5 - train B goes from SA5 to SD2 through SC4, with no stop but leaving after train A - the full path is clamped at SC1 for train A to avoid a conflict on PC0 - the full path is clamped at SC0 for train B to avoid a conflict on PC0 See https://osrd.fr/en/docs/explanation/models/data-models-full-example/svg_diagrams/small_infra_op_points.drawio.en.svg for a reference of the infrastructure.
Done for spacing and routing requirements Main target is TrainScheduleV2 (STDCM and TSv1 only minimal) Update tests accordingly Also: * add PathOffsetBuilder between Path and TravelledPath * fix offset types of ZoneUpdate and SignalSighting * get rid of test cases with empty stops in InfraExplorer Co-authored-by: Younes Khoudli <younes.khoudli@epita.fr> Co-authored-by: Victor "multun" Collod <victor.collod@epita.fr> Co-authored-by: Pierre-Etienne Bougué <bougue.pe@proton.me>
7412601
to
9179115
Compare
TODO:
update tests to cover cases imagined in Create a test generating spacing conflicts #7044 and Create test generating path (routing) conflicts #7045, check also if these tests are triggering TSv2's code.-> will be done in a subsequent PR