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

chore: update core and API #556

Merged
merged 2 commits into from Jul 1, 2021

Conversation

dyladan
Copy link
Member

@dyladan dyladan commented Jun 30, 2021

No description provided.

@dyladan dyladan requested a review from a team as a code owner June 30, 2021 21:09
@dyladan dyladan added dependencies Pull requests that update a dependency file enhancement New feature or request labels Jun 30, 2021
Copy link
Member

@Flarna Flarna left a comment

Choose a reason for hiding this comment

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

a bot would be useful for such updates

@codecov
Copy link

codecov bot commented Jun 30, 2021

Codecov Report

Merging #556 (52d55ab) into main (b9e00e7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #556   +/-   ##
=======================================
  Coverage   94.75%   94.75%           
=======================================
  Files         169      169           
  Lines       10699    10699           
  Branches     1066     1066           
=======================================
  Hits        10138    10138           
  Misses        561      561           

@dyladan
Copy link
Member Author

dyladan commented Jun 30, 2021

a bot would be useful for such updates

I was thinking the same thing. These PRs are quite a lot of work now that the version numbers between core and contrib match. Simple find and replace schemes are very difficult now.

@vmarchaud
Copy link
Member

I opened an issue at the time to try to automate this #457

@dyladan dyladan merged commit 0d86e42 into open-telemetry:main Jul 1, 2021
@dyladan dyladan deleted the update-core-api branch July 1, 2021 18:54
@obecny
Copy link
Member

obecny commented Jul 2, 2021

@dyladan Please don't merge such PR in future until the version from core 0.23 is released. I wanted to release patch for version 0.22 with fixed esm build and it is not possible now as the main branch already points to unreleased version of core 0.23.

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

0.23 is released it is just under the @next tag until the 0.23.0 contrib release

image

@obecny
Copy link
Member

obecny commented Jul 2, 2021

0.23 is released

https://github.com/open-telemetry/opentelemetry-js it is still showing the latest to be 0.22, on screenshot you posted 0.22 is also marked as latest, shouldn't the 0.23 be latest ?

@obecny
Copy link
Member

obecny commented Jul 2, 2021

npm install @opentelemetry/core --save-dev and it will install 0.22

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

If we make 0.23.0 latest then if a user does npm i @opentelemetry/node they will get 0.23.0 which is incompatible with the latest contrib. The last few releases were done this way. You can get 0.23 if you specifically ask for it like npm i @opentelemetry/node@0.23.0 or npm i @opentelemetry/node@next. The core release latest tag is always compatible with the contrib release latest tag. When contrib is released, the next tag is changed to latest.

npm install @opentelemetry/core --save-dev and it will install 0.22

Yes, that's on purpose

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

If we apply the latest tag to core 0.23 and user does npm install @opentelemetry/node @opentelemetry/instrumenation-mysql they will get incompatible versions. With the current scheme it still works.

@obecny
Copy link
Member

obecny commented Jul 2, 2021

ok got it, thx

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

We've done this for the last few releases. Users get confused if they install latest everything then get errors that versions aren't compatible.

@obecny
Copy link
Member

obecny commented Jul 2, 2021

any reason of not releasing the version contrib 0.23 yet ?

@obecny
Copy link
Member

obecny commented Jul 2, 2021

If we make 0.23.0 latest then if a user does npm i @opentelemetry/node they will get 0.23.0 which is incompatible with the latest contrib. The last few releases were done this way. You can get 0.23 if you specifically ask for it like npm i @opentelemetry/node@0.23.0 or npm i @opentelemetry/node@next. The core release latest tag is always compatible with the contrib release latest tag. When contrib is released, the next tag is changed to latest.

npm install @opentelemetry/core --save-dev and it will install 0.22

Yes, that's on purpose

what about https://github.com/open-telemetry/opentelemetry-js/releases, shouldn't the release 0.23 be visible here too ?

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

oops yes i'll fix it

@dyladan
Copy link
Member Author

dyladan commented Jul 2, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants