Skip to content

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Sep 8, 2025

What changed?
Added the Done state to the mapper

Why?
Forget it when I added the new status

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link
Contributor

@c-warren c-warren left a comment

Choose a reason for hiding this comment

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

Once my "fuzz" testing PR is in for our proto<>thrift mappers it would be worthwhile adding similar testing for the mappers in this file as well: cadence-workflow/cadence-go-client#1457

Alternatively, adding tests that test the various permutations of the mapper would be worthwhile to ensure we get the expected result based on the input should catch this sort of thing in the future (though were you to do that I'd recommend breaking out the Status convertors into their own function to minimize the permutations that need to be tested).

@jakobht
Copy link
Member Author

jakobht commented Sep 9, 2025

Thank you! Yeah I do think we could do a better test of this pretty easily - I'll make a task. A generic solution would be wonderful :)

@jakobht jakobht merged commit 147489a into cadence-workflow:master Sep 9, 2025
32 checks passed
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