Skip to content

eng: cleanup some leaks around around editors and workbenchInstantiationService - #190623

Merged
Connor Peet (connor4312) merged 6 commits into
mainfrom
connor4312/reduce-test-leaks-1
Aug 18, 2023
Merged

Connor Peet (connor4312) merged 6 commits into
mainfrom
connor4312/reduce-test-leaks-1

Conversation

@connor4312

Copy link
Copy Markdown
Member

I added a disposable leak tracker to a test that used workbenchInstantiationService.
This fixes the baseline leaks and some extra leaks with that function.

Fixes some leaks I found while looking at #190444, by adding ensureNoDisposablesAreLeakedInTestSuite to the suite.

I don't have a dev setup for inline chat, so I have not tested this beyond running tests and verifying the fix
…ionService

I added a disposable leak tracker to a test that used `workbenchInstantiationService`.
This fixes the baseline leaks and some extra leaks with that function.
@bpasero

Copy link
Copy Markdown
Contributor

Connor Peet (@connor4312) this is very cool but should probably be reviewed by each respective component owner?

@jrieken Johannes Rieken (jrieken) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request changes (or explanation) because of the busy loop in test

@connor4312

Copy link
Copy Markdown
Member Author

cc other owners

João Moreno (@joaomoreno) Henning Dieterichs (@hediet) Alexandru Dima (@alexdima) SteVen Batten (@sbatten)

please let me know if anything you own in this PR looks concerning

@connor4312
Connor Peet (connor4312) deleted the connor4312/reduce-test-leaks-1 branch August 18, 2023 15:04
@bpasero

Copy link
Copy Markdown
Contributor

🙅 This needs to be reopened until I had a chance to review.

Connor Peet (connor4312) added a commit that referenced this pull request Aug 18, 2023
Connor Peet (connor4312) added a commit that referenced this pull request Aug 18, 2023
Connor Peet (connor4312) added a commit that referenced this pull request Aug 21, 2023
Re-applies #190623 which I merged before everyone had a chance to review.

Alex and Ben, you were the two people whose code this touches and didn't
review it in the original PR.
Benjamin Pasero (bpasero) added a commit that referenced this pull request Aug 23, 2023
* eng: reapply test leak fixes

Re-applies #190623 which I merged before everyone had a chance to review.

Alex and Ben, you were the two people whose code this touches and didn't
review it in the original PR.

* 💄

* fix merge

* better handling of editor listeners

---------

Co-authored-by: Benjamin Pasero <[email protected]>
Krzysztof Cieślak (Krzysztof-Cieslak) pushed a commit to githubnext/vscode that referenced this pull request Sep 18, 2023
…ionService (microsoft#190623)

* inline chat: fix leaks found in testing

Fixes some leaks I found while looking at microsoft#190444, by adding ensureNoDisposablesAreLeakedInTestSuite to the suite.

I don't have a dev setup for inline chat, so I have not tested this beyond running tests and verifying the fix

* eng: cleanup some leaks around around editors and workbenchInstantiationService

I added a disposable leak tracker to a test that used `workbenchInstantiationService`.
This fixes the baseline leaks and some extra leaks with that function.

* fix build

* rm too-eager leak checker

* remove forgotten busy loop
Krzysztof Cieślak (Krzysztof-Cieslak) pushed a commit to githubnext/vscode that referenced this pull request Sep 18, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants