Skip to content

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

@dandavison dandavison merged commit c8bc329 into main Jul 28, 2025
27 of 29 checks passed
@dandavison dandavison deleted the dan-9998-uws-tests branch July 28, 2025 17:54
tconley1428 pushed a commit that referenced this pull request Aug 28, 2025
* Set test server version back to `default`

* Improve docstrings

* Remove more experimental notices

* Test UwS attach behaviors

* Use an enum: Literal doesn't seem to pass mypy

* Skip under JTS
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.

2 participants