fix(CI): include type-check in lage config to have all packages type checked again#25249
Conversation
… before running type-check
| "@types/lerna__project": "5.1.0", | ||
| "@types/loader-utils": "2.0.3", | ||
| "@types/markdown-table": "2.0.0", | ||
| "@types/micromatch": "4.0.2", |
| forceUpdate: jest.fn(), | ||
| observe: jest.fn(), | ||
| removeItem: jest.fn(), | ||
| removeOverflowMenu: jest.fn(), |
|
|
||
| // TODO: this should be replaced with `'@storybook/core-server';` API | ||
| // @ts-expect-error - standalone.js is basically private API/thus doesn't ship types. NOTE: Storybook can be run standalone from Node, although it should be noted this isn't officially supported any more. - https://github.com/storybookjs/storybook/blob/master/lib/core/docs/standalone.md#standalone-mode | ||
| // @ts-ignore- standalone.js is basically private API/thus doesn't ship types. NOTE: Storybook can be run standalone from Node, although it should be noted this isn't officially supported any more. - https://github.com/storybookjs/storybook/blob/master/lib/core/docs/standalone.md#standalone-mode |
|
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 97d7fc0:
|
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1305 | 1247 | 5000 | |
| Button | mount | 918 | 931 | 5000 | |
| FluentProvider | mount | 1475 | 1485 | 5000 | |
| FluentProviderWithTheme | mount | 579 | 579 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 535 | 549 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 579 | 578 | 10 | |
| MakeStyles | mount | 1959 | 2076 | 50000 | |
| SpinButton | mount | 2390 | 2382 | 5000 |
Perf Analysis (
|
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| PortalMinimalPerf.default | 155 | 139 | 1.12:1 |
| AvatarMinimalPerf.default | 174 | 157 | 1.11:1 |
| TreeWith60ListItems.default | 140 | 127 | 1.1:1 |
| AttachmentMinimalPerf.default | 133 | 125 | 1.06:1 |
| SkeletonMinimalPerf.default | 302 | 288 | 1.05:1 |
| AlertMinimalPerf.default | 233 | 226 | 1.03:1 |
| ButtonMinimalPerf.default | 141 | 137 | 1.03:1 |
| ButtonSlotsPerf.default | 435 | 422 | 1.03:1 |
| ChatMinimalPerf.default | 640 | 624 | 1.03:1 |
| FlexMinimalPerf.default | 258 | 250 | 1.03:1 |
| HeaderMinimalPerf.default | 325 | 316 | 1.03:1 |
| LayoutMinimalPerf.default | 318 | 309 | 1.03:1 |
| ProviderMinimalPerf.default | 326 | 318 | 1.03:1 |
| RefMinimalPerf.default | 187 | 182 | 1.03:1 |
| TextAreaMinimalPerf.default | 414 | 400 | 1.03:1 |
| HeaderSlotsPerf.default | 694 | 681 | 1.02:1 |
| ItemLayoutMinimalPerf.default | 986 | 963 | 1.02:1 |
| MenuMinimalPerf.default | 735 | 722 | 1.02:1 |
| RosterPerf.default | 1741 | 1712 | 1.02:1 |
| AnimationMinimalPerf.default | 467 | 463 | 1.01:1 |
| BoxMinimalPerf.default | 296 | 292 | 1.01:1 |
| CheckboxMinimalPerf.default | 1536 | 1526 | 1.01:1 |
| GridMinimalPerf.default | 295 | 293 | 1.01:1 |
| ListCommonPerf.default | 520 | 516 | 1.01:1 |
| ListMinimalPerf.default | 458 | 454 | 1.01:1 |
| PopupMinimalPerf.default | 561 | 555 | 1.01:1 |
| RadioGroupMinimalPerf.default | 391 | 388 | 1.01:1 |
| SplitButtonMinimalPerf.default | 3287 | 3256 | 1.01:1 |
| TableMinimalPerf.default | 358 | 354 | 1.01:1 |
| ToolbarMinimalPerf.default | 809 | 801 | 1.01:1 |
| TooltipMinimalPerf.default | 1843 | 1821 | 1.01:1 |
| CarouselMinimalPerf.default | 355 | 356 | 1:1 |
| DropdownMinimalPerf.default | 2196 | 2193 | 1:1 |
| EmbedMinimalPerf.default | 2639 | 2632 | 1:1 |
| InputMinimalPerf.default | 858 | 855 | 1:1 |
| ListNestedPerf.default | 472 | 470 | 1:1 |
| ReactionMinimalPerf.default | 330 | 331 | 1:1 |
| IconMinimalPerf.default | 552 | 552 | 1:1 |
| TableManyItemsPerf.default | 1567 | 1568 | 1:1 |
| CustomToolbarPrototype.default | 2153 | 2162 | 1:1 |
| VideoMinimalPerf.default | 632 | 631 | 1:1 |
| AttachmentSlotsPerf.default | 852 | 860 | 0.99:1 |
| CardMinimalPerf.default | 459 | 465 | 0.99:1 |
| DatepickerMinimalPerf.default | 4693 | 4727 | 0.99:1 |
| DialogMinimalPerf.default | 692 | 696 | 0.99:1 |
| DividerMinimalPerf.default | 319 | 321 | 0.99:1 |
| ImageMinimalPerf.default | 340 | 343 | 0.99:1 |
| LoaderMinimalPerf.default | 532 | 535 | 0.99:1 |
| SegmentMinimalPerf.default | 294 | 298 | 0.99:1 |
| SliderMinimalPerf.default | 1240 | 1252 | 0.99:1 |
| TextMinimalPerf.default | 295 | 299 | 0.99:1 |
| TreeMinimalPerf.default | 703 | 708 | 0.99:1 |
| ButtonOverridesMissPerf.default | 1012 | 1033 | 0.98:1 |
| DropdownManyItemsPerf.default | 531 | 544 | 0.98:1 |
| LabelMinimalPerf.default | 332 | 338 | 0.98:1 |
| MenuButtonMinimalPerf.default | 1354 | 1383 | 0.98:1 |
| ProviderMergeThemesPerf.default | 985 | 1004 | 0.98:1 |
| AccordionMinimalPerf.default | 124 | 128 | 0.97:1 |
| ChatDuplicateMessagesPerf.default | 213 | 219 | 0.97:1 |
| StatusMinimalPerf.default | 602 | 618 | 0.97:1 |
| FormMinimalPerf.default | 319 | 332 | 0.96:1 |
| ListWith60ListItems.default | 485 | 506 | 0.96:1 |
| ChatWithPopoverPerf.default | 272 | 287 | 0.95:1 |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 0d8be37486ff052856f4c7751c85ee7ed9816098 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 1593 | 1564 | 5000 | |
| Breadcrumb | mount | 3659 | 3689 | 1000 | |
| Checkbox | mount | 3404 | 3432 | 5000 | |
| CheckboxBase | mount | 3076 | 3075 | 5000 | |
| ChoiceGroup | mount | 5838 | 5904 | 5000 | |
| ComboBox | mount | 1599 | 1592 | 1000 | |
| CommandBar | mount | 12084 | 12098 | 1000 | |
| ContextualMenu | mount | 14056 | 14101 | 1000 | |
| DefaultButton | mount | 1792 | 1844 | 5000 | |
| DetailsRow | mount | 4765 | 4802 | 5000 | |
| DetailsRowFast | mount | 4843 | 4857 | 5000 | |
| DetailsRowNoStyles | mount | 4606 | 4634 | 5000 | |
| Dialog | mount | 3987 | 4010 | 1000 | |
| DocumentCardTitle | mount | 736 | 744 | 1000 | |
| Dropdown | mount | 4280 | 4608 | 5000 | |
| FocusTrapZone | mount | 2557 | 2612 | 5000 | |
| FocusZone | mount | 2467 | 2501 | 5000 | |
| GroupedList | mount | 70532 | 81750 | 2 | |
| GroupedList | virtual-rerender | 33843 | 33343 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 113049 | 111888 | 2 | |
| GroupedListV2 | mount | 716 | 692 | 2 | |
| GroupedListV2 | virtual-rerender | 661 | 644 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 713 | 711 | 2 | |
| IconButton | mount | 2516 | 2567 | 5000 | |
| Label | mount | 932 | 930 | 5000 | |
| Layer | mount | 5473 | 5446 | 5000 | |
| Link | mount | 1062 | 1084 | 5000 | |
| MenuButton | mount | 2253 | 2228 | 5000 | |
| MessageBar | mount | 2961 | 2929 | 5000 | |
| Nav | mount | 4289 | 4279 | 1000 | |
| OverflowSet | mount | 1742 | 1732 | 5000 | |
| Panel | mount | 3244 | 3179 | 1000 | |
| Persona | mount | 1652 | 1659 | 1000 | |
| Pivot | mount | 2124 | 2168 | 1000 | |
| PrimaryButton | mount | 1951 | 1984 | 5000 | |
| Rating | mount | 9604 | 9494 | 5000 | |
| SearchBox | mount | 2010 | 2029 | 5000 | |
| Shimmer | mount | 3862 | 3809 | 5000 | |
| Slider | mount | 2677 | 2751 | 5000 | |
| SpinButton | mount | 6091 | 6157 | 5000 | |
| Spinner | mount | 1014 | 1007 | 5000 | |
| SplitButton | mount | 4118 | 4053 | 5000 | |
| Stack | mount | 1123 | 1093 | 5000 | |
| StackWithIntrinsicChildren | mount | 3352 | 3296 | 5000 | |
| StackWithTextChildren | mount | 6651 | 6628 | 5000 | |
| SwatchColorPicker | mount | 13516 | 13671 | 5000 | |
| TagPicker | mount | 3484 | 3498 | 5000 | |
| TeachingBubble | mount | 109296 | 109548 | 5000 | |
| Text | mount | 1019 | 1012 | 5000 | |
| TextField | mount | 2064 | 2047 | 5000 | |
| ThemeProvider | mount | 1968 | 1946 | 5000 | |
| ThemeProvider | virtual-rerender | 1342 | 1366 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2741 | 2751 | 5000 | |
| Toggle | mount | 1472 | 1472 | 5000 | |
| buttonNative | mount | 697 | 688 | 5000 |
| lint: ['build'], | ||
| clean: [], | ||
| test: ['build'], | ||
| 'type-check': ['build'], |
There was a problem hiding this comment.
ensures that before running type-check for each package, that it and all of its dependencies have been properly built first
There was a problem hiding this comment.
while this is a good enough hot fix we need to do better, as this will slow down whole CI. type checks are most expensive operation ATM.
This issues will be mitigated be new task orchestrator in the future, but for now can we create issue to track this ? ty



Current Behavior
lage type-checkis ran, only thereact-18-tests-v8package'stype-checkexecutes so other packages are not getting proper type checking in local builds or CI. It seems we need to explicitly declare atype-checkfor all packages in thelage.configbefore having one scoped to just a single package to ensure proper type-checking for all packages.New Behavior
Related Issue(s)
Fixes #25245