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

MOD-4118: handle deserialization errors #2342

Conversation

kramstrom
Copy link
Contributor

@kramstrom kramstrom commented Oct 16, 2024

Moves deserialization for inputs to after constructor to ensure we handle user exceptions and don't retry them -- likely regression from #2081

@kramstrom kramstrom force-pushed the kramstrom/mod-4118-deserialization-errors-shouldnt-terminate-entire-containers branch from 8803b51 to 0bbbf63 Compare October 16, 2024 10:49
@kramstrom kramstrom force-pushed the kramstrom/mod-4118-deserialization-errors-shouldnt-terminate-entire-containers branch from 0bbbf63 to f77a035 Compare October 16, 2024 10:50
@kramstrom kramstrom requested a review from freider October 16, 2024 11:32
@kramstrom kramstrom marked this pull request as ready for review October 16, 2024 11:34
@kramstrom kramstrom requested a review from aksh-at October 16, 2024 11:34
input_id="in-xyz0",
function_call_id="fc-123",
input=api_pb2.FunctionInput(
args=b"\x80\x04\x95(\x00\x00\x00\x00\x00\x00\x00\x8c\x17",
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of a byte string here, can you feed it a pickled object? or is that impossible because it needs to be a different package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah would have to somehow pickle the object in another venv than it's being pickled in which sounds annoying but more realistic, but both of these causes serialization errors

@kramstrom kramstrom requested review from freider and removed request for freider October 17, 2024 07:50
Copy link
Contributor

@gongy gongy 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 adding the test!

@kramstrom kramstrom merged commit adbd096 into main Oct 17, 2024
21 checks passed
@kramstrom kramstrom deleted the kramstrom/mod-4118-deserialization-errors-shouldnt-terminate-entire-containers branch October 17, 2024 08:32
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.

3 participants