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: fix gauge loading from railjson #6524

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Conversation

bougue-pe
Copy link
Contributor

Add corresponding tests: adapt existing tests to read railjson instead of modifying gauge constraints after read (add gauge in railjson generator).
⚠️ this will add gauge constraints to TA0 in small_infra.

Also:

  • remove useless code in RawInfraAdapter.kt

@bougue-pe bougue-pe requested review from a team as code owners January 31, 2024 10:18
@bougue-pe bougue-pe requested review from Khoyo, eckter and Erashin January 31, 2024 10:18
@bougue-pe bougue-pe added the kind:bug Something isn't working label Jan 31, 2024
@bougue-pe bougue-pe force-pushed the peb/core/fix_gauge_load branch 2 times, most recently from 3f91584 to 50e9c14 Compare January 31, 2024 10:39
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (e244f3e) 28.00% compared to head (302e1e7) 28.00%.

Files Patch % Lines
.../railjson_generator/schema/infra/range_elements.py 57.14% 3 Missing ⚠️
...schema/infra/trackranges/RJSLoadingGaugeLimit.java 33.33% 2 Missing ⚠️
...r/railjson_generator/schema/infra/track_section.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #6524      +/-   ##
============================================
- Coverage     28.00%   28.00%   -0.01%     
  Complexity     2167     2167              
============================================
  Files          1034     1034              
  Lines        127675   127683       +8     
  Branches       2603     2602       -1     
============================================
- Hits          35759    35758       -1     
- Misses        90403    90411       +8     
- Partials       1513     1514       +1     
Flag Coverage Δ
core 78.55% <50.00%> (-0.02%) ⬇️
editoast 75.44% <ø> (-0.02%) ⬇️
front 8.61% <ø> (ø)
gateway 2.50% <ø> (ø)
railjson_generator 87.25% <63.63%> (-0.19%) ⬇️
tests 81.95% <ø> (ø)

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.

@bougue-pe bougue-pe force-pushed the peb/core/fix_gauge_load branch from 50e9c14 to b64bd25 Compare January 31, 2024 10:56
Copy link
Contributor

@flomonster flomonster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good catch 👏

@bougue-pe bougue-pe self-assigned this Feb 1, 2024
Add corresponding tests: adapt existing tests to read railjson instead of
modifying gauge constraints after read (add gauge in railjson generator).

Also:
* remove useless code in RawInfraAdapter.kt
@bougue-pe bougue-pe force-pushed the peb/core/fix_gauge_load branch from b64bd25 to 302e1e7 Compare February 1, 2024 16:16
@bougue-pe bougue-pe enabled auto-merge February 1, 2024 16:20
@bougue-pe bougue-pe added this pull request to the merge queue Feb 1, 2024
Merged via the queue into dev with commit dfdd7ca Feb 1, 2024
22 checks passed
@bougue-pe bougue-pe deleted the peb/core/fix_gauge_load branch February 1, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants