Skip to content

[HZ-5415] Asyncio cancellation tests#821

Merged
yuce merged 9 commits into
hazelcast:masterfrom
yuce:asyncio-cancellation-tests
Jun 17, 2026
Merged

[HZ-5415] Asyncio cancellation tests#821
yuce merged 9 commits into
hazelcast:masterfrom
yuce:asyncio-cancellation-tests

Conversation

@yuce

@yuce yuce commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

I've improved cancellation behavior and added cancellation tests.

@codecov-commenter

codecov-commenter commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.19%. Comparing base (fbe9b7a) to head (c00183e).

Files with missing lines Patch % Lines
hazelcast/serialization/service.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #821      +/-   ##
==========================================
- Coverage   94.20%   94.19%   -0.02%     
==========================================
  Files         411      411              
  Lines       27511    27513       +2     
==========================================
- Hits        25918    25915       -3     
- Misses       1593     1598       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuce yuce requested a review from emreyigit June 15, 2026 07:01
@yuce yuce changed the title Asyncio cancellation tests [HZ-5415] Asyncio cancellation tests Jun 15, 2026
@yuce yuce added this to the 5.7.0 milestone Jun 15, 2026
return
except Exception as e:
invocation.future.set_exception(e)
if not invocation.future.cancelled():

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One thing looks interesting. Future is checked here whether canceled but not in _complete_with_error. Does it matter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, updated at: dcd2057

async def test_cancel(self):
async def keep_setting():
for i in range(1000):
print(i)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not important but this may be noisy.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed at: dcd2057

@yuce yuce requested a review from emreyigit June 16, 2026 13:03
@yuce yuce merged commit 753b42a into hazelcast:master Jun 17, 2026
9 of 11 checks passed
@yuce yuce deleted the asyncio-cancellation-tests branch June 17, 2026 09:38
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.

3 participants