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

Refactor test suite test_steps.py to run step that takes the longest first #143

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

cpaniaguam
Copy link
Member

The pytest's xdist plug-in seems to assign test functions to workers in the order that they are listed in the file. Because default GitHub runners only have 4 cores, listed fifth test_step5 -- the step that takes the longest to complete -- does not get picked up immediately. This PR lists this step before the others; this should make things run much faster in general.

The pytest's `xdist` plug-in seems to assign test functions to workers in the order that they are listed in the file. Because default GitHub runners only have 4 cores, listed fifth `test_step5` -- the step that takes the longest to complete -- does not get picked up immediately. This PR lists this step before the others which should make things run much faster in general.
@cpaniaguam cpaniaguam self-assigned this Mar 1, 2024
@cpaniaguam cpaniaguam added the enhancement New feature or request label Mar 1, 2024
Copy link
Member

@hollandjg hollandjg left a comment

Choose a reason for hiding this comment

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

great!

@cpaniaguam cpaniaguam merged commit 4d7e52f into main Mar 4, 2024
2 checks passed
@cpaniaguam cpaniaguam deleted the refactor-test-suite-for-speed branch March 4, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants