Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10677 +/- ##
=======================================
Coverage 89.28% 89.28%
=======================================
Files 153 153
Lines 20391 20391
Branches 2430 2430
=======================================
Hits 18206 18206
Misses 1881 1881
Partials 304 304
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
Found 3 test failures on Blacksmith runners: Failures
|
|
The job is failing consistently in the Redis-backend smoke test for the group-body chord case:
The failure is therefore in chord error propagation for a group callback, not in Redis startup or the GitHub Actions configuration. Relevant code:
Recommended fixUpdate the common chord-error handler, rather than the Redis backend, so a group callback is failed with the original chord exception instead of being revoked. The relevant logic is called here: except ChordError as exc:
logger.exception('Chord %r raised: %r', request.group, exc)
return self.chord_error_from_stack(callback, exc)
def chord_error_from_stack(self, callback, exc=None):
callback = maybe_signature(callback, app=self.app)
# A group callback has no single task result to fail. Propagate the
# chord failure to each child result instead of revoking the children.
if isinstance(callback, group):
for child in callback.tasks:
child = maybe_signature(child, app=self.app)
if child.id is None:
child.freeze()
self.mark_as_failure(
child.id,
exc,
request=Context(
id=child.id,
group=callback.options.get("group"),
),
)
return
# Existing handling for single-task, chain, and chord callbacks.
return self._chord_error_from_stack(callback, exc)Use the project’s existing request/context construction and error serialization helpers rather than introducing a new
If the current implementation deliberately revokes body tasks to prevent execution, the equivalent safer implementation is to revoke them only after storing a Add a regression assertion covering the failing body type: with pytest.raises(ExpectedException, match="Task expected to fail"):
result.get(timeout=RESULT_TIMEOUT)The existing test already covers this scenario; once group callback error propagation stores the original failure instead of producing revoked child results, the |
|
@GangEunzzang do you have time working on the fix? or investigate the kombu compatibility issues? |
|
@auvipy Yes, looking into it now. |
|
@auvipy Looked into the Skipping the |
|
please come with the pr |
|
intentionally merging this. lets fix the CI failures in another pr |
|
Opened as #10679. |
No description provided.