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

test(e2e): Update node version used for e2e tests #12031

Merged
merged 7 commits into from
May 15, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented May 14, 2024

Extracted this out from #12020

For whatever reason, this does not seemed to play well with how we run the proxy server via ts-node. Looking into this more, this is actually not really necessary at all, so I just stripped this out in favor of just running the proxy as a .mjs file directly - works just as well!

@mydea mydea self-assigned this May 14, 2024
@mydea
Copy link
Member Author

mydea commented May 14, 2024

I did some more digging:

For whatever reason, when I bump node from 18.18.2 to 18.19.0, some of the test apps start to fail with this:

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /Users/francesco/git/sentry-javascript/dev-packages/e2e-tests/test-applications/vue-3/start-event-proxy.ts
    at new NodeError (node:internal/errors:405:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:136:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:182:36)
    at defaultLoad (node:internal/modules/esm/load:101:20)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at load (/Users/francesco/git/sentry-javascript/dev-packages/e2e-tests/test-applications/vue-3/node_modules/.pnpm/ts-node@10.9.1_@types+node@20.12.12_typescript@5.3.3/node_modules/ts-node/dist/child/child-loader.js:19:122)
    at nextLoad (node:internal/modules/esm/hooks:864:28)
    at Hooks.load (node:internal/modules/esm/hooks:447:26)
    at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20) {
  code: 'ERR_UNKNOWN_FILE_EXTENSION'
}

😬

Copy link
Contributor

github-actions bot commented May 14, 2024

size-limit report 📦

Path Size
@sentry/browser 21.67 KB (0%)
@sentry/browser (incl. Tracing) 32.8 KB (0%)
@sentry/browser (incl. Tracing, Replay) 68.14 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.5 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.19 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.2 KB (0%)
@sentry/browser (incl. Feedback) 37.6 KB (0%)
@sentry/browser (incl. sendFeedback) 26.23 KB (0%)
@sentry/browser (incl. FeedbackAsync) 30.6 KB (0%)
@sentry/react 24.36 KB (0%)
@sentry/react (incl. Tracing) 35.77 KB (0%)
@sentry/vue 25.5 KB (0%)
@sentry/vue (incl. Tracing) 34.59 KB (0%)
@sentry/svelte 21.8 KB (0%)
CDN Bundle 24.21 KB (0%)
CDN Bundle (incl. Tracing) 34.17 KB (0%)
CDN Bundle (incl. Tracing, Replay) 67.87 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 72.83 KB (0%)
CDN Bundle - uncompressed 71.21 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 101.36 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.98 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 223.28 KB (0%)
@sentry/nextjs (client) 35 KB (0%)
@sentry/sveltekit (client) 33.37 KB (0%)
@sentry/node 140.99 KB (0%)
@sentry/aws-serverless 128.03 KB (+0.01% 🔺)

@mydea mydea marked this pull request as ready for review May 15, 2024 09:21
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Lol, I also just used CJS in sveltekit2+svelte5 app because ts-node didn't play nicely with the app's tsconfig and couldn't solve it quickly. Totally fine to do this generally from my PoV 👍

@mydea mydea merged commit 13b1897 into develop May 15, 2024
67 checks passed
@mydea mydea deleted the fn/bump-e2e-node branch May 15, 2024 11:35
andreiborza pushed a commit that referenced this pull request May 16, 2024
Extracted this out from
#12020

For whatever reason, this does not seemed to play well with how we run
the proxy server via ts-node. Looking into this more, this is actually
not really necessary at all, so I just stripped this out in favor of
just running the proxy as a `.mjs` file directly - works just as well!
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.

None yet

2 participants