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

Run unit tests in parallel #1772

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sfc-gh-fcampbell
Copy link
Contributor

@sfc-gh-fcampbell sfc-gh-fcampbell commented Oct 22, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Unit test time is creeping up, let's take advantage of our CI runners and make them run in parallel. I checked back a few months and the time was at about 10 mins, now they're approaching 12-13 mins, almost as long as the integration tests. Since integration tests are longer, this doesn't speed up overall CI, but it does allow us to get fast feedback when tests fail.

I verified that the coverage report is identical between serial and parallel execution.

Something is up with GH actions compared to a laptop, where the whole suite can run in about 30 seconds, but investigating that is sort of out of scope for now.

@sfc-gh-fcampbell sfc-gh-fcampbell marked this pull request as ready for review October 23, 2024 18:13
@sfc-gh-fcampbell sfc-gh-fcampbell requested a review from a team as a code owner October 23, 2024 18:13
@sfc-gh-fcampbell sfc-gh-fcampbell enabled auto-merge (squash) October 23, 2024 18:13
# "pip install test_external_plugins/snowpark_hello_single_command",
# "pip install test_external_plugins/multilingual_hello_command_group",
"pip install pytest-xdist",
]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still expected change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's in the dev requirements now

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.

4 participants