-
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
editoast: refactoring STDCM handler #9509
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 #9509 +/- ##
==========================================
+ Coverage 37.84% 37.86% +0.01%
==========================================
Files 990 992 +2
Lines 90920 90973 +53
Branches 1176 1176
==========================================
+ Hits 34413 34451 +38
- Misses 56053 56068 +15
Partials 454 454
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
a171352
to
0e3603c
Compare
Before checking the code itself: do we want to merge it during the feature freeze? Are there bug fixes in there, or is it just moving code around? |
This is purely a refactoring with no functional changes. |
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.
Thanks for the addressed comments from #9434.
The same as any kind of change, bugs. I believe refactorings are even more "unstable" than new features as they affect what's already there and not just new things. This specific part of the code that translates front inputs into core payloads is especially sensitive. It's poorly tested and it's difficult to track problems there, and we've had issues recently. At a time where we're working on stabilizing stdcm, it would be painful to introduce instability. Let's talk about this on matrix, it's not about this PR specifically. |
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.
Thanks for all this work, it looks much more organized now! I left a bunch of comments which are mostly about:
- module organization
- visibility being more permissive than required (I didn't add a comment in all places)
- naming
It would be nice to have some module-level documentation in stdcm.rs
describing the whole workflow still, even if it's much clearer now thanks to structure.
I'm not as worried about bugs as @eckter is: we already released a tested version and we're shooting demo videos very soon. I'd say that if a bug arises we're better off fixing it in the refactored code directly since this won't impact the PIP. I'm fine with waiting until the end of the week before merging in case a critical bug happens preventing us from shooting the videos, but there's no point in waiting after that point imo. Wdyt?
0e3603c
to
d2da584
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 for front part (not tested, we were'nt handling this status anymore)
0a2dc9e
to
380300e
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.
Thanks for the changes!
9882eef
to
1d42ba4
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.
Much clearer, thanks 👍
I've noticed a couple weird things (that were already there in the previous version), I've commented them and I'll check further
1d42ba4
to
c73a137
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. Thanks for the changes!
Signed-off-by: hamz2a <atrari.hamza@gmail.com>
56bef61
to
b2cf36b
Compare
closes #9476