Skip to content

Conversation

@ralucapelin
Copy link
Contributor

Current Behavior

If multiple PRs are pushed at the same time, screener-run.yml for all of them is likely to download the last artifact that was uploaded, the other ones being ignored. This race condition may cause build failures for the involved PRs.

New Behavior

The action used to download artifacts uses the run ID of the screener-build.yml workflow in order to download the artifact associated with the current build.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 31, 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 9238a65:

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

@size-auditor
Copy link

size-auditor bot commented Aug 31, 2022

Asset size changes

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

Baseline commit: d1e8f0764fb477271da45f0dd1f4c1b3beb06699 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 31, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1320 1303 5000
Button mount 941 954 5000
FluentProvider mount 1568 1586 5000
FluentProviderWithTheme mount 632 634 10
FluentProviderWithTheme virtual-rerender 592 595 10
FluentProviderWithTheme virtual-rerender-with-unmount 636 639 10
MakeStyles mount 1889 1903 50000
SpinButton mount 2513 2529 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 31, 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.349 kB
24.053 kB
react-alert
Alert
83.79 kB
20.841 kB
react-avatar
Avatar
48.283 kB
13.644 kB
react-avatar
AvatarGroup
14.85 kB
5.942 kB
react-avatar
AvatarGroupItem
68.251 kB
18.987 kB
react-badge
Badge
22.503 kB
7.153 kB
react-badge
CounterBadge
23.406 kB
7.449 kB
react-badge
PresenceBadge
23.947 kB
7.022 kB
react-button
Button
36.396 kB
9.579 kB
react-button
CompoundButton
43.469 kB
10.812 kB
react-button
MenuButton
39.014 kB
10.456 kB
react-button
SplitButton
46.544 kB
11.84 kB
react-button
ToggleButton
51.91 kB
11.003 kB
react-card
Card - All
67.458 kB
19.264 kB
react-card
Card
63.14 kB
18.176 kB
react-card
CardFooter
8.461 kB
3.555 kB
react-card
CardHeader
9.504 kB
3.896 kB
react-card
CardPreview
8.562 kB
3.61 kB
react-combobox
Combobox (including child components)
73.757 kB
23.969 kB
react-combobox
Dropdown (including child components)
73.344 kB
23.876 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
188.818 kB
51.901 kB
react-components
react-components: FluentProvider & webLightTheme
33.259 kB
10.952 kB
react-dialog
Dialog (including children components)
85.361 kB
25.458 kB
react-divider
Divider
16.359 kB
5.853 kB
react-image
Image
10.68 kB
4.215 kB
react-input
Input
23.498 kB
7.617 kB
react-label
Label
9.238 kB
3.815 kB
react-link
Link
12.231 kB
4.925 kB
react-menu
Menu (including children components)
115.697 kB
35.316 kB
react-menu
Menu (including selectable components)
118.896 kB
35.806 kB
react-overflow
hooks only
10.685 kB
4.104 kB
react-popover
Popover
102.837 kB
31.496 kB
react-portal
Portal
10.576 kB
3.875 kB
react-positioning
usePositioning
19.7 kB
7.404 kB
react-provider
FluentProvider
15.655 kB
5.835 kB
react-radio
Radio
36.025 kB
11.914 kB
react-radio
RadioGroup
14.148 kB
5.654 kB
react-select
Select
20.746 kB
7.299 kB
react-slider
Slider
32.07 kB
10.033 kB
react-spinbutton
SpinButton
43.843 kB
12.336 kB
react-spinner
Spinner
19.855 kB
6.384 kB
react-switch
Switch
32.562 kB
10.253 kB
react-text
Text - Default
11.682 kB
4.561 kB
react-text
Text - Wrappers
14.992 kB
4.995 kB
react-textarea
Textarea
23.674 kB
7.83 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
29.548 kB
6.434 kB
react-theme
Teams: Light theme
17.452 kB
5.054 kB
react-tooltip
Tooltip
41.504 kB
14.622 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against d1e8f0764fb477271da45f0dd1f4c1b3beb06699

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 31, 2022

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AvatarMinimalPerf.default 163 150 1.09:1
CarouselMinimalPerf.default 390 359 1.09:1
TextMinimalPerf.default 281 266 1.06:1
AlertMinimalPerf.default 220 210 1.05:1
LayoutMinimalPerf.default 292 277 1.05:1
AttachmentSlotsPerf.default 925 890 1.04:1
CardMinimalPerf.default 448 430 1.04:1
LabelMinimalPerf.default 318 307 1.04:1
RefMinimalPerf.default 189 181 1.04:1
AccordionMinimalPerf.default 122 119 1.03:1
DropdownManyItemsPerf.default 564 548 1.03:1
GridMinimalPerf.default 275 268 1.03:1
HeaderMinimalPerf.default 300 290 1.03:1
AttachmentMinimalPerf.default 124 121 1.02:1
ChatMinimalPerf.default 602 592 1.02:1
ListWith60ListItems.default 516 507 1.02:1
RosterPerf.default 1784 1757 1.02:1
ProviderMinimalPerf.default 335 330 1.02:1
ReactionMinimalPerf.default 308 301 1.02:1
TableMinimalPerf.default 330 325 1.02:1
TextAreaMinimalPerf.default 397 390 1.02:1
TreeMinimalPerf.default 663 653 1.02:1
AnimationMinimalPerf.default 447 442 1.01:1
ButtonMinimalPerf.default 131 130 1.01:1
ButtonOverridesMissPerf.default 1246 1238 1.01:1
DatepickerMinimalPerf.default 4790 4749 1.01:1
DialogMinimalPerf.default 642 635 1.01:1
ItemLayoutMinimalPerf.default 977 966 1.01:1
LoaderMinimalPerf.default 571 568 1.01:1
MenuMinimalPerf.default 694 688 1.01:1
MenuButtonMinimalPerf.default 1410 1398 1.01:1
SplitButtonMinimalPerf.default 3667 3619 1.01:1
IconMinimalPerf.default 557 551 1.01:1
ToolbarMinimalPerf.default 769 760 1.01:1
BoxMinimalPerf.default 264 263 1:1
ButtonSlotsPerf.default 463 461 1:1
CheckboxMinimalPerf.default 2226 2231 1:1
DropdownMinimalPerf.default 2616 2605 1:1
EmbedMinimalPerf.default 3426 3420 1:1
InputMinimalPerf.default 1073 1078 1:1
PopupMinimalPerf.default 524 524 1:1
SkeletonMinimalPerf.default 279 278 1:1
SliderMinimalPerf.default 1392 1386 1:1
TableManyItemsPerf.default 1564 1561 1:1
TooltipMinimalPerf.default 1949 1944 1:1
DividerMinimalPerf.default 282 286 0.99:1
FormMinimalPerf.default 302 305 0.99:1
ListMinimalPerf.default 418 421 0.99:1
ListNestedPerf.default 438 441 0.99:1
PortalMinimalPerf.default 141 143 0.99:1
ProviderMergeThemesPerf.default 1049 1055 0.99:1
CustomToolbarPrototype.default 2391 2406 0.99:1
TreeWith60ListItems.default 129 130 0.99:1
ChatWithPopoverPerf.default 310 315 0.98:1
HeaderSlotsPerf.default 606 620 0.98:1
RadioGroupMinimalPerf.default 353 361 0.98:1
SegmentMinimalPerf.default 277 282 0.98:1
VideoMinimalPerf.default 595 606 0.98:1
FlexMinimalPerf.default 225 233 0.97:1
ImageMinimalPerf.default 305 313 0.97:1
ListCommonPerf.default 505 520 0.97:1
StatusMinimalPerf.default 532 553 0.96:1
ChatDuplicateMessagesPerf.default 228 239 0.95:1

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 31, 2022

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 749 755 5000
Breadcrumb mount 2437 2445 1000
Checkbox mount 2234 2205 5000
CheckboxBase mount 1920 1976 5000
ChoiceGroup mount 3947 3986 5000
ComboBox mount 820 841 1000
CommandBar mount 9053 9038 1000
ContextualMenu mount 10409 10564 1000
DefaultButton mount 965 973 5000
DetailsRow mount 3267 3176 5000
DetailsRowFast mount 3255 3229 5000
DetailsRowNoStyles mount 3113 3075 5000
Dialog mount 2617 2660 1000
DocumentCardTitle mount 144 149 1000
Dropdown mount 2838 2806 5000
FocusTrapZone mount 1587 1618 5000
FocusZone mount 1550 1511 5000
IconButton mount 1491 1500 5000
Label mount 302 312 5000
Layer mount 3822 3855 5000
Link mount 397 402 5000
MenuButton mount 1229 1236 5000
MessageBar mount 1813 1830 5000
Nav mount 2856 2853 1000
OverflowSet mount 927 942 5000
Panel mount 2116 2110 1000
Persona mount 851 813 1000
Pivot mount 1218 1232 1000
PrimaryButton mount 1107 1098 5000
Rating mount 6590 6509 5000
SearchBox mount 1075 1082 5000
Shimmer mount 2390 2450 5000
Slider mount 1668 1632 5000
SpinButton mount 4264 4241 5000
Spinner mount 384 371 5000
SplitButton mount 2649 2688 5000
Stack mount 429 427 5000
StackWithIntrinsicChildren mount 1953 1977 5000
StackWithTextChildren mount 4408 4393 5000
SwatchColorPicker mount 10088 10148 5000
TagPicker mount 2273 2226 5000
TeachingBubble mount 84938 84092 5000
Text mount 359 360 5000
TextField mount 1183 1172 5000
ThemeProvider mount 1102 1102 5000
ThemeProvider virtual-rerender 643 652 5000
ThemeProvider virtual-rerender-with-unmount 1726 1741 5000
Toggle mount 677 699 5000
buttonNative mount 108 108 5000

