Closed leonqadirie closed 10 months ago
Attention: 102 lines
in your changes are missing coverage. Please review.
Comparison is base (
d3572b9
) 79.19% compared to head (7b1ee20
) 79.48%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks for the contribution! I'll try and take a look as soon as I can but it might be a couple of days. 😁
I think we can reduce a lot of code duplication by having the non-scoped methods call the scoped ones just with the default scope as an argument. That also will reduce it to 1 implementation of each call (join/leave/etc)
Well, duh. Thanks for the pointers, learned a bit or two. 😅 I did get occasional CI failures for the async-std tests, but suspect they are not related to my code.
I did get occasional CI failures for the async-std tests, but suspect they are not related to my code.
Yeah I'm working on stabilizing these actually. I have another branch I'm going to split out some changes for this runtime to stabilize the flaky tests. I'm working on a wasm runtime but that might be a dead end lol
Apologies but this might take some time to get to another review. We just had a new baby and I'm a little sleep deprived at the moment lol
First of all, congratulations! And no worries, take all the time you need. :)
I think it's really close! but there's some cleanups and optimizations that could be done. Should be quick & minimal. Thanks again!
Cool and thanks for stabilizing the async-std tests!
A bit unsure of how to proceed/which cleanups and optimizations you are referring to specifically. Prior reviews seem to be addressed in logic; besides this one, that is:
This is where having another index might be helpful, i.e. Scope -> Group name in a separate mapping. But that's an optimization that can be added in the future.
-- Addendum: 2 reviews are not marked as outdated as they were mapped to unchanged comments instead of the function bodies.
I think I missed a button to.mark.the review done. I'm happy to leave the double index but to the future but the 6 comments in my latest review should be addressed prior to merging. If anything doesn't make sense, let me know. And feel free to mark the old review comments as done to clear up the pending comments
Thanks for addressing the comments and bearing with me! This looks great, and thanks for the additions :)
Nice! Feels good to have my first 'real' PR merged. :) Thanks for the feedback and please always feel free to be (constructively) pedantic with my code, I already learned a ton here.
Will address the test and then maybe take a look into what kind of index optimisation you had in mind.
Might resolve #31.
I went the proposed route with split functions and
(scope, group)
as an identifying tuple. Couldn't find the mentioned protobuf OTW cluster protocol changes.As this is my first-ever PR with 'real' code I suggest a more thorough look. My main concerns besides the API design are:
ActorCell
is part of multiple scopes and groups. Couldn't find any mechanisms for the existing process group implementation, so I assume this is not necessary.Thanks!
-- Edit: Regarding the code coverage: this seems to mostly stem from duplicated yet also previously untested logic due to the split function approach. The exception is the new
which_scopes_and_groups()
for which I can provide a test if desired - just a bit trickier when running tests concurrently. :)