Skip to content
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

Dedup duplicate update IDs for test environment #1695

Merged
merged 21 commits into from
Nov 26, 2024

Conversation

yuandrew
Copy link
Contributor

What was changed

Added functionality in test environment to cache update

Why?

Match non-test behavior

Checklist

  1. Closes Workflow Update in Test Environment should dedup updates by ID #1638

  2. How was this tested:
    new test written

  3. Any docs updates needed?

@yuandrew yuandrew marked this pull request as ready for review November 12, 2024 18:19
@yuandrew yuandrew requested a review from a team as a code owner November 12, 2024 18:19
@yuandrew yuandrew enabled auto-merge (squash) November 25, 2024 22:52
@yuandrew yuandrew disabled auto-merge November 25, 2024 22:53
@yuandrew yuandrew enabled auto-merge (squash) November 26, 2024 00:47
@yuandrew yuandrew merged commit 04e75d7 into temporalio:master Nov 26, 2024
13 checks passed
@yuandrew yuandrew deleted the workflow-update-duplicate-id branch November 26, 2024 03:00
ReyOrtiz pushed a commit to ReyOrtiz/temporal-sdk-go that referenced this pull request Dec 5, 2024
* PR feedback

* Push to ask slack question

* test passes

* cleanup

* more cleanup

* handle error properly, better guard rails for passing env

* potential solution to multiple async updates

* add wrapper the user can't see

* remove fail line used for debugging

* add mutex to ensure multiple updates are properly processed

* forgot to remove stale code

* forgot updateworkflowbyid

* handle in-flight updates, with debug prints

* prints removed

* clean up tests

* added check in tests to ensure all updates completed, add test to test second update coming in before first one completes, and fixed code that test revealed

* switch to use new TestUpdateCallback utility
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.

Workflow Update in Test Environment should dedup updates by ID
2 participants