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

CI: make integration tests 45% faster #1902

Merged
merged 2 commits into from
May 16, 2023
Merged

Conversation

coszio
Copy link
Contributor

@coszio coszio commented May 15, 2023

Improve the performance of tests by reusing the setup for every test in the same file (where it makes sense). Also refactor to use loop and timeout where a simple sleep was used

Locally, the integration test suite duration went from 32.64s to 18.23s, hence the ~45% speedup

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

@coszio coszio requested a review from generall May 15, 2023 21:19
Copy link
Member

@timvisee timvisee left a comment

Choose a reason for hiding this comment

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

Nice improvement!

I think new upcoming tests depend on a fresh setup for each in test_optional_vectors.py, but if this starts causing issues for it we can simply revert it there.

@generall generall merged commit e70a80a into dev May 16, 2023
generall pushed a commit that referenced this pull request May 17, 2023
* use scope="module" where possible

* refactor test_snapshot.py to use loop and timeout instead of long waits
@agourlay agourlay deleted the speed-up-integration-tests branch July 12, 2023 15:50
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