-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update primer
tests to own file, separate batches and concurrent runs
#5425
Conversation
Pull Request Test Coverage Report for Build 1513660652
💛 - Coveralls |
Times between both batches seem fairly equal so I think this division works. Run time is quite high as US is starting to launch GitHub Actions at this time.. Looks good for review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just had a quick look but it look amazing already !I'll do a full review tomorrow. 27mn to 16mn is perfect, it's almost the timing of our test suite before primers !
I was reading the doc for github caching so we download the repositories only once. I think if we choose a particular commit we can even cache reliably between runs as long as we do not update to the latest commits. I'll do that in another MR though, everything here was required, is compatible and will also make things faster anyway !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can merge as is, but I have a small question.
pip install -e . | ||
pytest -m primer_external_batch_one --primer-external -n auto | ||
|
||
pytest-primer-external-batch-two: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to find a way to not copy paste so much, did you also search and find nothing acceptable or did you simply implement something fast ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I simply implemented something fast. Do you want me to look if something is possible before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, let's keep the MR small and do it later on. Also this CI speed up is too valuable to wait, clearly 😄
Type of Changes
Description
First set of improvements for the
primer
. This adds:primer
now only runs on changes topylint/**
ortests/primer/**
or pushes tomain
. This should allow updating docs or tests without the primer holding you up.primer
sits in its own workflow fileprimer
has been bursted into two batches based on the first half of the alphabet and the second 😄Ref #5359