-
Notifications
You must be signed in to change notification settings - Fork 985
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
Some improvements for test duration on Windows #17221
Conversation
@@ -13,7 +13,7 @@ def test_graph_build_order_override_error(): | |||
|--------------/ | |||
|-----override------> zlib/1.3 | |||
""" | |||
c = TestClient() | |||
c = TestClient(light=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Settings copy was a prevalent time sink as per cProfile output of this file, and in my Parallels machine this goes from 63s to 24
@@ -456,7 +456,7 @@ def __init__(self, cache_folder=None, current_folder=None, servers=None, inputs= | |||
# create default profile | |||
if light: | |||
text = "[settings]\nos=Linux" # Needed at least build-os | |||
save(self.cache.settings_path, "os: [Linux]") | |||
save(self.cache.settings_path, "os: [Linux, Windows]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the aim is to speed up Windows, makes sense to need it here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic!
I didn't expect any improvement by removing the TurboTestClient, but in any case it is great to converge to TestClient, so it is a win in any case.
Changelog: Omit
Docs: Omit
new_test
removal removes 1 min in Windows, theTurboTestClient()
->TestClient()
changes are 20% faster on my machine, and theci_overrides
changes has a 3x speedup locallycf #17205