Open PhilippRue opened 3 days ago
@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?
Update: downgrading to aiida-core==v2.2.2
fixes the hashing and thus also the caching feature
$ verdi status
✔ version: AiiDA v2.2.2
Then after rerunning once with --archive-cache-overwrite
I get an updated archive file that is then used to find the cache_source
in a subsequent run:
hash: 8a241fc732d47e52a1ae64b4afc5d8625fb3d4f6c6bd0b4a6e8ba345ebc6691c
cache_source: f4bf1967-095f-44c6-ac5c-2ba9342892f4
code objects to hash: [{'withmpi': False, 'resources': {'num_machines': 1, 'tot_num_mpiprocs': 1}, 'append_text': '', 'parser_name': 'kkr.voroparser', 'prepend_text': '', 'input_filename': 'inputcard', 'output_filename': 'out_voronoi', 'scheduler_stderr': '_scheduler-stderr.txt', 'scheduler_stdout': '_scheduler-stdout.txt', 'mpirun_extra_params': [], 'environment_variables': {}, 'import_sys_environment': True, 'submit_script_filename': '_aiidasubmit.sh', 'custom_scheduler_commands': '', 'environment_variables_double_quotes': False}, {'parameters': '412196cae29ce353a05a7b362568f18f8f4a073ba4ddf7553284898d585d63c3', 'parent_KKR': '280e85ad5f1716b2ddd1d9c37e24cfd438dd9125684addc83f974a478bb592de'}]
ignored attributes: ('queue_name', 'account', 'qos', 'priority', 'max_wallclock_seconds', 'max_memory_kb', 'version', 'version', 'version', 'version')
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.
When doing this I noticed that aiida-test-chache wants to have an older aiida version (aiida-core<2.3). Is there a reason for this?
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. :-)
(btw. this should also be renamed to aiida-test-cache-config.yml, right?).
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 aiida-kkr
public?
Thanks for the report!
@PhilippRue actually I have one question. Could you try your tests with AiiDA 2.3?
Hi, yes aiida-kkr
is public. But so far I used an old forked version from aiida-testing
. So it is time to make the switch ;)
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 aiida-core
version constraint (<2.6
). I'll use that in the meantime to test if my tests in aiida-kkr
now work again. I'll then switch back to this one when the development converges.
And thanks a lot @danielhollas for updating this package!
@PhilippRue cheers! By the way, are you using the mock_code
fixture as well, or only archive_cache
?
What is currently blocking me is the failed mock_code
test for aiida 2.3 Once that is resolved, I am planning to release a version of this package to PyPI on which you could then depend on.
@PhilippRue cheers! By the way, are you using the
mock_code
fixture as well, or onlyarchive_cache
?
I only use archive_cache
What is currently blocking me is the failed
mock_code
test for aiida 2.3 Once that is resolved, I am planning to release a version of this package to PyPI on which you could then depend on.
I'm looking forward to that ;)
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)