Skip to content

fix: make label batching test independent of order#1872

Open
Sirhan1 wants to merge 1 commit into
Graphify-Labs:v8from
Sirhan1:fix/flaky-label-batch-order
Open

fix: make label batching test independent of order#1872
Sirhan1 wants to merge 1 commit into
Graphify-Labs:v8from
Sirhan1:fix/flaky-label-batch-order

Conversation

@Sirhan1

@Sirhan1 Sirhan1 commented Jul 13, 2026

Copy link
Copy Markdown

Summary

When building the project one of the tests failed randomly.

This fixes the flaky test.

label_communities runs batches in parallel, so the batches can be processed in a different order each time. The test was expecting the order to always be 100, 100, 50, which isn't guaranteed.

The test now checks that the batch sizes are correct without depending on the order.

No production code was changed.

Testing

  • Ran the affected test multiple times
  • Ran tests/test_labeling.py
  • Ran the full test suite

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