Repository navigation
fix: Chord counting of group children - #6733
Conversation
|
I have to duck out for a bit, but I still need to run the MRTC from #6721 with this change and also add it to the integration test suite. FWICT this diff is enough to fix the issue, may need some massaging to be mergable. |
Codecov Report
@@ Coverage Diff @@
## master #6733 +/- ##
==========================================
+ Coverage 70.51% 70.60% +0.09%
==========================================
Files 138 138
Lines 16499 16501 +2
Branches 2066 2066
==========================================
+ Hits 11634 11651 +17
+ Misses 4665 4655 -10
+ Partials 200 195 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
This pull request introduces 2 alerts and fixes 2 when merging e989a7b into 8ebcce1 - view on LGTM.com new alerts:
fixed alerts:
|
auvipy
left a comment
There was a problem hiding this comment.
changes look good to me, can you also add an integration test for this?
thedrow
left a comment
There was a problem hiding this comment.
I've left some comments and questions.
e989a7b to
dbf7cff
Compare
|
This pull request introduces 2 alerts when merging dbf7cff into 8ebcce1 - view on LGTM.com new alerts:
|
|
pypy3 failure is that bool/event confusion again. Unrelated to this diff AFAICT |
dbf7cff to
e14f095
Compare
|
@mjhoffman65 if you have time to look over this changeset wrt evolution from the changes we added in #6576 which were needed for executing tasks from generators, it'd be appreciated :) |
|
This pull request introduces 1 alert when merging e14f095 into 8ebcce1 - view on LGTM.com new alerts:
|
This will allow us to call it from other code in this module which needs to accurately count chord sizes.
This change ensures that we only have one piece of code which calculates chord sizes (ie. `_chord._descend()`, recently made protected so other canvas classes can use it as required). By doing so, we fix some edge cases in the chord counting logic which was being used for children of groups, and also add some unit tests to capture those cases and their expected behaviours. This change also introduces an integration test which checks the current behaviour of chains used as chord bodies when nested in groups. Due to some misbehaviour, likely with promise fulfillment, the `GroupResult` object will time out unless all of its children are resolved prior to `GroupResult` being joined (specifically, native joins block forever or until timeout). This misbehaviour is tracked by #6734 and the test in not marked as `xfail`ing to ensure that the current janky behaviour continues to work as expected rather than regressing.
e14f095 to
445c1b7
Compare
|
Labelling this as a blocker since it's needed to fix some of the behaviours tested in #6746 |
|
I think this should be good to go now, @thedrow |
|
This pull request introduces 1 alert and fixes 2 when merging 445c1b7 into 230c9ac - view on LGTM.com new alerts:
fixed alerts:
|
* improv: Deconflict `chord` class and kwarg names * improv: Make `chord.descend` protected not private This will allow us to call it from other code in this module which needs to accurately count chord sizes. * fix: Counting of chord-chain tails of zero tasks * fix: Chord counting of group children This change ensures that we only have one piece of code which calculates chord sizes (ie. `_chord._descend()`, recently made protected so other canvas classes can use it as required). By doing so, we fix some edge cases in the chord counting logic which was being used for children of groups, and also add some unit tests to capture those cases and their expected behaviours. This change also introduces an integration test which checks the current behaviour of chains used as chord bodies when nested in groups. Due to some misbehaviour, likely with promise fulfillment, the `GroupResult` object will time out unless all of its children are resolved prior to `GroupResult` being joined (specifically, native joins block forever or until timeout). This misbehaviour is tracked by celery#6734 and the test in not marked as `xfail`ing to ensure that the current janky behaviour continues to work as expected rather than regressing.
Description
Fixes #6721
This PR fixes the faulty chord counting reported in #6721, as well as an edge case where the tail task of a chain being counted for chord size could be an empty group (or other zero sized thing).