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

Some improvements for test duration on Windows #17221

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

AbrilRBS
Copy link
Member

Changelog: Omit
Docs: Omit

new_test removal removes 1 min in Windows, the TurboTestClient() -> TestClient() changes are 20% faster on my machine, and the ci_overrides changes has a 3x speedup locally

cf #17205

@AbrilRBS AbrilRBS added this to the 2.9.0 milestone Oct 25, 2024
@@ -13,7 +13,7 @@ def test_graph_build_order_override_error():
|--------------/
|-----override------> zlib/1.3
"""
c = TestClient()
c = TestClient(light=True)
Copy link
Member Author

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]")
Copy link
Member Author

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

Copy link
Member

@memsharded memsharded left a 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.

@czoido czoido merged commit 98a7976 into conan-io:develop2 Oct 25, 2024
2 checks passed
@AbrilRBS AbrilRBS deleted the ar/light-windows-tests branch October 25, 2024 18:09
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