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

Telemetry: Add test packages #27226

Merged
merged 1 commit into from
May 22, 2024
Merged

Telemetry: Add test packages #27226

merged 1 commit into from
May 22, 2024

Conversation

shilman
Copy link
Member

@shilman shilman commented May 22, 2024

Closes N/A

What I did

Track which testing packages Storybook is being used with, so that we can help prioritize integrations.

  • Add a handful of common packages
  • Update telemetry disclosure

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

In a sandbox:

STORYBOOK_TELEMETRY_DEBUG=1 yarn storybook

🦋 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>

@shilman shilman added maintenance User-facing maintenance tasks patch:yes Bugfix & documentation PR that need to be picked to main branch telemetry labels May 22, 2024
@shilman shilman force-pushed the shilman/test-package-telemetry branch from 3289fec to 59631c9 Compare May 22, 2024 10:56
Copy link

nx-cloud bot commented May 22, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6fe4e7f. 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 2 targets

Sent with 💌 from NxCloud.

@shilman shilman force-pushed the shilman/test-package-telemetry branch 2 times, most recently from 16bea95 to dbac3f7 Compare May 22, 2024 11:04
);
metadata.testPackages = Object.fromEntries(
await Promise.all(
testPackageDeps.map(async (dep) => [dep, (await getActualPackageVersion(dep))?.version])
Copy link
Member

Choose a reason for hiding this comment

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

You might want to filter the packages out like anything that includes plugin, preset or addon. Else you might get a bunch of noise

Copy link
Member

@yannbf yannbf left a comment

Choose a reason for hiding this comment

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

LGTM, apart from the filtering part I mentioned. Also keep in mind that allDependencies includes what is retrieved from package.json so it will only work well for normal repos and not monorepos

@shilman shilman force-pushed the shilman/test-package-telemetry branch from dbac3f7 to 6fe4e7f Compare May 22, 2024 11:56
@shilman shilman merged commit e812f77 into next May 22, 2024
65 of 67 checks passed
@shilman shilman deleted the shilman/test-package-telemetry branch May 22, 2024 15:57
storybook-bot pushed a commit that referenced this pull request May 22, 2024
…etry

Telemetry: Add test packages
(cherry picked from commit e812f77)
storybook-bot pushed a commit that referenced this pull request May 23, 2024
…etry

Telemetry: Add test packages
(cherry picked from commit e812f77)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:normal maintenance User-facing maintenance tasks patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants