...
Fixing
ResourceWarnings
ResourceWarnings
occur when any resource has been allocated but isn’t completely unallocated/removed. https://2u-internal.atlassian.net/browse/BOM-3346 documents an initial effort on fixing such warnings.Use
tracemalloc()
to find the point of allocation of any unallocated resource in the code.Update/Refactor the code to properly un-allocate the resource after usage by using either
try/catch
or preferably usingwith
context manager.
Fixing
DeprecationWarnings
DeprecationWarnings
occur when the deprecated code is still being used anywhere in the code. https://github.com/openedx/edx-platform/pull/30398 is an initial attempt to fix some of theDeprecationWarnings
occurring due to theopaque-keys
package.This PR fixes one type of warnings and resolves around ~1000 deprecation warnings.
How to engage Open Source Community on this?
...