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

chore: bump jest to 29.7.0 #29298

Merged
merged 3 commits into from
Oct 20, 2023
Merged

chore: bump jest to 29.7.0 #29298

merged 3 commits into from
Oct 20, 2023

Conversation

Hotell
Copy link
Contributor

@Hotell Hotell commented Sep 26, 2023

New Behavior

See PR title

Related Issue(s)

  • Fixes #

@Hotell Hotell added Area: Build System dependencies Pull requests that update a dependency file labels Sep 26, 2023
@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 26, 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 ac07deb:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 633 609 5000
Button mount 306 311 5000
Field mount 1116 1094 5000
FluentProvider mount 685 686 5000
FluentProviderWithTheme mount 72 83 10
FluentProviderWithTheme virtual-rerender 66 57 10
FluentProviderWithTheme virtual-rerender-with-unmount 73 77 10
InfoButton mount 12 11 5000
MakeStyles mount 846 865 50000
Persona mount 1735 1649 5000
SpinButton mount 1380 1320 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

🕵 fluentuiv8 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AttachmentMinimalPerf.default 88 74 1.19:1
PortalMinimalPerf.default 89 80 1.11:1
ButtonOverridesMissPerf.default 683 625 1.09:1
PopupMinimalPerf.default 375 351 1.07:1
TreeWith60ListItems.default 93 88 1.06:1
DropdownManyItemsPerf.default 389 371 1.05:1
BoxMinimalPerf.default 194 187 1.04:1
ChatWithPopoverPerf.default 186 179 1.04:1
ListMinimalPerf.default 307 296 1.04:1
LoaderMinimalPerf.default 197 189 1.04:1
IconMinimalPerf.default 385 369 1.04:1
TooltipMinimalPerf.default 1300 1248 1.04:1
TreeMinimalPerf.default 469 452 1.04:1
AvatarMinimalPerf.default 109 106 1.03:1
CardMinimalPerf.default 303 295 1.03:1
ItemLayoutMinimalPerf.default 703 681 1.03:1
MenuButtonMinimalPerf.default 957 928 1.03:1
SegmentMinimalPerf.default 189 184 1.03:1
SliderMinimalPerf.default 757 732 1.03:1
CarouselMinimalPerf.default 261 256 1.02:1
DividerMinimalPerf.default 201 197 1.02:1
GridMinimalPerf.default 188 185 1.02:1
HeaderSlotsPerf.default 468 460 1.02:1
ListWith60ListItems.default 368 360 1.02:1
SkeletonMinimalPerf.default 198 194 1.02:1
SplitButtonMinimalPerf.default 2247 2193 1.02:1
StatusMinimalPerf.default 397 389 1.02:1
TableManyItemsPerf.default 1098 1074 1.02:1
ToolbarMinimalPerf.default 531 519 1.02:1
AnimationMinimalPerf.default 293 290 1.01:1
DatepickerMinimalPerf.default 3530 3479 1.01:1
DialogMinimalPerf.default 440 435 1.01:1
ListNestedPerf.default 318 314 1.01:1
MenuMinimalPerf.default 491 487 1.01:1
VideoMinimalPerf.default 427 424 1.01:1
ButtonMinimalPerf.default 86 86 1:1
ButtonSlotsPerf.default 312 311 1:1
ChatDuplicateMessagesPerf.default 146 146 1:1
ChatMinimalPerf.default 429 428 1:1
CheckboxMinimalPerf.default 1117 1113 1:1
DropdownMinimalPerf.default 1431 1427 1:1
EmbedMinimalPerf.default 1859 1861 1:1
LabelMinimalPerf.default 211 210 1:1
RosterPerf.default 1505 1508 1:1
CustomToolbarPrototype.default 1459 1455 1:1
FormMinimalPerf.default 206 209 0.99:1
ProviderMergeThemesPerf.default 650 655 0.99:1
ProviderMinimalPerf.default 197 198 0.99:1
ReactionMinimalPerf.default 206 208 0.99:1
TableMinimalPerf.default 236 239 0.99:1
FlexMinimalPerf.default 151 154 0.98:1
InputMinimalPerf.default 517 530 0.98:1
LayoutMinimalPerf.default 191 194 0.98:1
RadioGroupMinimalPerf.default 255 259 0.98:1
AttachmentSlotsPerf.default 616 635 0.97:1
ListCommonPerf.default 387 400 0.97:1
AlertMinimalPerf.default 154 160 0.96:1
RefMinimalPerf.default 108 113 0.96:1
HeaderMinimalPerf.default 196 206 0.95:1
ImageMinimalPerf.default 210 223 0.94:1
TextAreaMinimalPerf.default 270 287 0.94:1
AccordionMinimalPerf.default 79 85 0.93:1
TextMinimalPerf.default 180 193 0.93:1

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

