-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add the verdi profile caching
command
#4245
Add the verdi profile caching
command
#4245
Conversation
8fef65f
to
4ad43ad
Compare
Note that this is missing documentation, but I will add this once PR #4228 has been merged. |
4ad43ad
to
7725d6f
Compare
Thanks @sphuber ! Two questions from browsing through quickly would be:
I'll give a proper review next week |
My thinking is that at some point we want to add an endpoint to also modify the caching from the interface. I though of
See the commit and PR message. The tests using it should actually be refactored to
Thanks a lot! |
I think ideally this should go in |
4c87a09
to
9f68472
Compare
Codecov Report
@@ Coverage Diff @@
## develop #4245 +/- ##
===========================================
+ Coverage 79.18% 79.20% +0.03%
===========================================
Files 468 468
Lines 34476 34513 +37
===========================================
+ Hits 27295 27333 +38
+ Misses 7181 7180 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This command will try to load the caching configuration from the caching configuration file, for any given profile. This is useful for users to make sure that the file is correctly named and contains correct syntax, before actually starting to run new calculations. To test this, a new pytest fixture is created that creates a completely new and independent configuration folder, along with fixtures to create profiles to add to the config and caching configuration files. Similar code already exists for normal unittests, but this can be removed once those have been refactored to pytests.
9f68472
to
b363031
Compare
I agree with @chrisjsewell that it would be nice to come to an agreement on what the role of the I could well imagine having |
note I've made an issue for discussing |
FYI this PR is now superceded by #4712 😜 |
Then let's close this |
Fixes #4240
This command will try to load the caching configuration from the caching
configuration file, for any given profile. This is useful for users to
make sure that the file is correctly named and contains correct syntax,
before actually starting to run new calculations.
To test this, a new pytest fixture is created that creates a completely
new and independent configuration folder, along with fixtures to create
profiles to add to the config and caching configuration files. Similar
code already exists for normal unittests, but this can be removed once
those have been refactored to pytests.