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

test: ensure chunk count is at least half of target #1282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VolodymyrBg
Copy link

Why are these changes needed?

The FuzzOperatorAssignments test had a TODO comment indicating that we need to verify the actual number of chunks is not less than half of the target value. This check is important to ensure the CalculateChunkLength algorithm produces reasonable chunk distributions. Without this validation, we might miss cases where the chunk count becomes too low relative to the target, which could lead to inefficient data distribution among operators.

Checks

[x] I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
[x] I've checked the new test coverage and the coverage percentage didn't drop.
Testing Strategy
[x] Unit tests
[ ] Integration tests
[ ] This PR is not tested :(

Added assertion in TestOperatorAssignments to verify that when using target 
number of chunks, the actual number of chunks is not less than half of the 
target value. This helps ensure the chunk size calculation produces reasonable 
results within expected bounds.
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.

1 participant