🕵 FluentUIV0 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
510 B
330 B
global-context
createContextSelector
537 B
342 B
priority-overflow
createOverflowManager
4.162 kB
1.735 kB
react-accordion
Accordion (including children components)
92.983 kB
28.418 kB
react-alert
Alert
84.293 kB
23.456 kB
react-avatar
Avatar
50.534 kB
15.923 kB
react-avatar
AvatarGroup
20.064 kB
7.894 kB
react-avatar
AvatarGroupItem
65.19 kB
20.259 kB
react-badge
Badge
27.264 kB
8.808 kB
react-badge
CounterBadge
28.165 kB
9.101 kB
react-badge
PresenceBadge
25.67 kB
9.313 kB
react-button
Button
40.074 kB
11.292 kB
react-button
CompoundButton
47.43 kB
12.787 kB
react-button
MenuButton
44.848 kB
12.668 kB
react-button
SplitButton
52.862 kB
14.254 kB
react-button
ToggleButton
57.122 kB
13.194 kB
react-calendar-compat
Calendar Compat
141.288 kB
36.81 kB
react-card
Card - All
92.955 kB
26.977 kB
react-card
Card
87.781 kB
25.462 kB
react-card
CardFooter
13.423 kB
5.481 kB
react-card
CardHeader
15.666 kB
6.235 kB
react-card
CardPreview
14.374 kB
5.854 kB
react-checkbox
Checkbox
37.505 kB
12.327 kB
react-combobox
Combobox (including child components)
91.781 kB
29.935 kB
react-combobox
Dropdown (including child components)
90.223 kB
29.601 kB
react-components
react-components: Button, FluentProvider & webLightTheme
70.002 kB
20.161 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
207.417 kB
59.289 kB
react-components
react-components: FluentProvider & webLightTheme
42.286 kB
14 kB
react-datepicker-compat
DatePicker Compat
212.464 kB
59.301 kB
react-dialog
Dialog (including children components)
90.18 kB
26.891 kB
react-divider
Divider
21.179 kB
7.839 kB
react-field
Field
22.788 kB
8.639 kB
react-image
Image
16.096 kB
6.317 kB
react-infobutton
InfoButton
130.729 kB
41.194 kB
react-infobutton
InfoLabel
134.413 kB
42.351 kB
react-input
Input
27.247 kB
9.194 kB
react-jsx-runtime
Classic Pragma
1.049 kB
531 B
react-jsx-runtime
JSX Dev Runtime
4.14 kB
1.741 kB
react-jsx-runtime
JSX Runtime
4.734 kB
1.983 kB
react-label
Label
14.508 kB
5.857 kB
react-link
Link
17.4 kB
6.977 kB
react-menu
Menu (including children components)
140.176 kB
43.004 kB
react-menu
Menu (including selectable components)
142.862 kB
43.51 kB
react-message-bar
MessageBar (all components)
25.54 kB
9.102 kB
react-overflow
hooks only
12.419 kB
4.687 kB
react-persona
Persona
57.425 kB
17.798 kB
react-popover
Popover
119.46 kB
37.714 kB
react-portal
Portal
12.4 kB
4.541 kB
react-portal-compat
PortalCompatProvider
6.651 kB
2.252 kB
react-positioning
usePositioning
25.305 kB
9.162 kB
react-progress
ProgressBar
17.788 kB
6.986 kB
react-provider
FluentProvider
22.831 kB
8.429 kB
react-radio
Radio
31.266 kB
10.267 kB
react-radio
RadioGroup
15.704 kB
6.35 kB
react-select
Select
28.968 kB
10.269 kB
react-slider
Slider
38.349 kB
12.595 kB
react-spinbutton
SpinButton
37.133 kB
11.856 kB
react-spinner
Spinner
23.762 kB
8.556 kB
react-switch
Switch
33.731 kB
10.899 kB
react-table
DataGrid
156.996 kB
43.893 kB
react-table
Table (Primitives only)
43.941 kB
13.76 kB
react-table
Table as DataGrid
130.165 kB
35.174 kB
react-table
Table (Selection only)
75.777 kB
20.477 kB
react-table
Table (Sort only)
74.384 kB
20.075 kB
react-tags
InteractionTag
15.618 kB
6.152 kB
react-tags
Tag
30.341 kB
9.505 kB
react-tags
TagGroup
73.816 kB
22.097 kB
react-text
Text - Default
17.065 kB
6.645 kB
react-text
Text - Wrappers
20.237 kB
6.965 kB
react-textarea
Textarea
31.306 kB
10.549 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
34.611 kB
7.295 kB
react-theme
Teams: Light theme
19.282 kB
5.486 kB
react-toast
Toast (including Toaster)
92.545 kB
27.805 kB
react-tooltip
Tooltip
52.466 kB
18.466 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against b5d527237289d185bd58e4500a04f9d3d495662a

