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

fix(scripts): don't run publish if web-components are affected #25095

Merged
merged 2 commits into from
Oct 6, 2022

Conversation

Hotell
Copy link
Contributor

@Hotell Hotell commented Oct 5, 2022

Current Behavior

web-components build pipeline is executed for v9 and nightly release and v8, if affected

New Behavior

  • web-components build pipeline is not executed for v9 and nightly releases and v8
  • refactored runPublished + test coverage

Related Issue(s)

Super-seeds #24809


const { restArgs } = getSpawnCallArguments();

expect(restArgs).toMatchInlineSnapshot(`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this feels like a bug, IMO nothing should be run if there are no packages "affected" cc @ling1726

@size-auditor
Copy link

size-auditor bot commented Oct 5, 2022

Asset size changes

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

Baseline commit: ff55fc0e1abd7e61331bbcba18e066b6c449ba79 (build)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 5, 2022

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 9b49837:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 5, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1330 1327 5000
Button mount 957 951 5000
FluentProvider mount 1635 1609 5000
FluentProviderWithTheme mount 643 635 10
FluentProviderWithTheme virtual-rerender 600 600 10
FluentProviderWithTheme virtual-rerender-with-unmount 628 642 10
MakeStyles mount 1925 1916 50000
SpinButton mount 2569 2628 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 5, 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)
79.037 kB
24.059 kB
react-alert
Alert
84.117 kB
21.07 kB
react-avatar
Avatar
48.828 kB
13.842 kB
react-avatar
AvatarGroup
14.95 kB
5.989 kB
react-avatar
AvatarGroupItem
68.796 kB
19.182 kB
react-badge
Badge
22.6 kB
7.205 kB
react-badge
CounterBadge
23.49 kB
7.489 kB
react-badge
PresenceBadge
24.05 kB
7.067 kB
react-button
Button
36.278 kB
9.636 kB
react-button
CompoundButton
43.303 kB
10.852 kB
react-button
MenuButton
38.972 kB
10.536 kB
react-button
SplitButton
46.418 kB
11.916 kB
react-button
ToggleButton
52.145 kB
11.108 kB
react-card
Card - All
67.17 kB
19.281 kB
react-card
Card
62.852 kB
18.198 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.642 kB
24.19 kB
react-combobox
Dropdown (including child components)
74.242 kB
24.089 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
188.815 kB
52.287 kB
react-components
react-components: FluentProvider & webLightTheme
33.4 kB
11.008 kB
react-dialog
Dialog (including children components)
82.465 kB
24.447 kB
react-divider
Divider
16.459 kB
5.902 kB
react-image
Image
10.78 kB
4.264 kB
react-input
Input
23.762 kB
7.706 kB
react-label
Label
9.338 kB
3.86 kB
react-link
Link
11.806 kB
4.868 kB
react-menu
Menu (including children components)
116.558 kB
35.725 kB
react-menu
Menu (including selectable components)
119.627 kB
36.246 kB
react-overflow
hooks only
10.685 kB
4.104 kB
react-persona
Persona
53.946 kB
15.225 kB
react-popover
Popover
102.756 kB
31.5 kB
react-portal
Portal
10.582 kB
3.875 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
react-positioning
usePositioning
19.7 kB
7.404 kB
react-progress
Progress
11.25 kB
4.514 kB
react-provider
FluentProvider
15.761 kB
5.885 kB
react-radio
Radio
36.39 kB
12.103 kB
react-radio
RadioGroup
14.248 kB
5.7 kB
react-select
Select
20.846 kB
7.346 kB
react-slider
Slider
31.759 kB
10.064 kB
react-spinbutton
SpinButton
44.102 kB
12.425 kB
react-spinner
Spinner
19.977 kB
6.438 kB
react-switch
Switch
33.342 kB
10.557 kB
react-text
Text - Default
11.782 kB
4.605 kB
react-text
Text - Wrappers
15.092 kB
5.044 kB
react-textarea
Textarea
25.018 kB
8.133 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.566 kB
14.644 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against ff55fc0e1abd7e61331bbcba18e066b6c449ba79

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 5, 2022

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AccordionMinimalPerf.default 130 120 1.08:1
AttachmentMinimalPerf.default 130 122 1.07:1
BoxMinimalPerf.default 303 284 1.07:1
ChatDuplicateMessagesPerf.default 229 215 1.07:1
AttachmentSlotsPerf.default 900 868 1.04:1
CardMinimalPerf.default 482 463 1.04:1
CarouselMinimalPerf.default 367 354 1.04:1
PortalMinimalPerf.default 144 139 1.04:1
AnimationMinimalPerf.default 479 464 1.03:1
DividerMinimalPerf.default 313 305 1.03:1
HeaderMinimalPerf.default 321 312 1.03:1
ListWith60ListItems.default 497 484 1.03:1
IconMinimalPerf.default 580 564 1.03:1
ChatMinimalPerf.default 651 639 1.02:1
DropdownManyItemsPerf.default 549 537 1.02:1
ImageMinimalPerf.default 337 332 1.02:1
InputMinimalPerf.default 874 859 1.02:1
ListMinimalPerf.default 464 453 1.02:1
MenuMinimalPerf.default 747 733 1.02:1
ReactionMinimalPerf.default 336 331 1.02:1
RefMinimalPerf.default 194 190 1.02:1
SkeletonMinimalPerf.default 308 303 1.02:1
TableMinimalPerf.default 362 356 1.02:1
ToolbarMinimalPerf.default 803 785 1.02:1
AvatarMinimalPerf.default 164 162 1.01:1
CheckboxMinimalPerf.default 1552 1542 1.01:1
DropdownMinimalPerf.default 2189 2178 1.01:1
ItemLayoutMinimalPerf.default 977 969 1.01:1
ListCommonPerf.default 522 516 1.01:1
LoaderMinimalPerf.default 522 519 1.01:1
RadioGroupMinimalPerf.default 391 388 1.01:1
TextMinimalPerf.default 302 298 1.01:1
TextAreaMinimalPerf.default 411 407 1.01:1
TooltipMinimalPerf.default 1900 1882 1.01:1
AlertMinimalPerf.default 231 232 1:1
ButtonMinimalPerf.default 137 137 1:1
ButtonOverridesMissPerf.default 1027 1031 1:1
ButtonSlotsPerf.default 431 431 1:1
DatepickerMinimalPerf.default 4816 4804 1:1
DialogMinimalPerf.default 689 688 1:1
EmbedMinimalPerf.default 2668 2657 1:1
FlexMinimalPerf.default 252 252 1:1
HeaderSlotsPerf.default 679 682 1:1
RosterPerf.default 1728 1721 1:1
PopupMinimalPerf.default 562 561 1:1
SplitButtonMinimalPerf.default 3315 3310 1:1
StatusMinimalPerf.default 613 612 1:1
TreeMinimalPerf.default 696 696 1:1
LayoutMinimalPerf.default 314 316 0.99:1
MenuButtonMinimalPerf.default 1374 1382 0.99:1
ProviderMergeThemesPerf.default 990 995 0.99:1
ProviderMinimalPerf.default 316 318 0.99:1
TableManyItemsPerf.default 1574 1591 0.99:1
CustomToolbarPrototype.default 2162 2177 0.99:1
VideoMinimalPerf.default 629 634 0.99:1
GridMinimalPerf.default 295 302 0.98:1
ListNestedPerf.default 470 480 0.98:1
SegmentMinimalPerf.default 296 302 0.98:1
SliderMinimalPerf.default 1226 1246 0.98:1
ChatWithPopoverPerf.default 283 291 0.97:1
LabelMinimalPerf.default 334 348 0.96:1
TreeWith60ListItems.default 123 130 0.95:1
FormMinimalPerf.default 322 341 0.94:1

@fabricteam
Copy link
Collaborator

fabricteam commented Oct 5, 2022

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 1188 1194 5000
Breadcrumb mount 2959 2959 1000
Checkbox mount 2663 2689 5000
CheckboxBase mount 2368 2386 5000
ChoiceGroup mount 4429 4441 5000
ComboBox mount 1249 1268 1000
CommandBar mount 9617 9635 1000
ContextualMenu mount 11176 11412 1000
DefaultButton mount 1409 1401 5000
DetailsRow mount 3681 3643 5000
DetailsRowFast mount 3660 3620 5000
DetailsRowNoStyles mount 3439 3443 5000
Dialog mount 3140 3094 1000
DocumentCardTitle mount 597 581 1000
Dropdown mount 3238 3268 5000
FocusTrapZone mount 2064 2048 5000
FocusZone mount 2028 2010 5000
GroupedList mount 54052 60632 2
GroupedList virtual-rerender 25671 25103 2
GroupedList virtual-rerender-with-unmount 93608 94089 2
GroupedListV2 mount 563 571 2
GroupedListV2 virtual-rerender 549 537 2
GroupedListV2 virtual-rerender-with-unmount 564 557 2
IconButton mount 1923 1924 5000
Label mount 756 728 5000
Layer mount 4303 4294 5000
Link mount 837 830 5000
MenuButton mount 1727 1675 5000
MessageBar mount 2299 2380 5000
Nav mount 3321 3281 1000
OverflowSet mount 1380 1351 5000
Panel mount 2583 2591 1000
Persona mount 1270 1283 1000
Pivot mount 1659 1656 1000
PrimaryButton mount 1515 1540 5000
Rating mount 7060 7088 5000
SearchBox mount 1538 1524 5000
Shimmer mount 2921 2896 5000
Slider mount 2103 2095 5000
SpinButton mount 4696 4666 5000
Spinner mount 794 798 5000
SplitButton mount 3138 3086 5000
Stack mount 862 869 5000
StackWithIntrinsicChildren mount 2355 2363 5000
StackWithTextChildren mount 4808 4815 5000
SwatchColorPicker mount 10807 10534 5000
TagPicker mount 2639 2626 5000
TeachingBubble mount 88734 90637 5000
Text mount 805 789 5000
TextField mount 1587 1598 5000
ThemeProvider mount 1527 1527 5000
ThemeProvider virtual-rerender 1094 1091 5000
ThemeProvider virtual-rerender-with-unmount 2139 2158 5000
Toggle mount 1107 1113 5000
buttonNative mount 546 565 5000

@github-actions github-actions bot added this to the October Project Cycle Q4 2022 milestone Oct 5, 2022
@Hotell Hotell marked this pull request as ready for review October 6, 2022 08:05
@Hotell Hotell requested a review from a team as a code owner October 6, 2022 08:05
@Hotell Hotell merged commit 2484ba1 into microsoft:master Oct 6, 2022
@Hotell Hotell deleted the hotell/build/scripts-monorepo-fix branch October 6, 2022 08:56
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 10, 2022
* master: (23 commits)
  Revert "chore: screener-run workflow should report to PR (microsoft#25144)" (microsoft#25145)
  chore: screener-run workflow should report to PR (microsoft#25144)
  applying package updates
  fix: The Tooltip should not hide if it gets keyboard focus (microsoft#25138)
  fix: Tooltip should not hide if an element inside it gets focused (microsoft#25140)
  Create react-migration-v8-v9 with shims and stories (microsoft#25121)
  fix: CheckboxField to set a generated ID on the input, to match the label's htmlFor (microsoft#25079)
  feat: Overflow menu should be registered in overflowManager (microsoft#25091)
  fix: version-bump generator removes beachball disallowedChangeType config (microsoft#25130)
  fix: new overflow items should only be enqueued while observing (microsoft#25122)
  fix(script): allow runPublished call from CLI (microsoft#25127)
  feat: add vertical variation for toolbar (microsoft#24940)
  ProgressField implementation and stories (microsoft#25103)
  fix: Dropdown icon layout with no placeholder/value (microsoft#25049)
  chore: add a bundle size fixture (Button, Provider & theme) (microsoft#25113)
  feat: Adding subtle transition between states on Button components (microsoft#25106)
  Revert "chore: screener-run workflow should report to PR (microsoft#25096)" (microsoft#25115)
  chore: screener-run workflow should report to PR (microsoft#25096)
  fix(react-dialog): aria-* properties should be reassignable (microsoft#25092)
  fix(scripts): don't run publish if web-components are affected (microsoft#25095)
  ...
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
…soft#25095)

* fix(scripts): don't run publish if web-components are affected
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