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

CLI: Use ink in CLI #30202

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

CLI: Use ink in CLI #30202

wants to merge 51 commits into from

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jan 7, 2025

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-storybook/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 z %
createSize 0 B 0 B 0 B - -
generateSize 77.8 MB 77.8 MB 0 B -1.63 0%
initSize 131 MB 132 MB 818 kB 369.15 0.6%
diffSize 53 MB 53.8 MB 818 kB 1536.15 1.5%
buildSize 7.19 MB 7.19 MB 39 B 1.38 0%
buildSbAddonsSize 1.85 MB 1.85 MB 0 B - 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.87 MB 1.87 MB 0 B -0.65 0%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.91 MB 3.91 MB 0 B -0.65 0%
buildPreviewSize 3.28 MB 3.28 MB 39 B 1.36 0%
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 - -
name before after diff z %
createTime 26.3s 7.1s -19s -136ms -1.17 -266.6%
generateTime 22.8s 23.6s 745ms 2.13 3.2%
initTime 16.7s 15.8s -844ms 1.58 🔰-5.3%
buildTime 9.3s 8.9s -488ms -0.63 -5.5%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 4.8s 4.6s -229ms -0.87 -5%
devManagerResponsive 3.6s 3.5s -111ms -0.61 -3.1%
devManagerHeaderVisible 665ms 544ms -121ms -1.19 -22.2%
devManagerIndexVisible 701ms 572ms -129ms -1.31 🔰-22.6%
devStoryVisibleUncached 2s 1.9s -100ms -0.43 -5.3%
devStoryVisible 702ms 571ms -131ms -1.42 🔰-22.9%
devAutodocsVisible 579ms 521ms -58ms -0.42 -11.1%
devMDXVisible 586ms 488ms -98ms -0.88 -20.1%
buildManagerHeaderVisible 590ms 591ms 1ms -0.24 0.2%
buildManagerIndexVisible 688ms 671ms -17ms -0.36 -2.5%
buildStoryVisible 580ms 566ms -14ms -0.29 -2.5%
buildAutodocsVisible 450ms 439ms -11ms -0.84 -2.5%
buildMDXVisible 435ms 414ms -21ms -1.05 -5.1%

Copy link

nx-cloud bot commented Jan 7, 2025

View your CI Pipeline Execution ↗ for commit f6975ff.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 38s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-10 15:54:46 UTC

@storybook-pr-benchmarking
Copy link

storybook-pr-benchmarking bot commented Jan 7, 2025

Package Benchmarks

Commit: f6975ff, ran on 10 January 2025 at 15:59:49 UTC

The following packages have significant changes to their size or dependencies:

@storybook/experimental-addon-test

Before After Difference
Dependency count 60 60 0
Self size 761 KB 775 KB 🚨 +14 KB 🚨
Dependency size 14.15 MB 14.15 MB 🚨 +78 B 🚨
Bundle Size Analyzer Link Link

@storybook/core

Before After Difference
Dependency count 53 54 🚨 +1 🚨
Self size 19.08 MB 19.60 MB 🚨 +524 KB 🚨
Dependency size 14.43 MB 14.72 MB 🚨 +290 KB 🚨
Bundle Size Analyzer Link Link

storybook

Before After Difference
Dependency count 54 55 🚨 +1 🚨
Self size 22 KB 24 KB 🚨 +2 KB 🚨
Dependency size 33.51 MB 34.33 MB 🚨 +814 KB 🚨
Bundle Size Analyzer Link Link

sb

Before After Difference
Dependency count 55 56 🚨 +1 🚨
Self size 1 KB 1 KB 0 B
Dependency size 33.53 MB 34.35 MB 🚨 +816 KB 🚨
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 396 397 🚨 +1 🚨
Self size 496 KB 245 KB 🎉 -252 KB 🎉
Dependency size 75.42 MB 76.69 MB 🚨 +1.27 MB 🚨
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 276 277 🚨 +1 🚨
Self size 612 KB 612 KB 0 B
Dependency size 65.32 MB 66.13 MB 🚨 +814 KB 🚨
Bundle Size Analyzer Link Link

create-storybook

Before After Difference
Dependency count 112 113 🚨 +1 🚨
Self size 1.11 MB 1.56 MB 🚨 +454 KB 🚨
Dependency size 42.64 MB 43.46 MB 🚨 +816 KB 🚨
Bundle Size Analyzer Link Link

@ndelangen ndelangen self-assigned this Jan 8, 2025
…oud.nx.app/runs/8cMBd7ZBlt/task/core%3Abuild

Which might be cache, but it keeps failing in GitHub actions, whilst locally and in CIrcleCI it works consistently.
I don't know how to reproduce this problem, so I'll just resort to a yarn patch then, even though it should not be needed.
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.

2 participants