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

feat: migrate storybook to gh actions #29929

Merged
merged 6 commits into from
Jan 29, 2025
Merged

Conversation

itsyoboieltr
Copy link
Contributor

@itsyoboieltr itsyoboieltr commented Jan 27, 2025

Description

Open in GitHub Codespaces

This PR migrates the storybook jobs from CircleCI to GitHub Actions.

Related issues

Fixes: #29447

Manual testing steps

  1. Everything should work the same as before

Screenshots/Recordings

Not applicable

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@itsyoboieltr itsyoboieltr self-assigned this Jan 27, 2025
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-extension-platform Extension Platform team label Jan 27, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [37ae14b]
Page Load Metrics (1598 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1492172416035828
domContentLoaded1483170415795526
load1493172315985728
domInteractive23102372311
backgroundConnect105425157
firstReactRender1572322311
getState4508105
initialActions00000
loadScripts1047125411424421
setupStore66013157
uiStartup1664203818348239
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

- name: Deploy storybook
# For a `pull_request` event, the branch is `github.head_ref``.
# For a `push` event, the branch is `github.ref_name`.
if: ${{ (github.head_ref || github.ref_name) == 'main' }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we test deployment too? not entirely sure if it is safe to run it randomly for testing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Its probably okay to merge without, as long as we know about when it will be merged in so we can revert quickly if it breaks things 😅

.github/workflows/publish-prerelease.yml Show resolved Hide resolved
development/highlights/index.js Outdated Show resolved Hide resolved
development/highlights/storybook.js Outdated Show resolved Hide resolved
development/highlights/storybook.js Show resolved Hide resolved
development/highlights/storybook.js Outdated Show resolved Hide resolved
development/metamaskbot-build-announce.js Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [b996dd6]
Page Load Metrics (1809 ± 69 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint39621401745342164
domContentLoaded15622109177813464
load15702146180914469
domInteractive24117493015
backgroundConnect1083302211
firstReactRender1694382512
getState574192211
initialActions01000
loadScripts11201608131411756
setupStore86418189
uiStartup18162617207019593
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

highlights:

storybook

@itsyoboieltr itsyoboieltr force-pushed the feat/migrate-storybook branch from 9d84f0c to ba01e27 Compare January 27, 2025 21:43
@itsyoboieltr itsyoboieltr marked this pull request as ready for review January 27, 2025 21:43
@itsyoboieltr itsyoboieltr requested a review from a team as a code owner January 27, 2025 21:43
@itsyoboieltr
Copy link
Contributor Author

itsyoboieltr commented Jan 27, 2025

Did one test without highlights and one with highlights. Both seem to still work. Didn't test deployment.

@metamaskbot
Copy link
Collaborator

Builds ready [e040c24]
Page Load Metrics (1617 ± 55 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14301864162212259
domContentLoaded13871801159310952
load14311865161711655
domInteractive23112462612
backgroundConnect97223189
firstReactRender1585412613
getState45514168
initialActions01000
loadScripts9881362117310450
setupStore75813136
uiStartup16712554188720498
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

hjetpoluru
hjetpoluru previously approved these changes Jan 28, 2025
Copy link
Contributor

@hjetpoluru hjetpoluru left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Excellent work! We may be able to use some of this for the https://github.com/MetaMask/metamask-design-system repo as well. Thank you! LGTM!

  • Checked Storybook build of PR works ✅

development/highlights/storybook.js Outdated Show resolved Hide resolved
}
} catch (error) {
console.error(`Error constructing highlight results: '${error}'`);
}
Copy link
Contributor Author

@itsyoboieltr itsyoboieltr Jan 28, 2025

Choose a reason for hiding this comment

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

Removed because it is unused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@metamaskbot
Copy link
Collaborator

Builds ready [b787356]
Page Load Metrics (1743 ± 83 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint52822731695318153
domContentLoaded14052207171015876
load14132282174317283
domInteractive23107372010
backgroundConnect10136393215
firstReactRender1597392713
getState56919189
initialActions01000
loadScripts9921731125314670
setupStore8131011
uiStartup15992496198820197
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

🔥

Copy link
Contributor

@davidmurdoch davidmurdoch left a comment

Choose a reason for hiding this comment

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

Since we aren't testing the new deploy step in this PR, let's immediately check that the deploy worked as soon as this merges, and revert quickly if it's a problem.

@itsyoboieltr itsyoboieltr added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit a9d90e5 Jan 29, 2025
70 checks passed
@itsyoboieltr itsyoboieltr deleted the feat/migrate-storybook branch January 29, 2025 08:49
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2025
@metamaskbot metamaskbot added the release-12.12.0 Issue or pull request that will be included in release 12.12.0 label Jan 29, 2025
@Gudahtt
Copy link
Member

Gudahtt commented Jan 29, 2025

Looks like the deploy is failing with an auth error

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.12.0 Issue or pull request that will be included in release 12.12.0 team-extension-platform Extension Platform team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration from CircleCI to GitHub Actions - Storybook
6 participants