Skip to content

fix(scripts): v9 release should not include v8 docsite in scope#24809

Closed
ling1726 wants to merge 2 commits intomicrosoft:masterfrom
ling1726:fix/v9-release-scoping
Closed

fix(scripts): v9 release should not include v8 docsite in scope#24809
ling1726 wants to merge 2 commits intomicrosoft:masterfrom
ling1726:fix/v9-release-scoping

Conversation

@ling1726
Copy link
Contributor

The current scoping means that v8 docsites will always be in scope for v9 release

@ling1726 ling1726 requested a review from a team as a code owner September 15, 2022 08:56
@github-actions github-actions bot added this to the July Project Cycle Q3 2022 milestone Sep 15, 2022
@ling1726 ling1726 changed the title fix(runPublished): v9 release should not include v8 docsite fix(runPublished): v9 release should not include v8 docsite in scope Sep 15, 2022
@fabricteam
Copy link
Collaborator

fabricteam commented Sep 15, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
priority-overflow
createOverflowManager
2.936 kB
1.212 kB
react-accordion
Accordion (including children components)
78.914 kB
24.06 kB
react-alert
Alert
83.511 kB
20.921 kB
react-avatar
Avatar
48.381 kB
13.696 kB
react-avatar
AvatarGroup
14.95 kB
5.989 kB
react-avatar
AvatarGroupItem
68.349 kB
19.039 kB
react-badge
Badge
22.6 kB
7.205 kB
react-badge
CounterBadge
23.503 kB
7.497 kB
react-badge
PresenceBadge
24.05 kB
7.067 kB
react-button
Button
36.119 kB
9.647 kB
react-button
CompoundButton
43.144 kB
10.86 kB
react-button
MenuButton
38.813 kB
10.551 kB
react-button
SplitButton
46.228 kB
11.933 kB
react-button
ToggleButton
51.888 kB
11.127 kB
react-card
Card - All
67.002 kB
19.261 kB
react-card
Card
62.684 kB
18.177 kB
react-card
CardFooter
8.561 kB
3.601 kB
react-card
CardHeader
9.604 kB
3.94 kB
react-card
CardPreview
8.662 kB
3.656 kB
react-combobox
Combobox (including child components)
74.636 kB
24.186 kB
react-combobox
Dropdown (including child components)
74.236 kB
24.086 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
188.001 kB
52.069 kB
react-components
react-components: FluentProvider & webLightTheme
33.394 kB
11.007 kB
react-dialog
Dialog (including children components)
81.048 kB
24.208 kB
react-divider
Divider
16.459 kB
5.902 kB
react-image
Image
10.78 kB
4.264 kB
react-input
Input
23.757 kB
7.704 kB
react-label
Label
9.338 kB
3.86 kB
react-link
Link
11.784 kB
4.867 kB
react-menu
Menu (including children components)
115.778 kB
35.425 kB
react-menu
Menu (including selectable components)
118.977 kB
35.92 kB
react-overflow
hooks only
10.685 kB
4.104 kB
react-popover
Popover
102.963 kB
31.553 kB
react-portal
Portal
10.576 kB
3.875 kB
react-portal-compat
PortalCompatProvider
5.851 kB
1.964 kB
react-positioning
usePositioning
19.7 kB
7.404 kB
react-provider
FluentProvider
15.755 kB
5.883 kB
react-radio
Radio
35.56 kB
11.929 kB
react-radio
RadioGroup
14.248 kB
5.7 kB
react-select
Select
20.846 kB
7.346 kB
react-slider
Slider
31.526 kB
10.046 kB
react-spinbutton
SpinButton
44.102 kB
12.425 kB
react-spinner
Spinner
19.977 kB
6.438 kB
react-switch
Switch
32.097 kB
10.27 kB
react-text
Text - Default
11.782 kB
4.605 kB
react-text
Text - Wrappers
15.092 kB
5.044 kB
react-textarea
Textarea
23.988 kB
8.011 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
29.65 kB
6.444 kB
react-theme
Teams: Light theme
17.486 kB
5.057 kB
react-tooltip
Tooltip
41.502 kB
14.623 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against a33448fe4a0f4117686c378f80b893d1406d95a8

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 15, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1309 1328 5000
Button mount 954 956 5000
FluentProvider mount 1568 1566 5000
FluentProviderWithTheme mount 645 625 10
FluentProviderWithTheme virtual-rerender 598 598 10
FluentProviderWithTheme virtual-rerender-with-unmount 640 636 10
MakeStyles mount 1914 1900 50000
SpinButton mount 2616 2523 5000


const isConverged = isConvergedPackage({ packagePathOrJson: packageJson });
if (process.env.RELEASE_VNEXT && isConverged) {
if (releaseScope === 'v9' && isConverged) {
Copy link
Contributor

@Hotell Hotell Sep 15, 2022

Choose a reason for hiding this comment

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

can we unify this one way or another for both if statements? (release scope check first , isConverged 2nd )
releaseScope === 'v9' && isConverged or isConverged && releaseScope === 'v9'

'@fluentui/api-docs',
];

const releaseScope = process.env.RELEASE_VNEXT ? 'v9' : 'v8';
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add more docs to this ? there is something for beachbalPackagesScopes but Im not sure its up to date

@codesandbox-ci
Copy link

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 e791e1c:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 15, 2022

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
ButtonMinimalPerf.default 138 127 1.09:1
RadioGroupMinimalPerf.default 384 352 1.09:1
TreeWith60ListItems.default 140 129 1.09:1
AttachmentMinimalPerf.default 125 118 1.06:1
ChatWithPopoverPerf.default 316 301 1.05:1
LoaderMinimalPerf.default 557 529 1.05:1
ProviderMinimalPerf.default 353 336 1.05:1
TextAreaMinimalPerf.default 398 379 1.05:1
CarouselMinimalPerf.default 383 370 1.04:1
DropdownManyItemsPerf.default 561 539 1.04:1
FlexMinimalPerf.default 243 234 1.04:1
PortalMinimalPerf.default 145 140 1.04:1
SkeletonMinimalPerf.default 289 279 1.04:1
ChatMinimalPerf.default 619 603 1.03:1
ImageMinimalPerf.default 321 313 1.03:1
ListCommonPerf.default 516 500 1.03:1
ToolbarMinimalPerf.default 780 760 1.03:1
AnimationMinimalPerf.default 450 442 1.02:1
BoxMinimalPerf.default 284 279 1.02:1
HeaderMinimalPerf.default 293 288 1.02:1
ListMinimalPerf.default 423 414 1.02:1
RefMinimalPerf.default 180 176 1.02:1
IconMinimalPerf.default 546 533 1.02:1
TableMinimalPerf.default 331 324 1.02:1
AvatarMinimalPerf.default 160 159 1.01:1
DropdownMinimalPerf.default 2256 2242 1.01:1
HeaderSlotsPerf.default 628 621 1.01:1
LayoutMinimalPerf.default 290 287 1.01:1
MenuMinimalPerf.default 700 695 1.01:1
ReactionMinimalPerf.default 306 304 1.01:1
SegmentMinimalPerf.default 282 279 1.01:1
StatusMinimalPerf.default 558 552 1.01:1
TableManyItemsPerf.default 1560 1545 1.01:1
TextMinimalPerf.default 278 274 1.01:1
TooltipMinimalPerf.default 1943 1918 1.01:1
VideoMinimalPerf.default 603 595 1.01:1
ButtonOverridesMissPerf.default 1092 1096 1:1
CardMinimalPerf.default 446 444 1:1
CheckboxMinimalPerf.default 1728 1730 1:1
DialogMinimalPerf.default 646 646 1:1
InputMinimalPerf.default 940 942 1:1
ItemLayoutMinimalPerf.default 966 962 1:1
MenuButtonMinimalPerf.default 1406 1411 1:1
SliderMinimalPerf.default 1327 1322 1:1
SplitButtonMinimalPerf.default 3649 3635 1:1
TreeMinimalPerf.default 675 673 1:1
AlertMinimalPerf.default 213 216 0.99:1
ButtonSlotsPerf.default 459 464 0.99:1
DividerMinimalPerf.default 288 291 0.99:1
EmbedMinimalPerf.default 3018 3037 0.99:1
ListNestedPerf.default 454 457 0.99:1
RosterPerf.default 1776 1794 0.99:1
ProviderMergeThemesPerf.default 1052 1064 0.99:1
CustomToolbarPrototype.default 2237 2251 0.99:1
AccordionMinimalPerf.default 117 120 0.98:1
ChatDuplicateMessagesPerf.default 243 247 0.98:1
DatepickerMinimalPerf.default 4732 4824 0.98:1
GridMinimalPerf.default 270 275 0.98:1
LabelMinimalPerf.default 309 315 0.98:1
PopupMinimalPerf.default 526 536 0.98:1
ListWith60ListItems.default 516 530 0.97:1
AttachmentSlotsPerf.default 905 943 0.96:1
FormMinimalPerf.default 311 324 0.96:1

@size-auditor
Copy link

size-auditor bot commented Sep 15, 2022

Asset size changes

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

Baseline commit: a33448fe4a0f4117686c378f80b893d1406d95a8 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Sep 15, 2022

Perf Analysis (@fluentui/react)

Scenario Render type Master Ticks PR Ticks Iterations Status
ThemeProvider virtual-rerender-with-unmount 1715 1732 5000 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 778 763 5000
Breadcrumb mount 2484 2415 1000
Checkbox mount 2151 2207 5000
CheckboxBase mount 1848 1960 5000
ChoiceGroup mount 3943 3952 5000
ComboBox mount 822 835 1000
CommandBar mount 9078 8705 1000
ContextualMenu mount 9757 10165 1000
DefaultButton mount 845 884 5000
DetailsRow mount 3159 3237 5000
DetailsRowFast mount 2875 3099 5000
DetailsRowNoStyles mount 3056 2884 5000
Dialog mount 2648 2575 1000
DocumentCardTitle mount 135 151 1000
Dropdown mount 2788 2773 5000
FocusTrapZone mount 1485 1655 5000
FocusZone mount 1571 1527 5000
IconButton mount 1486 1493 5000
Label mount 297 300 5000
Layer mount 3833 3820 5000
Link mount 386 392 5000
MenuButton mount 1240 1224 5000
MessageBar mount 1655 1896 5000
Nav mount 2646 2869 1000
OverflowSet mount 960 946 5000
Panel mount 2148 2139 1000
Persona mount 857 840 1000
Pivot mount 1227 1150 1000
PrimaryButton mount 999 1112 5000
Rating mount 6469 6581 5000
SearchBox mount 1025 1098 5000
Shimmer mount 2341 2397 5000
Slider mount 1653 1618 5000
SpinButton mount 4172 4204 5000
Spinner mount 327 366 5000
SplitButton mount 2667 2646 5000
Stack mount 436 441 5000
StackWithIntrinsicChildren mount 1924 1738 5000
StackWithTextChildren mount 4219 4372 5000
SwatchColorPicker mount 9740 9938 5000
TagPicker mount 2239 2233 5000
TeachingBubble mount 86172 84928 5000
Text mount 363 367 5000
TextField mount 1182 1118 5000
ThemeProvider mount 1059 1092 5000
ThemeProvider virtual-rerender 582 663 5000
ThemeProvider virtual-rerender-with-unmount 1715 1732 5000 Possible regression
Toggle mount 674 694 5000
buttonNative mount 112 114 5000

@Hotell Hotell removed this from the July Project Cycle Q3 2022 milestone Sep 15, 2022
@Hotell Hotell changed the title fix(runPublished): v9 release should not include v8 docsite in scope fix(scripts): v9 release should not include v8 docsite in scope Sep 15, 2022
}

if (!isConverged) {
if (!isConverged && releaseScope === 'v8') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (!isConverged && releaseScope === 'v8') {
if (releaseScope === 'v8' && !isConverged) {

@Hotell
Copy link
Contributor

Hotell commented Oct 4, 2022

can we merge this ? @ling1726

@Hotell
Copy link
Contributor

Hotell commented Oct 5, 2022

I added this fix in this bigger PR #25095, feel free to both merge or close. ty

@ling1726 ling1726 closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants