Skip to content

Conversation

@LalatenduMohanty
Copy link
Member

The concurrent access test validates the class's claim of being thread-safe by running 4 worker threads simultaneously calling get_available() and done(). This is critical for verifying the intended use case of multi-threaded build processing.

The empty graph test ensures proper error handling when the sorter is initialized without any nodes.

Fixes: #856

@LalatenduMohanty LalatenduMohanty requested a review from a team as a code owner November 18, 2025 14:55
@mergify mergify bot added the ci label Nov 18, 2025
The concurrent access test validates the class's claim of being
thread-safe by running 4 worker threads simultaneously calling
get_available() and done(). This is critical for verifying the
intended use case of multi-threaded build processing.

The empty graph test ensures proper error handling when the
sorter is initialized without any nodes.

Fixes: python-wheel-build#856

Signed-off-by: Lalatendu Mohanty <[email protected]>
@LalatenduMohanty LalatenduMohanty force-pushed the adding_tests_for_TrackingTopologicalSorter branch from 24c019e to 2968e56 Compare November 19, 2025 13:31
@mergify mergify bot merged commit 64ec201 into python-wheel-build:main Nov 19, 2025
111 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a test for thread safety with concurrent get_available() and done() calls in TrackingTopologicalSorter

2 participants