-
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: directly load infrastructure from RailJSON #7248
Conversation
f23d594
to
c1da19e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #7248 +/- ##
======================================
Coverage ? 10.91%
======================================
Files ? 601
Lines ? 100477
Branches ? 930
======================================
Hits ? 10965
Misses ? 88587
Partials ? 925
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
200c6c0
to
4cd84ce
Compare
7e656a3
to
a0a4634
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.
Overall LGTM.
Most of my comments are kinda nitpicky, I'll leave to @multun judgement whether to address them now or later.
The process is globally much more readable than the legacy import, but it still feels kinda hard to follow the big picture. I wonder if some restructuring - or more documentation could help.
It's also unclear why some stuff is done in the infra implementation, in the builder and in the parse function - I'm guessing this is still kinda WIP :)
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
core/src/main/kotlin/fr/sncf/osrd/sim_infra_adapter/RawInfraRJSParser.kt
Outdated
Show resolved
Hide resolved
...srd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/new_impl/RawInfraFromRjsBuilder.kt
Outdated
Show resolved
Hide resolved
5fbfaef
to
10745a7
Compare
d239a6b
to
bce3faa
Compare
bce3faa
to
89c91b6
Compare
89c91b6
to
5b5d931
Compare
core/kt-osrd-rjs-parser/src/main/kotlin/fr/sncf/osrd/RawInfraRJSParser.kt
Show resolved
Hide resolved
5b5d931
to
ebbeb01
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.
I globally agree with @younesschrifi. This is a very good step (and an essential one, goodbye java infra) towards the right direction. Good job :)
...srd-sim-infra/src/main/kotlin/fr/sncf/osrd/sim_infra/impl/new_impl/RawInfraFromRjsBuilder.kt
Outdated
Show resolved
Hide resolved
ebbeb01
to
f2d4583
Compare
- removes SimInfraAdapter, which was a leftover of the development of the adapter. the old adapter now directly returns a RawInfra - add a new builder and RawInfra implementation Co-Authored-By: Victor Collod <victor.collod@epita.fr>
This change also removes: - the old adapter - the tooling to compare instructures Co-Authored-By: Pierre-Etienne Bougué <bougue.pe@proton.me>
f2d4583
to
8873c87
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.
LGTM, I skimmed through the first commit but I did review large parts of it
I tested on STDCM-related stuff, there's a new bug but it's not related to this specific PR (something with conditional speed limits)
I had some weird stuff with gradle / intellij at first when moving to this branch, something about broken cache files. But it fixed itself before I could figure out what was going on.
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, tested ✅
Fix part of #7056
First commit is a rebased squash of all PRs previously targeting
core/infra_load_refactor
branch.(some tests are still using legacy builder)