-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Build: Testing more e2e-dev instead of e2e build #32089
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
Open
yannbf
wants to merge
7
commits into
next
Choose a base branch
from
yann/increase-e2e-dev-coverage
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+73
−60
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View your CI Pipeline Execution ↗ for commit b516634
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 file reviewed, no comments
97ff2bc
to
5c30f3f
Compare
5c30f3f
to
3bfa1b2
Compare
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
Before | After | Difference | |
---|---|---|---|
Dependency count | 56 | 56 | 0 |
Self size | 41.35 MB | 41.37 MB | 🚨 +16 KB 🚨 |
Dependency size | 18.22 MB | 18.22 MB | 🚨 +2 B 🚨 |
Bundle Size Analyzer | Link | Link |
sb
Before | After | Difference | |
---|---|---|---|
Dependency count | 57 | 57 | 0 |
Self size | 1 KB | 1 KB | 🚨 +2 B 🚨 |
Dependency size | 59.57 MB | 59.59 MB | 🚨 +16 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/cli
Before | After | Difference | |
---|---|---|---|
Dependency count | 221 | 221 | 0 |
Self size | 585 KB | 585 KB | 🎉 -115 B 🎉 |
Dependency size | 103.98 MB | 103.99 MB | 🚨 +16 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/codemod
Before | After | Difference | |
---|---|---|---|
Dependency count | 190 | 190 | 0 |
Self size | 31 KB | 31 KB | 🚨 +2 B 🚨 |
Dependency size | 88.07 MB | 88.08 MB | 🚨 +16 KB 🚨 |
Bundle Size Analyzer | Link | Link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #31742
What I did
A long time ago we started to slowly skip or decide against using many e2e tests for Storybook dev. This PR attempts to revisit that decision.
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/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>
Greptile Summary
This PR makes a strategic change to the end-to-end testing strategy in Storybook by swapping the task names in the task map. The change effectively makes the development server the primary target for e2e tests while production builds become the secondary target. Specifically:
e2e-tests
now maps toe2e-dev
(previously mapped to production builds)e2e-tests-dev
now maps toe2e-production
(previously mapped to dev builds)This change is intended to increase test coverage of Storybook's development server environment, which is the primary way users interact with Storybook. The motivation comes from historical incidents where critical bugs in the dev server went undetected until release.
Confidence score: 4/5
scripts/get-template.ts
: Verify that dependent CI workflows and documentation are updated to reflect the new task namingscripts/tasks/e2e-tests-build.ts
andscripts/tasks/e2e-tests-dev.ts
: Ensure these files' implementations align with the new task mapping