Opened 8 years ago

Last modified 8 years ago

#27790 new Cleanup/optimization

Investigate increased memory usage in tests when calling migrate without available_apps set

Reported by: Tim Graham Owned by: nobody
Component: Migrations Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

91023d79ec70df9289271e63a67675ee51e7dea8 increased memory usage of the test suite. I've created a PR to revert it but the root cause should be investigated.

I added these lines at the end of runtests.py to measure memory usage (may be a naive solution):

import resource
print(resource.getrusage(resource.RUSAGE_SELF).ru_maxrss / 1000)

Change History (2)

comment:1 by Tim Graham <timograham@…>, 8 years ago

In 7d50d2b:

Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."

This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it
increases memory usage for the test suite.

comment:2 by Tim Graham <timograham@…>, 8 years ago

In aa52e8b7:

[1.11.x] Refs #27790 -- Reverted "Removed available_apps on TestCase subclasses."

This reverts commit 91023d79ec70df9289271e63a67675ee51e7dea8 as it
increases memory usage for the test suite.

Backport of 7d50d2bcb8a3cf3fea727174717ead7e6508e9e2 from master

Note: See TracTickets for help on using tickets.
Back to Top