-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[primer] Parallelize primer workflow into package batches #8697
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
[primer] Parallelize primer workflow into package batches #8697
Conversation
da4d041
to
fd75ce2
Compare
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.
Thanks for doing this! Very nice!
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #8697 +/- ##
=======================================
Coverage 95.80% 95.81%
=======================================
Files 172 172
Lines 18303 18330 +27
=======================================
+ Hits 17536 17562 +26
- Misses 767 768 +1
|
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.
Looks pretty good ! I think the python parts could be tested in tests/testutils/
. (This would be reused in a pylint-testutil package accessible to all pylint plugins maintainer).
Okay, I can take a look at that, but I don't think it's the best use of time. In terms of the code coverage statistics, they're not covered right now because these blocks won't execute until the files exist on main (after merging this). |
I think we had issues with primers in the past that would not have happened if the python parts were covered from the get go (even if it's impossible to test the github actions code). That being said, the goal of this MR is not to add tests for everything that is not tested at the moment (only the new batch processing mechanism). I'd approve anyway if you don't want to invest the time this is clearly an improvement compared to what we have right now. |
@Pierre-Sassoulas @DanielNoord Does anyone know why the |
It seems as if prettier was outputting the path of every file in the repository without separators ? |
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.
LGTM. I fixed pre-commit but the tests now fails (?)
Just looks like a transient failure from the Action we're using. Thanks for the reviews! |
Type of Changes
Description
The primer run now completes in half the time (53m -> 28m) by dividing primer packages into batches.
The upside mainly consists of separating
home-assistant
frompandas
, the two largest projects.Motivations
Notes
home-assistant
andpandas
are given their own exclusive runs, but the few seconds it takes to lint another package in a batch afterpandas
is not substantial. My hope is that this is good enough and more maintainable.