@ralucapelin ralucapelin marked this pull request as ready for review August 31, 2022 11:37
@ralucapelin ralucapelin requested a review from a team as a code owner August 31, 2022 11:37
uses: dawidd6/action-download-artifact@v2
with:
workflow: screener-build.yml
workflow_conclusion: success
Copy link
Member

Choose a reason for hiding this comment

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

Q: why workflow_conclusion is removed?
A: Do not specify pr, commit, branch, run_id together or workflow_conclusion and run_id together. Pick just one of each or none. https://github.com/dawidd6/action-download-artifact#usage

@ralucapelin ralucapelin merged commit 85974c9 into master Aug 31, 2022
@ralucapelin ralucapelin deleted the fix-artifact-downloading-race-condition branch August 31, 2022 12:43
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Sep 1, 2022
* master: (99 commits)
  applying package updates
  add coastal to @fluentui/react package and components (microsoft#24599)
  fix(react-18-tests-v9): extend correct tsconfig.json (microsoft#24626)
  feat(react-18-tests-v9): Add cypress setup to enable writing cypress tests (microsoft#24619)
  chore: Removing CompoundButtonAsToggleButton story since it was importing non-exported functions (microsoft#24620)
  Update PeoplePicker focus styles for the close button - Add borderRadius to getFocusStyle (microsoft#24596)
  fix(react-theme): Rename colorNeutralForegroundInvertedStatic token to colorNeutralForegroundStaticInverted (microsoft#24611)
  Website fabric core (microsoft#24613)
  fix(react-theme) update react theme colors mapping (microsoft#24608)
  Remove downloaded artifact file after using it (microsoft#24606)
  Fix artifact downloading race condition (microsoft#24607)
  chore(deps): bump moment-timezone from 0.5.34 to 0.5.37 (microsoft#24604)
  Remove check for commit existence and make it optional (microsoft#24587)
  Update "screener-build.yml" to include lage's output (microsoft#24586)
  fix(react-theme): Change colorBrandForeground2 mapping in teamsDark theme (microsoft#24579)
  Add scoping for workflow (microsoft#24466)
  fix(react-theme): Swap Background1 and Foreground1 in HC color palette (microsoft#24498)
  applying package updates
  Add support for javascript date localization (microsoft#24577)
  fix: Combobox and Dropdown hover/active borders and padding style fixes (microsoft#24362)
  ...
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.

6 participants