Skip to content
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

Test v2.0 before release with high verbosity and remove warnings that can be removed #5282

Closed
giovannipizzi opened this issue Dec 17, 2021 · 4 comments · Fixed by #5497
Closed
Assignees
Labels
type/feature request status undecided
Milestone

Comments

@giovannipizzi
Copy link
Member

I think it would be double check that there are no warnings that go unnoticed (either because some parts of the code still use deprecated features, or because new features issue warnings). We can use this issue to track warning that occur while testing 2.0.

(I will also create another issue to discuss syncing other dependencies during the phase between the 2.0RC and the 2.0 release).

@giovannipizzi giovannipizzi added the type/feature request status undecided label Dec 17, 2021
@giovannipizzi giovannipizzi added this to the v2.0.0 milestone Dec 17, 2021
@giovannipizzi
Copy link
Member Author

Is this something that should be improved?

$ verdi process list
/Users/pizzi/git/aiida-core/aiida/orm/implementation/sqlalchemy/querybuilder/main.py:223: SAWarning: Class jsonb_typeof will not make use of SQL compilation caching as it does not set the 'inherit_cache' attribute to ``True``.  This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions.  Set this attribute to True if this object can make use of the cache key generated by the superclass.  Alternatively, this attribute may be set to False which will disable this warning. (Background on this error at: https://sqlalche.me/e/14/cprf)
  for row in self.get_session().execute(stmt):
   PK  Created    Process label    Process State    Process status
-----  ---------  ---------------  ---------------  ----------------
51640  17h ago    PwCalculation    ⏹ Created

Total results: 1

Report: last time an entry changed state: 17h ago (at 20:57:57 on 2021-12-16)
Report: Using 0% of the available daemon worker slots.

@ltalirz
Copy link
Member

ltalirz commented Feb 25, 2022

Also ran into this warning, now in /home/aiida/aiida-core/aiida/storage/psql_dos/orm/querybuilder/main.py:223

for row in self.get_session().execute(stmt):

This is about caching the mapping between ORM and the corresponding SQL query string.

Maybe we should just try adding inherit_cache = True here

class jsonb_typeof(FunctionElement): # pylint: disable=abstract-method,invalid-name
name = 'jsonb_typeof'

and start by checking whether any tests break?

@chrisjsewell
Copy link
Member

chrisjsewell commented Feb 25, 2022

Yep I already mentioned internally that I was aware of this, and planning to fix. But happy for you to give it a go cheers 😄

@ltalirz
Copy link
Member

ltalirz commented Feb 28, 2022

Just mentioning that the specific issue raised by Giovanni has been resolved.
If others encounter warnings during testing, feel free to add - otherwise I suggest to close this after the 2.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature request status undecided
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants