Skip to content

Conversation

smaye81
Copy link
Member

@smaye81 smaye81 commented Dec 14, 2023

This adds tests for message size for both client mode and server mode.

reliesOnMessageReceiveLimit: true
# TODO - The size limit is currently only calculated against the proto size
relevantCodecs:
- CODEC_PROTO
Copy link
Member Author

Choose a reason for hiding this comment

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

@jhump the request expansion logic seems to just use the proto codec for size calculations. I'm not sure if we should also test at least the JSON codec, but my hunch is that testing with proto only is probably fine?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, yes. Sorry I forgot to mention it to you. It may be worth adding a check when we load the test case library to complain if it sees a request that uses the "expand request" stuff but with a codec other than proto.

@smaye81 smaye81 requested a review from jhump December 14, 2023 00:47
Copy link
Member

@jhump jhump left a comment

Choose a reason for hiding this comment

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

LGTM!

reliesOnMessageReceiveLimit: true
# TODO - The size limit is currently only calculated against the proto size
relevantCodecs:
- CODEC_PROTO
Copy link
Member

Choose a reason for hiding this comment

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

Ah, yes. Sorry I forgot to mention it to you. It may be worth adding a check when we load the test case library to complain if it sees a request that uses the "expand request" stuff but with a codec other than proto.

@smaye81 smaye81 merged commit 00cedea into main Dec 14, 2023
@smaye81 smaye81 deleted the sayers/size_tests branch December 14, 2023 22:02
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