Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6130717
Add `test-run` telemetry for vitest
tmeasday May 14, 2025
8ff81c4
Add BUILD_ENV_FOR_TESTING and use to trigger telemetry when building …
tmeasday May 14, 2025
9e1bfcb
Refactor `BUILD_ENV_FOR_TESTING` to happen after we have presets etc
tmeasday May 15, 2025
313fa63
Wait on both telemetry jobs in sync
tmeasday May 15, 2025
c0dbbbb
Refactor telemetry into `configureVitest`, check disabled
tmeasday May 15, 2025
73d7dd7
Remove out of date comment
tmeasday May 15, 2025
6d84231
Added chromatic to test packages list
tmeasday May 16, 2025
225ca62
Remove addon version from addon-test event as it is redundant (it's i…
tmeasday May 16, 2025
4e54284
Experiment with checking telemetry on test-runner/vitest jobs
tmeasday May 16, 2025
7f04ced
Change env var to `STORYBOOK_INVOKED_BY`
tmeasday May 19, 2025
37689d5
Add an expectation on `run-tests`
tmeasday May 19, 2025
d3d0ece
Try adding telemetry debug to vitest step
tmeasday May 19, 2025
fbd7e6c
Temporarily use test runner canary
tmeasday May 19, 2025
4a34208
Set environment for steps
tmeasday May 19, 2025
b65dcb9
Whoops added env to wrong command
tmeasday May 19, 2025
d4ef750
Allow no boot event for some types
tmeasday May 19, 2025
1cf0366
Send extra options to telemetry
tmeasday May 19, 2025
4e9e9b5
Add debug logs to build step
tmeasday May 19, 2025
7a6530a
Fix event name
tmeasday May 19, 2025
25e7319
Fixes
tmeasday May 19, 2025
d4bac18
Simplify call to telemetry slightly
tmeasday May 22, 2025
3213d04
Send `test-run` event immediately on "invoked" builds.
tmeasday May 27, 2025
87b1893
Update code/core/src/core-server/build-static.ts
tmeasday May 28, 2025
3d3bc0e
Update scripts/event-log-checker.ts
tmeasday May 28, 2025
c2d246c
Only send `test-run` event if invoked by a 3rd party
tmeasday May 28, 2025
8923e8c
Merge branch 'next' into tom/add-test-run-telemetry
shilman May 29, 2025
bcccd74
Merge branch 'next' into tom/add-test-run-telemetry
shilman May 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Send extra options to telemetry
  • Loading branch information
tmeasday committed May 28, 2025
commit 1cf0366ae362e07c1c97f9955c108cef6b88617e
19 changes: 14 additions & 5 deletions code/addons/vitest/src/vitest-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,20 @@ export const storybookTest = async (options?: UserOptions): Promise<Plugin[]> =>
process.env.STORYBOOK_DISABLE_TELEMETRY !== 'false'
)
) {
telemetry('test-run', {
runner: 'vitest',
watch: context.vitest.config.watch,
coverage: !!context.vitest.config.coverage?.enabled,
});
// NOTE: we start telemetry immediately but do not wait on it. Typically it should complete
// before the tests do. If not we may miss the event, we are OK with that.
telemetry(
'test-run',
{
runner: 'vitest',
watch: context.vitest.config.watch,
coverage: !!context.vitest.config.coverage?.enabled,
},
{
configDir: finalOptions.configDir,
enableCrashReports: core.enableCrashReports,
}
);
}
},
async configureServer(server) {
Expand Down