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

Fix bug when test files have no recorded time execution then they should not be detected as slow test files for RSpec split by test examples feature #163

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

ArturT
Copy link
Member

@ArturT ArturT commented Sep 28, 2021

bug

The bug is related to feature: RSpec split by examples.

When API https://docs.knapsackpro.com/api/v1/#build_distributions_last_get returns build distribution with all test files having time execution 0 seconds then all test files were detected as slow test files in knapsack_pro gem. This leads to loading a lot of test examples in RSpec. RSpec could take a lot of memory and slow down, freeze the CI server for the larger test suite.

solution

When test files have no recorded time execution (time execution is 0 seconds) then they should not be detected as slow test files by RSpec split by examples feature.

@ArturT ArturT added the bug label Sep 28, 2021
@ArturT ArturT changed the title Fix bug when test files have no recorded time execution then they should not be detected as slow test files Fix bug when test files have no recorded time execution then they should not be detected as slow test files for RSpec split by test examples feature Sep 28, 2021
@ArturT ArturT merged commit 00237cf into master Sep 28, 2021
@ArturT ArturT deleted the fix-slow-test-file-determiner branch September 28, 2021 19:19
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.

1 participant