Skip to content

test(client): fix race in activity interceptor test#693

Merged
jmaeagle99 merged 2 commits into
temporalio:mainfrom
jmaeagle99:interceptor-tests
May 14, 2026
Merged

test(client): fix race in activity interceptor test#693
jmaeagle99 merged 2 commits into
temporalio:mainfrom
jmaeagle99:interceptor-tests

Conversation

@jmaeagle99
Copy link
Copy Markdown
Contributor

What was changed

Split terminate interceptor checks into their own test.

Why?

StartActivityAsync_Interceptors_AreCalledProperly is frequently failing due to a race condition between cancelling the activity and terminating it. Cannot terminate an activity that is already cancelled.

Checklist

  1. Closes [Bug] Investigate StartActivityAsync_Interceptors_AreCalledProperly flake #648

  2. How was this tested: New tests

  3. Any docs updates needed? No

@jmaeagle99 jmaeagle99 requested a review from a team as a code owner May 14, 2026 18:00
@jmaeagle99 jmaeagle99 force-pushed the interceptor-tests branch from 13994c1 to f0074d0 Compare May 14, 2026 18:05
@jmaeagle99 jmaeagle99 force-pushed the interceptor-tests branch from f0074d0 to 6b35b9c Compare May 14, 2026 18:05
Copy link
Copy Markdown
Contributor

@maciejdudko maciejdudko left a comment

Choose a reason for hiding this comment

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

Awesome!

@jmaeagle99 jmaeagle99 enabled auto-merge (squash) May 14, 2026 18:15
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.

[Bug] Investigate StartActivityAsync_Interceptors_AreCalledProperly flake

2 participants