Skip to content

fix(wasm): Ensure wasm bundle exists before running wasm tests #4916

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 1 commit into from
Apr 12, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Apr 12, 2022

The @sentry/wasm test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.07 KB (-0.36% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 64.25 KB (-0.56% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.78 KB (-0.43% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 57.64 KB (-0.57% 🔽)
@sentry/browser - Webpack (gzipped + minified) 23.04 KB (-0.87% 🔽)
@sentry/browser - Webpack (minified) 80.83 KB (-1.09% 🔽)
@sentry/react - Webpack (gzipped + minified) 23.08 KB (-0.86% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.87 KB (-0.4% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.01 KB (-0.25% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.42 KB (-0.24% 🔽)

@lobsterkatie lobsterkatie merged commit 0f10358 into 7.x Apr 12, 2022
@lobsterkatie lobsterkatie deleted the kmclb-ensure-wasm-bundle-exists-for-tests branch April 12, 2022 13:44
lobsterkatie added a commit that referenced this pull request Apr 13, 2022
The `@sentry/wasm` test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.
Lms24 pushed a commit that referenced this pull request Apr 26, 2022
The `@sentry/wasm` test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
The `@sentry/wasm` test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.
lobsterkatie added a commit that referenced this pull request Apr 26, 2022
The `@sentry/wasm` test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.
AbhiPrasad pushed a commit that referenced this pull request May 30, 2022
The `@sentry/wasm` test suite requires both the browser bundle and the wasm bundle. Currently, before running the tests, we check to make sure the browser bundle exists, and build it if it's missing. We don't do the same for the wasm bundle, however. This fixes that, so that both bundles are guaranteed to exist before we try to run tests.
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