@size-auditor
Copy link

size-auditor bot commented Sep 26, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: b5d527237289d185bd58e4500a04f9d3d495662a (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 26, 2023

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 634 617 5000
Breadcrumb mount 1666 1645 1000
Checkbox mount 1668 1680 5000
CheckboxBase mount 1468 1485 5000
ChoiceGroup mount 2874 2922 5000
ComboBox mount 654 656 1000
CommandBar mount 6184 6293 1000
ContextualMenu mount 14645 14727 1000
DefaultButton mount 744 742 5000
DetailsRow mount 2210 2204 5000
DetailsRowFast mount 2161 2172 5000
DetailsRowNoStyles mount 2016 1960 5000
Dialog mount 2627 2630 1000
DocumentCardTitle mount 224 223 1000
Dropdown mount 1942 2022 5000
FocusTrapZone mount 1128 1155 5000
FocusZone mount 1078 1077 5000
GroupedList mount 37152 41872 2
GroupedList virtual-rerender 19905 19985 2
GroupedList virtual-rerender-with-unmount 51352 50830 2
GroupedListV2 mount 236 225 2
GroupedListV2 virtual-rerender 207 211 2
GroupedListV2 virtual-rerender-with-unmount 217 232 2
IconButton mount 1096 1065 5000
Label mount 337 341 5000
Layer mount 2697 2729 5000
Link mount 380 383 5000
MenuButton mount 946 961 5000
MessageBar mount 21291 21374 5000
Nav mount 1943 1935 1000
OverflowSet mount 773 773 5000
Panel mount 1762 1796 1000
Persona mount 743 776 1000
Pivot mount 888 869 1000
PrimaryButton mount 856 836 5000
Rating mount 4620 4614 5000
SearchBox mount 899 917 5000
Shimmer mount 1868 1874 5000
Slider mount 1307 1319 5000
SpinButton mount 2855 2866 5000
Spinner mount 383 386 5000
SplitButton mount 1825 1772 5000
Stack mount 407 413 5000
StackWithIntrinsicChildren mount 867 864 5000
StackWithTextChildren mount 2604 2598 5000
SwatchColorPicker mount 6052 6083 5000
TagPicker mount 1430 1415 5000
Text mount 376 382 5000
TextField mount 958 922 5000
ThemeProvider mount 833 818 5000
ThemeProvider virtual-rerender 592 587 5000
ThemeProvider virtual-rerender-with-unmount 1259 1255 5000
Toggle mount 608 623 5000
buttonNative mount 191 195 5000

@@ -45,7 +45,7 @@ exports[`LineChart - mouse events Should render callout correctly on mouseover 1
"display": "block",
}
}
width={100}
width={108}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dunno what is happening here but this looks like not the most robust approach to approach tests.

It would be great to change this long term. also there are dozens of errors being triggered because react-charting is not using act as needed within tests.

cc @AtishayMsft - if you're ok with these changes lets merge it and unblock everyone else. your team can provide proper fixes afterwards. WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed. Upgrading jest version should not break test snapshots.
We have encountered some issues with the test platform in the past and had to workaround those.
Is this the only test that failed?
We can file a bug and let this upgrade proceed. The act issue is on our radar but not prioritized yet.

@srmukher Could you log a bug for this on the charting side.

undefined,
beforeAll,
);
// @FIXME - this is failing on CI / not failing on local machine
Copy link
Contributor Author

@Hotell Hotell Oct 19, 2023

Choose a reason for hiding this comment

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

this is getting bit out of control tbh. non deterministic snapshots generated on local vs CI environment.

cc @AtishayMsft

  • Local: all passes

  • CI:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

@srmukher is looking into this.

@Hotell
Copy link
Contributor Author

Hotell commented Oct 19, 2023

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@TristanWatanabe
Copy link
Member

/azp run Visual Regression Tool - PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…ing after jest 29.7 bump + are non deterministic on local vs CI environment
…re failing after jest 29.7 bump + are non deterministic on local vs CI environment
Copy link
Contributor

@AtishayMsft AtishayMsft left a comment

Choose a reason for hiding this comment

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

Approving for changes in charting package. I have logged an issue #29607 to track this at Charting end.

@Hotell Hotell marked this pull request as ready for review October 20, 2023 08:07
@Hotell Hotell requested a review from a team as a code owner October 20, 2023 08:07
@Hotell Hotell requested a review from a team as a code owner October 20, 2023 08:07
@Hotell Hotell merged commit 9c7c2e0 into microsoft:master Oct 20, 2023
26 checks passed
@Hotell Hotell deleted the hotell/jest/29-7-0 branch October 20, 2023 10:26
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 24, 2023
* master: (48 commits)
  fix(react-drawer): regression with mountNode prop not available after refactoring (microsoft#29524)
  feat(react-storybook-addon-codesandbox): support various providers for "export to" functionality (microsoft#29536)
  feat(TimePicker-compat): call onTimeSelect on blur (microsoft#29597)
  feat: (breadcrumb) Removed appearance prop (microsoft#29554)
  chore(deps): bump fsevents from 1.2.9 to 1.2.13 (microsoft#29476)
  Adding comment in Hovercard that we support cumulative area chart currently (microsoft#29395)
  applying package updates
  applying package updates
  chore(vr-tests-react-components, perf-tests-app): Remove infobutton from vr-tests and perf test app (microsoft#29603)
  docs: Add guidance for modifying textarea's height. (microsoft#29601)
  fix(react-calendar-compat): Classnames removed and added to day cells need to be split instead of providing a string with spaces (microsoft#29611)
  [Part 2] Changes to onboard charting to fluent docsite (microsoft#29608)
  chore: bump jest to 29.7.0 (microsoft#29298)
  applying package updates
  feat(react-infolabel, react-components): Release InfoLabel to stable (microsoft#29585)
  feat(react-datepicker-compat): Update DatePicker to use react-calendar-compat (microsoft#29587)
  feat: adds motion to DialogSurface (microsoft#29391)
  fix: Use correct target windows for ResizeObserver (microsoft#29551)
  chg (microsoft#29592)
  Fix missing x callout custom callout (microsoft#29547)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Build System dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants