Skip to content

Fix race condition in test_update_payload_conversion#1473

Merged
tconley1428 merged 4 commits intomainfrom
fix-test-serialization-context-flake
Apr 23, 2026
Merged

Fix race condition in test_update_payload_conversion#1473
tconley1428 merged 4 commits intomainfrom
fix-test-serialization-context-flake

Conversation

@brianstrauch
Copy link
Copy Markdown
Contributor

I observed a race condition for this test here, and Copilot identified this comment as a source of concern:

# for test purposes; update validators should not mutate workflow state

From my limited understanding, any Workflow state written in an update validator is not durable and when we run this test in time-skipping mode this is even more problematic.

Note that with this change, we lose verification that a Workflow's run-result payload gets the WorkflowSerializationContext in this particular test, but that path is already covered by test_payload_conversion_calls_follow_expected_sequence_and_contexts (tests/test_serialization_context.py:191)

@brianstrauch brianstrauch requested a review from a team as a code owner April 22, 2026 21:06
@brianstrauch brianstrauch requested a review from dandavison April 22, 2026 21:06
@tconley1428 tconley1428 merged commit 53ff065 into main Apr 23, 2026
29 of 31 checks passed
@tconley1428 tconley1428 deleted the fix-test-serialization-context-flake branch April 23, 2026 21:59
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