Skip to content

Add tests for update-with-start reattach behavior #1000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dandavison
Copy link
Contributor

@dandavison dandavison commented Jul 25, 2025

Add tests double-checking update-with-start reattach semantics. These are already covered by server integration tests. See e.g. temporalio/temporal#7693 and subsequent PRs.

image

@dandavison dandavison requested a review from a team as a code owner July 25, 2025 20:47
@dandavison dandavison force-pushed the dan-9998-uws-tests branch 3 times, most recently from ad2935b to 891bdf2 Compare July 25, 2025 20:53
@dandavison dandavison changed the base branch from dan-9999-test-server-version to main July 25, 2025 21:14
@dandavison dandavison marked this pull request as draft July 25, 2025 21:32
@dandavison dandavison force-pushed the dan-9998-uws-tests branch from 891bdf2 to 05c0cde Compare July 25, 2025 22:40
@dandavison dandavison marked this pull request as ready for review July 25, 2025 22:40
@dandavison dandavison force-pushed the dan-9998-uws-tests branch from 05c0cde to a844cac Compare July 25, 2025 22:42

@workflow.signal
async def unblock_update(self):
self._unblock_update.set()
Copy link

Choose a reason for hiding this comment

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

Bug: Non-Deterministic Workflow Synchronization

The WorkflowWithUpdate class uses asyncio.Event() for synchronization, which is not workflow-safe. This violates Temporal's determinism requirements, leading to non-deterministic replay behavior (e.g., workflows hanging) because asyncio.Event objects do not persist state across replays. Workflows should use workflow-safe primitives like workflow.wait_condition() with boolean flags.

Locations (1)

Fix in CursorFix in Web

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.

1 participant