-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
test(fluentui/react): fix initial global leaks that were causing OOM issues #27661
Merged
Hotell
merged 2 commits into
microsoft:master
from
Hotell:hotell/build/faster-ci/v8-test-leaks-fix
Apr 26, 2023
Merged
test(fluentui/react): fix initial global leaks that were causing OOM issues #27661
Hotell
merged 2 commits into
microsoft:master
from
Hotell:hotell/build/faster-ci/v8-test-leaks-fix
Apr 26, 2023
Conversation
This file contains 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
Hotell
commented
Apr 24, 2023
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit cd8ba24:
|
Hotell
commented
Apr 24, 2023
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
FluentProviderWithTheme | virtual-rerender-with-unmount | 104 | 114 | 10 | Possible regression |
InfoButton | mount | 17 | 22 | 5000 | Possible regression |
All results
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 692 | 706 | 5000 | |
Button | mount | 379 | 373 | 5000 | |
Field | mount | 1261 | 1280 | 5000 | |
FluentProvider | mount | 898 | 904 | 5000 | |
FluentProviderWithTheme | mount | 113 | 113 | 10 | |
FluentProviderWithTheme | virtual-rerender | 89 | 94 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 104 | 114 | 10 | Possible regression |
InfoButton | mount | 17 | 22 | 5000 | Possible regression |
MakeStyles | mount | 1114 | 1121 | 50000 | |
Persona | mount | 1969 | 1960 | 5000 | |
SpinButton | mount | 1591 | 1571 | 5000 |
fabricteam
reviewed
Apr 24, 2023
Hotell
added
Area: Testing
Fluent UI react (v8)
Issues about @fluentui/react (v8)
CI
labels
Apr 24, 2023
Perf Analysis (
|
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
LabelMinimalPerf.default | 314 | 292 | 1.08:1 |
TreeWith60ListItems.default | 115 | 106 | 1.08:1 |
ButtonMinimalPerf.default | 118 | 110 | 1.07:1 |
RefMinimalPerf.default | 148 | 140 | 1.06:1 |
ChatWithPopoverPerf.default | 247 | 236 | 1.05:1 |
DividerMinimalPerf.default | 279 | 266 | 1.05:1 |
RadioGroupMinimalPerf.default | 370 | 353 | 1.05:1 |
AvatarMinimalPerf.default | 145 | 139 | 1.04:1 |
DropdownManyItemsPerf.default | 489 | 469 | 1.04:1 |
HeaderSlotsPerf.default | 628 | 601 | 1.04:1 |
SkeletonMinimalPerf.default | 277 | 266 | 1.04:1 |
CardMinimalPerf.default | 404 | 394 | 1.03:1 |
ListWith60ListItems.default | 476 | 461 | 1.03:1 |
PortalMinimalPerf.default | 119 | 116 | 1.03:1 |
TreeMinimalPerf.default | 614 | 596 | 1.03:1 |
AccordionMinimalPerf.default | 116 | 114 | 1.02:1 |
AlertMinimalPerf.default | 200 | 197 | 1.02:1 |
AnimationMinimalPerf.default | 391 | 383 | 1.02:1 |
AttachmentMinimalPerf.default | 106 | 104 | 1.02:1 |
AttachmentSlotsPerf.default | 797 | 783 | 1.02:1 |
ButtonOverridesMissPerf.default | 780 | 762 | 1.02:1 |
DropdownMinimalPerf.default | 1793 | 1758 | 1.02:1 |
HeaderMinimalPerf.default | 286 | 280 | 1.02:1 |
MenuMinimalPerf.default | 649 | 635 | 1.02:1 |
ProviderMinimalPerf.default | 260 | 255 | 1.02:1 |
TableMinimalPerf.default | 323 | 316 | 1.02:1 |
ToolbarMinimalPerf.default | 691 | 678 | 1.02:1 |
ListNestedPerf.default | 412 | 406 | 1.01:1 |
RosterPerf.default | 1630 | 1607 | 1.01:1 |
ReactionMinimalPerf.default | 285 | 281 | 1.01:1 |
SliderMinimalPerf.default | 848 | 838 | 1.01:1 |
StatusMinimalPerf.default | 543 | 539 | 1.01:1 |
TextMinimalPerf.default | 262 | 259 | 1.01:1 |
TooltipMinimalPerf.default | 1595 | 1578 | 1.01:1 |
BoxMinimalPerf.default | 265 | 264 | 1:1 |
CarouselMinimalPerf.default | 317 | 317 | 1:1 |
ChatMinimalPerf.default | 561 | 562 | 1:1 |
LayoutMinimalPerf.default | 285 | 284 | 1:1 |
ListMinimalPerf.default | 410 | 410 | 1:1 |
MenuButtonMinimalPerf.default | 1188 | 1188 | 1:1 |
ProviderMergeThemesPerf.default | 846 | 849 | 1:1 |
SegmentMinimalPerf.default | 270 | 270 | 1:1 |
SplitButtonMinimalPerf.default | 2747 | 2750 | 1:1 |
ButtonSlotsPerf.default | 372 | 374 | 0.99:1 |
CheckboxMinimalPerf.default | 1345 | 1359 | 0.99:1 |
DatepickerMinimalPerf.default | 4316 | 4381 | 0.99:1 |
DialogMinimalPerf.default | 606 | 610 | 0.99:1 |
EmbedMinimalPerf.default | 2054 | 2075 | 0.99:1 |
GridMinimalPerf.default | 262 | 265 | 0.99:1 |
InputMinimalPerf.default | 654 | 662 | 0.99:1 |
ItemLayoutMinimalPerf.default | 878 | 884 | 0.99:1 |
ListCommonPerf.default | 498 | 504 | 0.99:1 |
PopupMinimalPerf.default | 475 | 479 | 0.99:1 |
TableManyItemsPerf.default | 1403 | 1413 | 0.99:1 |
CustomToolbarPrototype.default | 1794 | 1812 | 0.99:1 |
ImageMinimalPerf.default | 298 | 303 | 0.98:1 |
LoaderMinimalPerf.default | 228 | 232 | 0.98:1 |
TextAreaMinimalPerf.default | 356 | 363 | 0.98:1 |
ChatDuplicateMessagesPerf.default | 183 | 188 | 0.97:1 |
IconMinimalPerf.default | 474 | 490 | 0.97:1 |
FormMinimalPerf.default | 281 | 293 | 0.96:1 |
VideoMinimalPerf.default | 518 | 538 | 0.96:1 |
FlexMinimalPerf.default | 209 | 219 | 0.95:1 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 505433ac64f144c9cca456097413d6af4582e5ee (build) |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 808 | 781 | 5000 | |
Breadcrumb | mount | 2105 | 2049 | 1000 | |
Checkbox | mount | 2077 | 2087 | 5000 | |
CheckboxBase | mount | 1829 | 1827 | 5000 | |
ChoiceGroup | mount | 3582 | 3548 | 5000 | |
ComboBox | mount | 794 | 800 | 1000 | |
CommandBar | mount | 7741 | 7742 | 1000 | |
ContextualMenu | mount | 15598 | 14006 | 1000 | |
DefaultButton | mount | 925 | 937 | 5000 | |
DetailsRow | mount | 2646 | 2628 | 5000 | |
DetailsRowFast | mount | 2618 | 2630 | 5000 | |
DetailsRowNoStyles | mount | 2409 | 2435 | 5000 | |
Dialog | mount | 3256 | 3283 | 1000 | |
DocumentCardTitle | mount | 291 | 286 | 1000 | |
Dropdown | mount | 2456 | 2429 | 5000 | |
FocusTrapZone | mount | 1402 | 1403 | 5000 | |
FocusZone | mount | 1393 | 1390 | 5000 | |
GroupedList | mount | 45327 | 45818 | 2 | |
GroupedList | virtual-rerender | 20133 | 22389 | 2 | |
GroupedList | virtual-rerender-with-unmount | 62368 | 63149 | 2 | |
GroupedListV2 | mount | 287 | 297 | 2 | |
GroupedListV2 | virtual-rerender | 270 | 275 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 288 | 297 | 2 | |
IconButton | mount | 1309 | 1305 | 5000 | |
Label | mount | 448 | 444 | 5000 | |
Layer | mount | 3378 | 3363 | 5000 | |
Link | mount | 527 | 529 | 5000 | |
MenuButton | mount | 1175 | 1138 | 5000 | |
MessageBar | mount | 26107 | 26395 | 5000 | |
Nav | mount | 2367 | 2344 | 1000 | |
OverflowSet | mount | 1051 | 1004 | 5000 | |
Panel | mount | 2171 | 2172 | 1000 | |
Persona | mount | 910 | 907 | 1000 | |
Pivot | mount | 1085 | 1061 | 1000 | |
PrimaryButton | mount | 1043 | 1055 | 5000 | |
Rating | mount | 5700 | 5754 | 5000 | |
SearchBox | mount | 1113 | 1130 | 5000 | |
Shimmer | mount | 2359 | 2349 | 5000 | |
Slider | mount | 1675 | 1658 | 5000 | |
SpinButton | mount | 3378 | 3428 | 5000 | |
Spinner | mount | 529 | 513 | 5000 | |
SplitButton | mount | 2153 | 2134 | 5000 | |
Stack | mount | 531 | 529 | 5000 | |
StackWithIntrinsicChildren | mount | 1107 | 1082 | 5000 | |
StackWithTextChildren | mount | 3366 | 3375 | 5000 | |
SwatchColorPicker | mount | 7397 | 7441 | 5000 | |
TagPicker | mount | 1733 | 1745 | 5000 | |
Text | mount | 490 | 490 | 5000 | |
TextField | mount | 1146 | 1139 | 5000 | |
ThemeProvider | mount | 1013 | 1011 | 5000 | |
ThemeProvider | virtual-rerender | 803 | 801 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1557 | 1556 | 5000 | |
Toggle | mount | 800 | 815 | 5000 | |
buttonNative | mount | 242 | 244 | 5000 |
🕵 fluentuiv9 No visual regressions between this PR and main |
🕵 FluentUI-v0 No visual regressions between this PR and main |
Hotell
requested review from
a team,
ThomasMichon,
phkuo and
dzearing
as code owners
April 24, 2023 13:38
This was referenced Apr 24, 2023
ling1726
approved these changes
Apr 26, 2023
dzearing
approved these changes
Apr 26, 2023
micahgodbolt
approved these changes
Apr 26, 2023
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Apr 27, 2023
* master: chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707) chore: migrate to NodeJS v16 (microsoft#27711) remove react-avatar-context package (microsoft#27709) test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669) chore: Add caret to react-datepicker-compat dependencies (microsoft#27671) test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661) chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702) chore: enforce files naming to use .styles.ts (microsoft#27698) feat: adds lazy loading example (microsoft#27587) feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025) chore(react-tree): updates useOpenItemsState internals (microsoft#27697) feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668) test: use `isolatedModules` for all ts-jest configs to lower memory footprint on CI (microsoft#27670) chore: bump @griffel/eslint-plugin & enable @griffel/hook-naming (microsoft#27687) feat(react-tree): makes useFlatTree generic (microsoft#27682) Enable export to codepen for charting library (microsoft#27539) Overflow: added useOverflowCount to exports (microsoft#27678) fix: Menu should not steal focus on re-render (microsoft#27688) feat(react-conformance): add new TS config api to be able to specify configName and configDir (microsoft#27664)
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Apr 27, 2023
* feat/drawer-components: (28 commits) docs: update API feat: add style overrides for upcoming drawer components feat: add support to override drawer styles fix: prevent elements from stretching chore: upgrade devcontainer node version to 16 (microsoft#27716) fix: rename styles file to use the newer naming conventions test: add cypress tests for scroll positions chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707) feat: add support to override drawer body styles chore: migrate to NodeJS v16 (microsoft#27711) remove react-avatar-context package (microsoft#27709) test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669) chore: Add caret to react-datepicker-compat dependencies (microsoft#27671) test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661) chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702) chore: enforce files naming to use .styles.ts (microsoft#27698) feat: adds lazy loading example (microsoft#27587) feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025) chore(react-tree): updates useOpenItemsState internals (microsoft#27697) feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Previous Behavior
Both v0 and v8 tests contain memory leaks and consume above 2GB of memory per test !!!
New Behavior
some amount of v8 tests leak fixed.
With this PR, test for v8 didn't go over 2GB heap.
Speed metrics:
Related Issue(s)