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

Update primer tests to own file, separate batches and concurrent runs #5425

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

DanielNoord
Copy link
Collaborator

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Write a good description on what the PR does.

Type of Changes

Type
✨ New feature
🔨 Refactoring
📜 Docs

Description

First set of improvements for the primer. This adds:

  • Concurrent jobs, meaning the jobs will stop if a new action is created.
  • primer now only runs on changes to pylint/** or tests/primer/** or pushes to main. This should allow updating docs or tests without the primer holding you up.
  • The primer sits in its own workflow file
  • The primer has been bursted into two batches based on the first half of the alphabet and the second 😄

Ref #5359

@DanielNoord DanielNoord added Maintenance Discussion or action around maintaining pylint or the dev workflow primer labels Nov 28, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1513660652

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.504%

Totals Coverage Status
Change from base Build 1513600876: 0.0%
Covered Lines: 13991
Relevant Lines: 14963

💛 - Coveralls

@DanielNoord
Copy link
Collaborator Author

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!

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a 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 !

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a 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:
Copy link
Member

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 ?

Copy link
Collaborator Author

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?

Copy link
Member

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 😄

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.12.2 milestone Nov 29, 2021
@Pierre-Sassoulas Pierre-Sassoulas merged commit cb7ee20 into pylint-dev:main Nov 29, 2021
@DanielNoord DanielNoord deleted the primer branch November 29, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow primer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants