-
Notifications
You must be signed in to change notification settings - Fork 568
Remove mocha exit flag #26664
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
Draft
alexvy86
wants to merge
35
commits into
microsoft:main
Choose a base branch
from
alexvy86:ralph-removes-mocha-exit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Remove mocha exit flag #26664
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
5923ea3
fix(container-loader): dispose SerializedStateManager instances in te…
alexvy86 3731e73
fix(container-runtime): dispose ContainerRuntime instances in tests t…
alexvy86 00020af
fix(tree): remove --exit flag by properly disposing TestTreeProvider …
alexvy86 5257835
fix(local-server-tests): properly dispose LocalDeltaConnectionServer …
alexvy86 6661ee7
fix(fluid-telemetry,react): remove --exit flag by cleaning up Applica…
alexvy86 da562c9
fix(inventory-app): remove --exit flag by setting up JSDOM before Qui…
alexvy86 fadbe1e
fix(experimental): remove --exit flag from dds/tree and property-dds …
alexvy86 3dd5255
fix(dds): remove --exit flag from memory/benchmark test mocharcs
alexvy86 7b4ab5d
fix(test-end-to-end-tests): remove --exit flag by fixing LocalServerT…
alexvy86 fa80b89
fix: remove --exit flag from webflow, odsp-client, and snapshots pack…
alexvy86 63ff049
fix(experimental,e2e-tests): remove --exit flag from PropertyDDS and …
alexvy86 02b75e2
Merge remote-tracking branch 'upstream/main' into ralph-removes-mocha…
alexvy86 d906f29
Remove file
alexvy86 a6d6b67
Update investigation file
alexvy86 7d844b0
Formatting
alexvy86 387e188
fix(dds/tree,fluid-telemetry): fix lint errors in dispose and stopPol…
alexvy86 3d11ab7
fix(local-server-tests): fix timer leaks so tests exit without --exit…
alexvy86 a687f40
fix(property-dds): dispose containers in afterEach to prevent timer l…
alexvy86 8f4a2bd
fix(local-server-stress-tests): remove --exit flag as cleanup is alre…
alexvy86 b150f37
docs: update investigation notes with container disposal pattern
alexvy86 3eece80
fix(fluid-telemetry): clear heartbeat interval on container dispose t…
alexvy86 7d916d0
fix(react,fluid-static): fix timer leaks so tests exit without --exit…
alexvy86 2d8515b
docs: update investigation notes with react/fluid-static timer leak f…
alexvy86 fd01a03
More fixes
alexvy86 57bec76
fix(dds/tree,container-runtime): fix timer leaks from summarizer cont…
alexvy86 dcc90fc
fix(test/snapshots): fix timer leaks so tests exit without --exit flag
alexvy86 804a1cb
docs: update investigation notes for packages/test/snapshots (root ca…
alexvy86 498b329
Formatting
alexvy86 02bf0f0
Fix missing async
alexvy86 c79462d
fix(test-end-to-end-tests,container-loader,container-runtime): fix re…
alexvy86 bdb7f9e
Formatting
alexvy86 7f3979d
fix(mocha-test-setup,test-end-to-end-tests): fix timer/socket leaks s…
alexvy86 edd661f
docs: update investigation notes with root causes 16 (setTimeout patc…
alexvy86 83c1324
Fix build
alexvy86 e3c13ae
Fix build
alexvy86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| ## Completed | ||
|
|
||
| [x] Fix property-dds tests hanging: added opProcessingController.reset() and objProvider.reset() | ||
| in afterEach hooks to dispose containers (clears GC sessionExpiryTimer). | ||
| Root cause: deltaConnectionServer.close() alone doesn't dispose containers. | ||
|
|
||
| [x] Remove --exit from local-server-stress-tests: harness already properly disposes | ||
| containers and closes server in finally block. | ||
|
|
||
| [x] Fix examples/data-objects/webflow - removed esm-loader-css from mocharc, changed layout.spec.ts | ||
| to import htmlFormatter directly (avoids CSS import chain), and fixed describeCompat/describeWithVersions | ||
| to call provider.reset() before driver.dispose() in cleanup hook. | ||
|
|
||
| [x] Fix experimental/dds/tree - SummaryManager.dispose() not closing summarizer container, | ||
| and Summarizer.runCore() leaving dangling Promise.race() 2-minute timeout timers (root causes 8, 9) | ||
|
|
||
| [x] Fix packages/framework/client-logger/fluid-telemetry - ApplicationInsights stopPollingInternalLogs | ||
|
|
||
| [x] Fix packages/framework/react - already clean | ||
|
|
||
| [x] Fix packages/service-clients/odsp-client - already clean | ||
|
|
||
| [x] Fix packages/test/test-end-to-end-tests: two-part fix: | ||
| 1. patch global.setTimeout in mocha-test-setup/mochaHooks.ts to unref() timers >10s | ||
| (handles N-1 compat timer hangs from Summarizer.runCore() Promise.race() timers) | ||
| 2. fix compression.spec.ts describeInstallVersions block: create versionedProvider ONCE | ||
| in before/after hooks instead of per-test in beforeEach/afterEach (fixes socket leak) | ||
|
|
||
| ## Remaining | ||
|
|
||
| - tools/test-tools/.mocharc.cjs: Standalone package (own pnpm-workspace.yaml, not part of main | ||
| monorepo). Tests appear to be trivially clean (just spawnSync) but can't verify without | ||
| separate install. Low priority. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getIIDCompressor() calls provider.dispose() without awaiting. If TestTreeProvider.dispose is updated to be async (to properly await driver.dispose / server shutdown), this helper should await disposal (ideally in a finally) to ensure local server resources are always released.