Skip to content

Feat!: Make model tests run concurrently#4047

Merged
VaggelisD merged 7 commits intomainfrom
vaggelisd/concurrent_tests
Apr 2, 2025
Merged

Feat!: Make model tests run concurrently#4047
VaggelisD merged 7 commits intomainfrom
vaggelisd/concurrent_tests

Conversation

@VaggelisD
Copy link
Contributor

@VaggelisD VaggelisD commented Mar 27, 2025

Currently, model tests run sequentially leveraging the unittest framework. This PR adds concurrency to further speed up the testing process by splitting the work between threads, each of whom runs a single test. Then, the results are aggregated into one and shown back to the user.

For this process, some of the internals of the TestTextRunner are borrowed in order to generate the final report; This is because we now have N runners which would output a full report for each test.

Copy link
Contributor

@izeigerman izeigerman left a comment

Choose a reason for hiding this comment

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

A few comments to consider, looks good otherwise

@VaggelisD VaggelisD force-pushed the vaggelisd/concurrent_tests branch from 669e236 to 3116186 Compare April 2, 2025 15:43
Copy link
Contributor

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Much cleaner! 🚀 🎉

@VaggelisD VaggelisD merged commit 0fc89dd into main Apr 2, 2025
22 checks passed
@VaggelisD VaggelisD deleted the vaggelisd/concurrent_tests branch April 2, 2025 20:49
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.

3 participants