temporalio / sdk-python

Temporal Python SDK
MIT License
466 stars 72 forks source link

[Bug] Fix flaky tests #568

Open dandavison opened 4 months ago

dandavison commented 4 months ago

The test suite currently has multiple tests that sometimes fail. Let's collect examples in this ticket, and fix them.

E.g.

FAILED tests/worker/test_workflow.py::test_workflow_patch_memoized - Failed: Timeout >600.0s
FAILED tests/worker/test_workflow.py::test_workflow_failure_types_configured - AssertionError: timed out waiting for equal, asserted against last value of False

https://github.com/temporalio/sdk-python/actions/runs/9745494374/job/26893565606?pr=566 https://github.com/temporalio/sdk-python/actions/runs/9745832979/attempts/1?pr=567

dandavison commented 2 months ago

https://github.com/temporalio/sdk-python/actions/runs/10403635533/job/28817496590?pr=609

FAILED tests/worker/test_activity.py::test_sync_activity_process_non_picklable_heartbeat_details - assert "Can't pickle" in "AttributeError: Can't get local object 'picklable_activity_non_pickable_heartbeat_details.<locals>.<lambda>'"