-
Notifications
You must be signed in to change notification settings - Fork 11
Running pre-commit in parallel #216
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
Conversation
53785fb
to
4c6ef79
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.
LGTM, but I would love us to move license updates to something like make generate
or a similar commands and have a CI which does:
- Runs
make generate
- Checks if there are any uncommitted changes.
- Fails, if there are changes
- Passes, if there are no changes
And in general, split pre-commit into smaller pieces run separately.
@m1kola Totally agree on this! |
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; ptal at my comments
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! let's check that the ci linter runs licenses 🤞
@nammn
|
Summary
Running pre-commit commands in parallel to speed it up.
To get the quickest run, execute it locally with skipping license check. Consider putting
export MDB_UPDATE_LICENSES=true
into yourprivate-context
to always enable generating licenses in pre-commitChanges
make precommit
is no longer using EVERGREEN_MODE=true, and is skipping generating licenses by defaultmake precommit-with-licenses
for easier precommit with generating license stepProof of Work
Benchmark Comparison
The table above is just a summary for the runs below.
No Go Cache, With Licenses, Master Run
With Go Cache, With Licenses, Master Run
No Go Cache, Without Licenses, Master Run
With Go Cache, Without Licenses, Master Run
No Go Cache, With Licenses, PR Run
With Go Cache, With Licenses, PR Run
No Go Cache, Without Licenses, PR Run
With Go Cache, Without Licenses, PR Run
EVG actually running licenses as part of check_precommit:
Checklist
Reminder (Please remove this when merging)