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

fix: remove duplicate export star from version.ts #4225

Merged

Conversation

david-luna
Copy link
Contributor

Which problem is this PR solving?

Exporting twice from the same file causes issues in bundlers like webpack.

Fixes #4217

Short description of the changes

Remove duplicated export from version.ts file

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

N/A

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@david-luna david-luna requested a review from a team October 25, 2023 17:08
@dyladan
Copy link
Member

dyladan commented Oct 25, 2023

Please add a changelog entry

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #4225 (3524b8e) into main (586def4) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head 3524b8e differs from pull request most recent head 2862cd3. Consider uploading reports for the commit 2862cd3 to get more accurate results

@@           Coverage Diff           @@
##             main    #4225   +/-   ##
=======================================
  Coverage   92.24%   92.24%           
=======================================
  Files         331      331           
  Lines        9481     9481           
  Branches     1999     1999           
=======================================
  Hits         8746     8746           
  Misses        735      735           

@dyladan
Copy link
Member

dyladan commented Oct 25, 2023

Seems like something might be wrong with CI. it should have finished by now

@david-luna
Copy link
Contributor Author

Last workflow run failed for node-tests 14 and up with the message

Error: The operation was canceled.

Maybe related to Daniel's comment? Could we re-trigger the workflow?

@dyladan
Copy link
Member

dyladan commented Oct 26, 2023

Looks like someone did re-trigger but it is not any better

@david-luna
Copy link
Contributor Author

Still no luck with the tests. They fail with the cancel message :(

I've tried to run same scripts to see if I can reproduce but no error

npm install --ignore-scripts
npx lerna bootstrap --no-ci --hoist --nohoist='zone.js' --ignore @opentelemetry/selenium-tests
npm run compile
npm run test

@Flarna
Copy link
Member

Flarna commented Nov 2, 2023

all green. I guess some maintainer will merge soon.

@pichlermarc pichlermarc merged commit cd232cd into open-telemetry:main Nov 6, 2023
16 checks passed
dyladan added a commit that referenced this pull request Nov 15, 2023
* chore: track package-lock.json (#4238)

* chore: track package-lock.json

* Pin to old versions for node 14

* Use version range

* Remove unused cached directories

* Temporarily disable other tests

* Temporarily enable only api test

* Enable only some packages

* Test only api packages

* Test trace exporters

* Fix line ordering

* Test all packages except otlp exporters

* Add trace http exporter

* Add trace proto exporter

* Test all but grpc exporters

* chore: use npm workspaces and degrade lerna to v6

* chore: get rid of lerna bootstrap

* chore: use npx

* chore: allow install scripts to setup buf

* chore: fix w3c-integration-test cache key

* chore: fix cache key

* chore: disable resource compat test

* chore: fix node_modules assumptions

* chore: fix hoisted karma issue

* chore: fix markdown linter complaints

* chore: lock @grpc/grpc-js to v1.8.21

* Break caches

* chore: remove cache

* chore: fixup inline commands

---------

Co-authored-by: Daniel Dyla <[email protected]>

* docs: fixed link to benchmark results (#4233)

Co-authored-by: Chengzhong Wu <[email protected]>

* chore(deps): update all patch versions (#4215)

* fix: otlp json encoding (#4220)

Co-authored-by: Marc Pichler <[email protected]>

* fix: remove duplicate export star from version.ts (#4225)

Co-authored-by: Marc Pichler <[email protected]>

* docs: fix sdk-node config instructions (#4249)

Co-authored-by: Marc Pichler <[email protected]>

* feat(api): publish api esnext target (#4231)

* chore: release API 1.7.0/Core 1.18.0/Experimental 0.45.0 (#4254)

* fix(sdk-metrics): hand-roll MetricAdvice type as older API versions do not include it (#4260)

* chore: prepare release 1.18.1/0.45.1 (#4261)

* chore: no need for 'packages' in "lerna.json" (#4264)

* Benchmark tests for trace OTLP transform and BatchSpanProcessor (#4218)

Co-authored-by: Marc Pichler <[email protected]>

* chore: type reference on zone.js (#4257)

Co-authored-by: Marc Pichler <[email protected]>

* docs: add docker-compose to run prometheus for the experimental example (#4268)

Co-authored-by: Marc Pichler <[email protected]>

* fix(sdk-logs): avoid map attribute set when count limit exceeded (#4195)

Co-authored-by: Marc Pichler <[email protected]>

* chore(deps): update dependency chromedriver to v119 [security] (#4280)

* chore(deps): update actions/setup-node action to v4 (#4236)

* fix(sdk-trace-base): processor onStart called with a span having empty attributes (#4277)

Co-authored-by: artahmetaj <[email protected]>

* Update fetch instrumentation to be runtime agnostic (#4063)

Co-authored-by: Marc Pichler <[email protected]>

---------

Co-authored-by: Chengzhong Wu <[email protected]>
Co-authored-by: Martin Kuba <[email protected]>
Co-authored-by: Mend Renovate <[email protected]>
Co-authored-by: Siim Kallas <[email protected]>
Co-authored-by: Marc Pichler <[email protected]>
Co-authored-by: David Luna <[email protected]>
Co-authored-by: Dinko Osrecki <[email protected]>
Co-authored-by: Trent Mick <[email protected]>
Co-authored-by: François <[email protected]>
Co-authored-by: Hyun Oh <[email protected]>
Co-authored-by: André Cruz <[email protected]>
Co-authored-by: artahmetaj <[email protected]>
Co-authored-by: drewcorlin1 <[email protected]>
@david-luna david-luna deleted the dluna/4217-re-export-version-fix branch December 27, 2023 16:05
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.

Re-exported version variable causes an issue in production build
6 participants