Skip to content

Fix slow unit test #17465

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

Merged
merged 1 commit into from
Mar 31, 2025
Merged

Fix slow unit test #17465

merged 1 commit into from
Mar 31, 2025

Conversation

philipp-spiess
Copy link
Member

This PR reworks a unit test that created a file in the project root and then proceeded by scanning everything in the git root for candidates. The issue specifically is that with the .debug/ folder, our project root can grow quite a bit which makes this test slower the more you work on other tests...

To fix this we now simply create a tmp folder with only that one test file. 🚀

@philipp-spiess philipp-spiess requested a review from a team as a code owner March 31, 2025 12:59
@philipp-spiess philipp-spiess force-pushed the chore/fix-slow-unit-test branch from c4a938e to 31bc075 Compare March 31, 2025 13:04
@philipp-spiess philipp-spiess merged commit c7ba564 into main Mar 31, 2025
6 checks passed
@philipp-spiess philipp-spiess deleted the chore/fix-slow-unit-test branch March 31, 2025 13:26
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.

2 participants