-
Notifications
You must be signed in to change notification settings - Fork 181
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
calcjob test failure with sqlite backend #6386
Comments
This is due to the fact that not all querybuilder syntax is supported by the sqlite implementation. In this case particularly, the if only_not_cleaned is True:
filters_remote['or'] = [
{f'extras.{RemoteData.KEY_EXTRA_CLEANED}': {'!==': True}},
{'extras': {'!has_key': RemoteData.KEY_EXTRA_CLEANED}},
] not returning anything. But for the sqlite implementation it ignores that statement. I am not sure if the implementation could in principle support this filtering key. Haven't looked into it in too much detail either, so might still be worth a shot. |
Closing as duplicate of #6256 |
One thing that makes me worried here: This seems to be a silent error? Should we raise explicitly if user tries to use code that uses this unsupported feature? |
That would perhaps be a necessary stop-gap solution until it can be implemented for sqlite, if ever. Let's discuss that in #6256 |
I was trying to run the test suite using a profile setup with verdi presto, i.e. sqlite backend and no broker.
The only thing needed make this work was to comment auto the redefined
aiida_profile
fixture intests/conftest
.Obviously many tests fail in this setup as they either require rabbitMQ or PSQL backend. But one test failure caught my attention as rather suspicious as it is not clear to me why it should fail, specifically test
cmdline/commands/test_calcjob.py::TestVerdiCalculation::test_calcjob_cleanworkdir
The failure suggest that cleaning a working directory of a calcjob does not work as expected?
The text was updated successfully, but these errors were encountered: