-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Telemetry: Fix storybook version and add test run events #31473
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6130717
Add `test-run` telemetry for vitest
tmeasday 8ff81c4
Add BUILD_ENV_FOR_TESTING and use to trigger telemetry when building …
tmeasday 9e1bfcb
Refactor `BUILD_ENV_FOR_TESTING` to happen after we have presets etc
tmeasday 313fa63
Wait on both telemetry jobs in sync
tmeasday c0dbbbb
Refactor telemetry into `configureVitest`, check disabled
tmeasday 73d7dd7
Remove out of date comment
tmeasday 6d84231
Added chromatic to test packages list
tmeasday 225ca62
Remove addon version from addon-test event as it is redundant (it's i…
tmeasday 4e54284
Experiment with checking telemetry on test-runner/vitest jobs
tmeasday 7f04ced
Change env var to `STORYBOOK_INVOKED_BY`
tmeasday 37689d5
Add an expectation on `run-tests`
tmeasday d3d0ece
Try adding telemetry debug to vitest step
tmeasday fbd7e6c
Temporarily use test runner canary
tmeasday 4a34208
Set environment for steps
tmeasday b65dcb9
Whoops added env to wrong command
tmeasday d4ef750
Allow no boot event for some types
tmeasday 1cf0366
Send extra options to telemetry
tmeasday 4e9e9b5
Add debug logs to build step
tmeasday 7a6530a
Fix event name
tmeasday 25e7319
Fixes
tmeasday d4bac18
Simplify call to telemetry slightly
tmeasday 3213d04
Send `test-run` event immediately on "invoked" builds.
tmeasday 87b1893
Update code/core/src/core-server/build-static.ts
tmeasday 3d3bc0e
Update scripts/event-log-checker.ts
tmeasday c2d246c
Only send `test-run` event if invoked by a 3rd party
tmeasday 8923e8c
Merge branch 'next' into tom/add-test-run-telemetry
shilman bcccd74
Merge branch 'next' into tom/add-test-run-telemetry
shilman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -599,7 +599,8 @@ export async function addExtraDependencies({ | |
| debug: boolean; | ||
| extraDeps?: string[]; | ||
| }) { | ||
| const extraDevDeps = ['@storybook/test-runner@next']; | ||
| // FIXME: revert back to `next` once https://github.com/storybookjs/test-runner/pull/560 is merged | ||
| const extraDevDeps = ['@storybook/[email protected]']; | ||
|
|
||
| if (debug) { | ||
| logger.log('\uD83C\uDF81 Adding extra dev deps', extraDevDeps); | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.