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

Build: Update React versions and resolutions in sandbox templates #28612

Draft
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Jul 15, 2024

Closes #

What I did

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

name before after diff %
createTime 8s 23.6s 15.5s 🔺65.9%
generateTime 24.7s 22s -2s -783ms 🔰-12.6%
initTime 25.1s 23.1s -1s -999ms 🔰-8.6%
createSize 0 B 0 B 0 B -
generateSize 76.5 MB 76.5 MB 0 B 0%
initSize 198 MB 198 MB -24 B 0%
diffSize 121 MB 121 MB -24 B 0%
buildTime 14.9s 15.2s 279ms 1.8%
buildSize 7.59 MB 7.59 MB 0 B 0%
buildSbAddonsSize 1.63 MB 1.63 MB 0 B 0%
buildSbCommonSize 195 kB 195 kB 0 B 0%
buildSbManagerSize 2.3 MB 2.3 MB 0 B 0%
buildSbPreviewSize 349 kB 349 kB 0 B 0%
buildStaticSize 0 B 0 B 0 B -
buildPrebuildSize 4.47 MB 4.47 MB 0 B 0%
buildPreviewSize 3.12 MB 3.12 MB 0 B 0%
testBuildTime 0ms 0ms 0ms -
testBuildSize 0 B 0 B 0 B -
testBuildSbAddonsSize 0 B 0 B 0 B -
testBuildSbCommonSize 0 B 0 B 0 B -
testBuildSbManagerSize 0 B 0 B 0 B -
testBuildSbPreviewSize 0 B 0 B 0 B -
testBuildStaticSize 0 B 0 B 0 B -
testBuildPrebuildSize 0 B 0 B 0 B -
testBuildPreviewSize 0 B 0 B 0 B -
devPreviewResponsive 8.8s 7.5s -1s -283ms 🔰-16.9%
devManagerResponsive 5.7s 5.1s -534ms 🔰-10.3%
devManagerHeaderVisible 813ms 707ms -106ms 🔰-15%
devManagerIndexVisible 844ms 740ms -104ms 🔰-14.1%
devStoryVisibleUncached 1.5s 797ms -747ms 🔰-93.7%
devStoryVisible 872ms 757ms -115ms 🔰-15.2%
devAutodocsVisible 774ms 622ms -152ms 🔰-24.4%
devMDXVisible 797ms 660ms -137ms 🔰-20.8%
buildManagerHeaderVisible 737ms 740ms 3ms 0.4%
buildManagerIndexVisible 743ms 772ms 29ms 3.8%
buildStoryVisible 787ms 780ms -7ms -0.9%
buildAutodocsVisible 650ms 632ms -18ms -2.8%
buildMDXVisible 670ms 617ms -53ms 🔰-8.6%

@yannbf yannbf added build Internal-facing build tooling & test updates ci:normal ci: do not merge labels Jul 15, 2024
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

  • Updated React versions in /code/lib/cli/src/sandbox-templates.ts from beta to RC
  • Modified script commands to use react@rc and react-dom@rc
  • Updated resolutions for @types/react and @types/react-dom to RC packages

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@@ -28,12 +28,12 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: next
ref: yann/update-prerelease-react-sandboxes
Copy link
Member Author

Choose a reason for hiding this comment

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

We must not merge with this change. It's here for testing purposes.

Copy link
Contributor

github-actions bot commented Jul 15, 2024

Fails
🚫 PR is marked with "ci: do not merge" label.

Generated by 🚫 dangerJS against f02d6fb

Copy link

nx-cloud bot commented Jul 15, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f02d6fb. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@@ -228,16 +228,16 @@ const baseTemplates = {
name: 'React Prerelease (Vite | TypeScript)',
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
name: 'React Prerelease (Vite | TypeScript)',
name: 'React Release Candidate (Vite | TypeScript)',

@kasperpeulen kasperpeulen marked this pull request as draft July 22, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Internal-facing build tooling & test updates ci: do not merge ci:normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants