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

Stefs cleanup (and some test suite memory leak fixes) #4838

Merged
merged 6 commits into from
Mar 4, 2017

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Mar 4, 2017

Noticed 8 containers leaked to the end of the test suite, this PR fixes 5 of them (2 of them are yet upstream). This leaves us with 1, and that one appears strange/tricky (will investigate next).

also found these leaks:


The goal of this, is to be sure our own test suite can be used (at-least manually) to detect leaks/tests. So if we can have our test suite not leak, it will be easier to catch leaks going forward (like the 2 RSVP / ES6 promise leaks).

AssertionPrototype.prototype extensions in this file, where causing `let testStore` to be retained…
reopen introduced a mixin which was retained, and who’s new methods retained the current tests `env`. This more accurately patches the methods in-question.

Future work should re-evaluate this test, and consider a simpler approach
@stefanpenner stefanpenner changed the title Stefs cleanup (and some test suite memory fixes) Stefs cleanup (and some test suite memory leak fixes) Mar 4, 2017
@stefanpenner
Copy link
Member Author

The remaining leak may not be a leak on our end, as the profiler is unable to calculate path to the retainer...

screen shot 2017-03-03 at 4 40 10 pm

I've walk as many paths as i could manually, and inspected the code in question and cant seem to find a reasonable reason for it to still be around....

@stefanpenner stefanpenner merged commit 730b484 into master Mar 4, 2017
@stefanpenner stefanpenner deleted the stefs-cleanup branch March 4, 2017 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant