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: add script to update '@opentelemetry/*' deps in this repo #1992

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

trentm
Copy link
Contributor

@trentm trentm commented Mar 5, 2024

Refs: #1917


This is a replacement for my earlier PR #1974 where I had mistakenly created a PR from the main branch of my fork. This corrects that to use a feature branch. Sorry for that shuffle.

@trentm trentm requested a review from a team March 5, 2024 19:52
@trentm trentm self-assigned this Mar 5, 2024
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

Merging #1992 (7d5dfe1) into main (dfb2dff) will decrease coverage by 0.10%.
Report is 11 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1992      +/-   ##
==========================================
- Coverage   90.97%   90.88%   -0.10%     
==========================================
  Files         146      143       -3     
  Lines        7492     7402      -90     
  Branches     1502     1480      -22     
==========================================
- Hits         6816     6727      -89     
+ Misses        676      675       -1     

see 4 files with indirect coverage changes

scripts/update-otel-deps.js Outdated Show resolved Hide resolved
scripts/update-otel-deps.js Outdated Show resolved Hide resolved
scripts/update-otel-deps.js Outdated Show resolved Hide resolved
scripts/update-otel-deps.js Outdated Show resolved Hide resolved
// (see "... requires running npm install twice ...") in some cases this
// 'npm install' doesn't actually install the new version, but do not
// error out!
// TODO: guard against this with 'npm ls' or package.json check?
Copy link
Member

Choose a reason for hiding this comment

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

I think that's a good idea. Though we'll likely not run into it anymore now that we've moved the pacakge that caused this to the incubator directory, we may have forgotten about it if happens again.

Can be done in a follow-up though. 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Though we'll likely not run into it anymore now that we've moved the pacakge that caused this to the incubator directory,

Unfortunately I think the weird case can still come up. David hit it recently in TAV tests with interplay between the 'mongodb' version being tested for TAV tests in instrumentation-mongodb and the pinned version of mongodb as a transitive dep of instrumentation-mongoose. See #2001 (comment)
Yuck.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you prefer to have an issue created that might languish? or just leave the TODO in-place?

Copy link
Member

Choose a reason for hiding this comment

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

Let's just leave the TODO in place. 👍

scripts/update-otel-deps.js Outdated Show resolved Hide resolved
@trentm
Copy link
Contributor Author

trentm commented Mar 14, 2024

Testing: I've run the script a couple times after the above updates and it still seems to work correctly.

@trentm trentm requested a review from pichlermarc March 14, 2024 02:45
Copy link
Member

@pichlermarc pichlermarc left a comment

Choose a reason for hiding this comment

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

Thanks again for working on this. 👍
This was immensely helpful during the last release. 🙂

@pichlermarc pichlermarc merged commit 8dac846 into open-telemetry:main Mar 14, 2024
15 checks passed
@trentm trentm deleted the tm-update-otel-deps-tool branch March 14, 2024 15:38
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