-
Notifications
You must be signed in to change notification settings - Fork 208
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
Various speedups for verdi cmdline #2315
Merged
sphuber
merged 7 commits into
aiidateam:provenance_redesign
from
giovannipizzi:fix_376_slow_verdi
Dec 7, 2018
Merged
Various speedups for verdi cmdline #2315
sphuber
merged 7 commits into
aiidateam:provenance_redesign
from
giovannipizzi:fix_376_slow_verdi
Dec 7, 2018
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In particular when completing tests. Thanks to @ltalirz This fixes aiidateam#376 (again...). Fixes include: - using a new instance of the reentry manager that prevents automatic reentry scans - removed unuseful with_dbenv decorators from 'verdi devel tests' and from the TestModuleParamType of click - prevent unnecessary imports of plumpy that is a bit slow to import Also, we fixed the place where AIIDADB_PROFILE is set in the main `verdi` click command, to set it also when a default profile is used (this was probably the reason of the unneeded with_dbenv calls)
Note: the time went down from
to
|
The plugin manager is now always using the same global reentry manager (that does NOT automatically re-run `reentry scan`).
Now if one runs ``` verdi -p aaa setup bbb ``` `aaa` is ignored and a profile `bbb` is used. Moreover, a default profile is set (if none is set yet) also when running non-interactively (that is what quicksetup does). This fixes aiidateam#2261
Completes the fix of aiidateam#2261
2 tasks
(and does not impact performance for TAB-completion)
Tests pass now @ltalirz |
ltalirz
previously approved these changes
Dec 7, 2018
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 am Leopold Talirz and I approve this PR.
Moreover, small fixes to the .gitignore
ltalirz
approved these changes
Dec 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #376 and fixes #2261
In particular when completing tests.
Thanks to @ltalirz
This fixes #376 (again...).
Fixes include:
automatic reentry scans
from the TestModuleParamType of click
Also, we fixed the place where AIIDADB_PROFILE is set in the
main
verdi
click command, to set it also when a defaultprofile is used (this was probably the reason of the unneeded
with_dbenv calls)