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: reduce the amount of logs for repeated events #9755

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

eckter
Copy link
Contributor

@eckter eckter commented Nov 18, 2024

Reduces the amount of logs in two cases:

  1. Invalid work schedules: we only log the amount that were invalid and a few "samples"
  2. Impossible simulations in stdcm search: we only log the first actual error, then just the number of failures

@eckter eckter requested a review from a team as a code owner November 18, 2024 10:06
@eckter eckter requested review from Erashin and bougue-pe and removed request for Erashin November 18, 2024 10:06
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 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.87%. Comparing base (535d81d) to head (fd06dab).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9755      +/-   ##
==========================================
- Coverage   37.88%   37.87%   -0.02%     
==========================================
  Files         992      992              
  Lines       90965    90965              
  Branches     1176     1176              
==========================================
- Hits        34463    34452      -11     
- Misses      56048    56059      +11     
  Partials      454      454              
Flag Coverage Δ
editoast 73.32% <ø> (-0.04%) ⬇️
front 20.11% <ø> (ø)
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:

Copy link
Contributor

@bougue-pe bougue-pe left a comment

Choose a reason for hiding this comment

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

Feel free to ignore, suggestions are to make the link more explicit when reading the logs.

@eckter eckter force-pushed the ech/reduce-core-logging branch from b246cc1 to fd06dab Compare November 19, 2024 15:17
@eckter eckter enabled auto-merge November 19, 2024 15:19
Signed-off-by: Eloi Charpentier <eloi.charpentier.42@gmail.com>

core: stdcm: only log failed simulations once

Signed-off-by: Eloi Charpentier <eloi.charpentier.42@gmail.com>

Update core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/STDCMSimulations.kt

Co-authored-by: bougue-pe <150040524+bougue-pe@users.noreply.github.com>

Update core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/STDCMSimulations.kt

Co-authored-by: bougue-pe <150040524+bougue-pe@users.noreply.github.com>
@eckter eckter force-pushed the ech/reduce-core-logging branch from fd06dab to bde028f Compare November 20, 2024 14:00
@eckter eckter added this pull request to the merge queue Nov 20, 2024
Merged via the queue into dev with commit f0e3882 Nov 20, 2024
27 checks passed
@eckter eckter deleted the ech/reduce-core-logging branch November 20, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants