-
Notifications
You must be signed in to change notification settings - Fork 8
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
Broken hash monkeypatching in aiida-core v2.6.3
#80
Comments
@danielhollas I noticed that you have been working in this package recently. Do you have any insights about this? |
maybe this is related to #71? |
…ida-core<2.3 see discussion in aiidateam/aiida-test-cache#80
Update: downgrading to
Then after rerunning once with
|
Hi! Looks like you picked an unfortunate time. I am currently working on this as part of AiiDA coding week, please see #74., so things are in flux.
Yes, as you found out, I added this pin temporarily until #71 is resolved. It will definitely need changes to the fixtures here. But in any case, thanks for testing, it's good to know that things are actually broken. :-)
Yep, I renamed this package literally yesterday and this is a follow up that I'll most likelly do today. It's great to see these fixtures being used, I was not sure if I should invest my time in this since I didn't found a lot of users on public GitHub repositories. Is Thanks for the report! |
@PhilippRue actually I have one question. Could you try your tests with AiiDA 2.3? |
Hi, yes I made some more tests and it breaks with the change from 2.5 to 2.6:
|
FYI: I just forked this repo to have a temporary version with a different And thanks a lot @danielhollas for updating this package! |
@PhilippRue cheers! By the way, are you using the What is currently blocking me is the failed |
I only use
I'm looking forward to that ;) |
This should be solved in #84. Once merged we can make a release that supports aiida 2.5 (but not 2.6 yet). Hopefully next week. |
Hi @PhilippRue, I've just published a first version (0.0.1) of this package on PyPI https://pypi.org/project/aiida-test-cache/. It would be great if you could test it out. It supports AiiDA versions up to v2.5. I've made some progress on supporting v2.6 (see #85) but it's not quite ready yet. |
Works like a charm with |
I want to update my tests on the
aiida-kkr
plugin to use theenable_archive_cache
feature. Doing that I encountered a few problems:aiida-test-chache
wants to have an older aiida version (aiida-core<2.3
). Is there a reason for this?aiida-core==v2.6.3
so I simply tried to relax the version constraint onaiida-core
and then the installation worksenable_archive_cache
feature, I always get a different hash for a simple calculation. At first I thought this is due to thecode
input that changes with each run (uses a temporary testing DB and installs a newcode
that then has a different hash).code
input from the_get_objects_to_hash
list of the calculation I am doing using the.aiida-testing-config.yml
file (btw. this should also be renamed toaiida-test-cache-config.yml
, right?).objects_to_hash
list of the process is identical which means I should get the same hash and caching should work. But it obviously doesn't.This is a code snippet how I use the
enable_archive_cache
feature in my test:My
.aiida-testing-config.yml
looks like this (exclude thecode
input):And then this is how the output about the hashing looks like for two different runs:
second run (everything is the same except for the hash which then prevents caching)
The text was updated successfully, but these errors were encountered: