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

feat: [MR-636] Add size limits as fields to the stream builder #3885

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

stiegerc
Copy link
Contributor

@stiegerc stiegerc commented Feb 10, 2025

The driver behind this change is to make smaller streams possible in state machine tests and also unit or prop tests. But for state machine tests especially, having to fill up an entire stream with 10k filler requests just to test something at capacity takes a long time.
Since this change makes the stream limit constants public, removing the duplicate MAX_STREAM_MESSAGES in the payload builder as a small additional change makes sense here (even though it's not strictly related).

@github-actions github-actions bot added the chore label Feb 10, 2025
@stiegerc stiegerc changed the title chore: Adds limits to the stream builder chore: Add limits to the stream builder Feb 10, 2025
@stiegerc stiegerc changed the title chore: Add limits to the stream builder feat: Add limits to the stream builder Feb 11, 2025
@github-actions github-actions bot added feat and removed chore labels Feb 11, 2025
@stiegerc
Copy link
Contributor Author

I don't see the need for a test here, since there already are tests for different limits for the stream builder and I didn't change any of the behaviour, it's just that now internal fields are used rather than the constants directly, but these fields are initialized using the same constants from before. Only for SyncMessageRouting, which is only used by state machine tests, there could be a difference. But even there the default remains the same as it was before. If there were an issue due to the stream builder it would also show up in a state machine test using this new capability.

@stiegerc stiegerc changed the title feat: Add limits to the stream builder feat: Add size limits as fields to the stream builder Feb 11, 2025
@stiegerc stiegerc marked this pull request as ready for review February 11, 2025 11:59
@stiegerc stiegerc requested review from a team as code owners February 11, 2025 11:59
@stiegerc stiegerc changed the title feat: Add size limits as fields to the stream builder feat: [MR-636] Add size limits as fields to the stream builder Feb 12, 2025
Copy link
Contributor

@michael-weigelt michael-weigelt left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants