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

PR: Better split test suite between slow and fast slots in CIs and other improvements for CIs #20425

Merged
merged 4 commits into from
Jan 28, 2023

Conversation

ccordoba12
Copy link
Member

@ccordoba12 ccordoba12 commented Jan 23, 2023

Description of Changes

  • Remove slow Pytest marker and instead mark all main window tests, and a percentage of the IPython console ones on Linux and Mac, as slow on CIs (locally there won't be any distinction between slow and fast tests).

    This will make our slow slots finish faster compared to the fast ones (the first ones are taking two times more than the later).

    This also allow us to adjust the amount of tests marked as slow/fast per operating system.

  • Use micromamba to create our test environment on CIs. This significantly reduces the necessary time to do that.

  • Remove script and code in our workflows that manually checked for [ci skip] in commit messages. That functionality is provided natively now by Github actions.

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @ccordoba12

@ccordoba12 ccordoba12 added this to the v5.4.3 milestone Jan 23, 2023
@ccordoba12 ccordoba12 self-assigned this Jan 23, 2023
@ccordoba12 ccordoba12 force-pushed the better-split-test-suite branch 2 times, most recently from 96cdc56 to d2230cd Compare January 24, 2023 00:36
@ccordoba12 ccordoba12 changed the title PR: Better split test suite between slot and fast slots in CIs PR: Better split test suite between slow and fast slots in CIs Jan 24, 2023
@ccordoba12 ccordoba12 changed the title PR: Better split test suite between slow and fast slots in CIs [WIP] PR: Better split test suite between slow and fast slots in CIs Jan 24, 2023
@ccordoba12 ccordoba12 force-pushed the better-split-test-suite branch 3 times, most recently from 77ed3bd to 33d5875 Compare January 26, 2023 05:25
@ccordoba12 ccordoba12 force-pushed the better-split-test-suite branch 2 times, most recently from 50e4afc to f44dc17 Compare January 27, 2023 21:30
@ccordoba12 ccordoba12 changed the title [WIP] PR: Better split test suite between slow and fast slots in CIs PR: Better split test suite between slow and fast slots in CIs Jan 27, 2023
- This only works for CIs. In other words, the distinction between slow
and fast tests doesn't apply when running them locally.
- Skip a couple of tests that started to fail with this approach.
- This significantly reduces the necessary time to do that
- Also fix test_completions_environment, which was failing a lot
This is provided by Github actions natively now.
@ccordoba12 ccordoba12 changed the title PR: Better split test suite between slow and fast slots in CIs PR: Better split test suite between slow and fast slots in CIs and other improvements for our CIs Jan 28, 2023
@ccordoba12 ccordoba12 changed the title PR: Better split test suite between slow and fast slots in CIs and other improvements for our CIs PR: Better split test suite between slow and fast slots in CIs and other improvements for CIs Jan 28, 2023
@ccordoba12 ccordoba12 merged commit ad48292 into spyder-ide:5.x Jan 28, 2023
@ccordoba12 ccordoba12 deleted the better-split-test-suite branch January 28, 2023 16:40
@ccordoba12
Copy link
Member Author

ccordoba12 commented Jan 28, 2023

Pinging @juliangilbey about this one because you could be interested on this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant