The fix for memory leakage in the related bug added a check for plugin
deallocation that performed a call to gc.collect() after every test.
This had the side-effect of increasing test execution time by ~50%, so
this patch makes the check optional via an environment variable
(OS_CHECK_PLUGIN_DEALLOCATION).
It may make sense to create a periodic job that runs with the check
enabled, but otherwise the check can be used by developers for
debugging purposes.
Change-Id: I9ebe663abbc4e4ff3a62d807d5a3230c2ecccd07
Related-Bug: #1234857
(cherry picked from commit ee5c3b0bb60918a7e59e89ceffbafa2f683b74fd)
Reviewed: https:/ /review. openstack. org/105700 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=0cb4aaaefaf 780d733178d33ba b9791ab6cbce3b
Committed: https:/
Submitter: Jenkins
Branch: stable/icehouse
commit 0cb4aaaefaf780d 733178d33bab979 1ab6cbce3b
Author: Maru Newby <email address hidden>
Date: Fri May 9 22:24:45 2014 +0000
Make plugin deallocation check optional
The fix for memory leakage in the related bug added a check for plugin CHECK_PLUGIN_ DEALLOCATION) .
deallocation that performed a call to gc.collect() after every test.
This had the side-effect of increasing test execution time by ~50%, so
this patch makes the check optional via an environment variable
(OS_
It may make sense to create a periodic job that runs with the check
enabled, but otherwise the check can be used by developers for
debugging purposes.
Change-Id: I9ebe663abbc4e4 ff3a62d807d5a32 30c2ecccd07 7e59e89ceffbafa 2f683b74fd)
Related-Bug: #1234857
(cherry picked from commit ee5c3b0bb60918a