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

Fix bugs when using a custom FailureConverter in tests #1490

Merged

Conversation

boxofrad
Copy link
Contributor

What was changed

Follow up to #1484, fixing a couple of issues with using a custom failure converter:

  1. We weren't correctly threading the failure converter down to activities and child workflows, so they were still using the default converter.
  2. The NonRetryable flag on the protobuf failure type wasn't being honored for custom errors.

Checklist

  1. How was this tested:

I tested this change against our app's test suite, but it could probably use a case in the SDK's test suite itself. I'd be happy to add that if you're happy with this approach generally.

@boxofrad boxofrad requested a review from a team as a code owner May 24, 2024 15:11
@Quinn-With-Two-Ns
Copy link
Contributor

Thanks for another contribution, could we also include some test to verify the fixes you made and make sure we don't regress in the future?

@boxofrad
Copy link
Contributor Author

Yep, sure thing! It's a long weekend here in the UK, but I'll pick it up next week 🙇🏻

@boxofrad
Copy link
Contributor Author

Hey @Quinn-With-Two-Ns 👋🏻 I've added a test case for this now, let me know what you think!

Copy link
Contributor

@Quinn-With-Two-Ns Quinn-With-Two-Ns left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

boxofrad added 2 commits May 29, 2024 10:31
Follow up to temporalio#1484.

1. We weren't correctly threading the failure converter down to
   activities and child workflows, so they were still using the
   default converter.

2. The `NonRetryable` flag on the protobuf failure type wasn't being
   honored for custom errors.
@Quinn-With-Two-Ns Quinn-With-Two-Ns force-pushed the failure-converter-testing branch from 98434dd to 5c558d7 Compare May 29, 2024 17:31
@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 4dd1ed8 into temporalio:master May 31, 2024
13 checks passed
@boxofrad boxofrad deleted the failure-converter-testing branch June 3, 2024 12:01
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