Skip to content

fix(bundler-plugin-tests): Normalize prerelease versions in telemetry snapshots - #23158

Merged
nicohrubec merged 1 commit into
developfrom
fix/bundler-plugin-telemetry-prerelease-version
Aug 7, 2026
Merged

fix(bundler-plugin-tests): Normalize prerelease versions in telemetry snapshots#23158
nicohrubec merged 1 commit into
developfrom
fix/bundler-plugin-telemetry-prerelease-version

Conversation

@nicohrubec

Copy link
Copy Markdown
Member

The 8 telemetry.test.ts bundler fixtures failed on the release/11.0.0-alpha.0 branch because the version normalizer in fixtures/utils.ts only matched plain X.Y.Z semver.

The release and version normalization regexes used the character class [\d.]+, which stops at the first non-digit/non-dot character. On a prerelease version like 11.0.0-alpha.0, the -alpha.0 suffix is left unmatched, so the literal version leaked into the telemetry payload instead of being replaced with the PLUGIN_VERSION / SDK_VERSION placeholders the inline snapshots expect — mismatching all 8 fixtures.

This never surfaced on regular PRs because develop always carries a plain semver; it only triggers on a release branch, and would break the check on every alpha/beta/rc.

Both regexes now accept an optional prerelease suffix ((?:-[\w.]+)?). The committed inline snapshots already contain the placeholders, so no snapshots need regenerating.

Root cause: version normalization regex did not account for prerelease identifiers.

… snapshots

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.33 kB - -
@sentry/browser - with treeshaking flags 28.54 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.86 kB - -
@sentry/browser (incl. Tracing) 49.08 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 49.1 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.88 kB - -
@sentry/browser (incl. Tracing, Replay) 88.43 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.83 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 93.12 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.81 kB - -
@sentry/browser (incl. Feedback) 47.67 kB - -
@sentry/browser (incl. sendFeedback) 35.16 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.4 kB - -
@sentry/browser (incl. Logs) 31.65 kB - -
@sentry/browser (incl. Metrics & Logs) 32.31 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 51.27 kB - -
@sentry/vue 35.44 kB - -
@sentry/vue (incl. Tracing) 51.05 kB - -
@sentry/svelte 30.36 kB - -
CDN Bundle 32.34 kB - -
CDN Bundle (incl. Tracing) 49.66 kB - -
CDN Bundle (incl. Logs, Metrics) 33.87 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.97 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.4 kB - -
CDN Bundle (incl. Tracing, Replay) 87.19 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 93.07 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.33 kB - -
CDN Bundle - uncompressed 95.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 148.98 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.47 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.96 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.39 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.24 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.94 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.89 kB - -
@sentry/nextjs (client) 53.83 kB - -
@sentry/sveltekit (client) 49.47 kB - -
@sentry/core/server 65.77 kB - -
@sentry/core/browser 52 kB - -
@sentry/node 119.43 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.42 kB - -
@sentry/aws-serverless 92.74 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 214.89 kB - -
@sentry/cloudflare (withSentry) 530.77 kB - -

View base workflow run

@nicohrubec
nicohrubec marked this pull request as ready for review August 7, 2026 15:54
@nicohrubec
nicohrubec merged commit d403bc1 into develop Aug 7, 2026
46 of 47 checks passed
@nicohrubec
nicohrubec deleted the fix/bundler-plugin-telemetry-prerelease-version branch August 7, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants