-
Notifications
You must be signed in to change notification settings - Fork 812
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
add bundler tests #4744
Comments
I think this should live in https://github.com/open-telemetry/opentelemetry-js/tree/main/integration-tests. When testing bundling, I think it's also important to fully validate export conditions and built assets. In the Sentry repo we've had a lot of success with using Verdaccio to simulate a fake NPM registry, and then running an e2e test that downloads packages from the fake registry. Testing bundling on the fully built assets that show up in NPM (relying on package.json export conditions) is more robust in my eyes. |
Agree. I think this can be a separate issue and something we should document in
I think this would provide a lot of benefit. I often struggle with that as I don't use them in my daily life. It's often assumed that the bundler use is trivial but there's often many options for a bundler + typescript configs that can vary a lot and lead to different outcomes. Having a base that we can use to narrow stuff down and for people to provide reproducers would be extremely helpful.
+1 for putting it into
Yes, I agree. This would be a nice-to-have. We've had numerous problems in the past as some package was |
sweet - I'll take a look at this end of my week (thurs/friday) and open a POC PR to gather thoughts. if anyone else wants to experiment before then though please feel free! You can ping me on slack if you have questions about this stuff, I consider myself slightly experienced with bundling 😄 |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
@AbhiPrasad Did you ever get a chance to start looking into bundler tests? No worries if not. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. |
Issues come up frequently that are related to bundler usage -- at least with the node-related packages from this and the contrib repo. I think it would be helpful to have tests using recent versions of some bundlers (say: webpack, rollup, esbuild).
These tests would:
I'm not sure exactly where these tests would live. Perhaps in
@opentelemetry/instrumentation
? Perhaps insdk-node
?The text was updated successfully, but these errors were encountered: