-
Notifications
You must be signed in to change notification settings - Fork 518
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(deps): update otel-core experimental to ^0.47.0 #1906
chore(deps): update otel-core experimental to ^0.47.0 #1906
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1906 +/- ##
==========================================
+ Coverage 91.51% 91.54% +0.02%
==========================================
Files 145 145
Lines 7427 7435 +8
Branches 1486 1487 +1
==========================================
+ Hits 6797 6806 +9
+ Misses 630 629 -1
|
@pichlermarc I see it is failing in koa ESM tests. Let me know if you'd like help debugging that ... assuming it isn't some package-lock shenanigan. The package-lock update here is updating a lot of other deps as well (e.g. aws-sdk deps, npmcli deps, etc.). I'm not sure if that was intentional. |
Yes I've had to re-generate the package-lock.json as @trentm if you have some time to look into that I'd appreciate it 🙂 I looked into it again briefly today (using the new iitm release 1.7.3) and it looks like the ESM check is failing: |
I'll take a look today or tomorrow. |
Thank you 🙏 I've done some more digging and it looks like iitm 1.7.2 is causing this issue. More specifically, anything after this commit does not work for the For
Then, on the Edit: this code is generated by iitm at the commit mentioned above. It's different in the most recent revision but I think the outcome is similar. Edit 2: adding code to define the symbols from the source object works - I'm now certain this is a IITM bug, I'll open an issue and link it here. Then we'll have to figure out how to move forward with this. I think we may have to downgrade to 1.7.1 in core, release there, then update here and the tests will pass. We'll miss out on the fix that makes it work on Node.js 18.19.0 though. Another option is to add a workaround to instrumentation-koa so that it does not need to rely on |
Opened the issue nodejs/import-in-the-middle#57 |
I applied some workarounds. Edit: this is likely related to the updated packages though. |
It'll now likely fail with the same TAV failure from main (instrumentation-aws-sdk), let's see. |
@pichlermarc Wow, nice job working through all this!
Interesting that this works for the ESM tests of pino, bunyan, and pg without needing changes. Those instrumentations are checking
Agreed. I was looking a bit yesterday, but I was looking at totally different things: nothing to do with Koa or IITM. Looking at the first commit (the one from renovatebot), I notice that the test failures were from mismatched deps from the core repo (e.g. having both versions 1.19.0 and 1.20.0 of I started working on a script to see if there was a better/easier way to update all the deps from the core repo without pain. |
I was trying to verify the other instrumentations that have ESM support (i.e. that are using
So I wonder if the other three will need work as well to work with IITM |
I think I have a procedure that will correctly update all the I think we could get this PR down to just: (a) the |
@pichlermarc FYI: I have a start at scripting this. I'm off tomorrow, so I'll continue on Monday. I did try to see if a dependabot update group would do a good job of this. Here is my dependabot group config (in a separated copy, not a clone, of the contrib-repo): https://github.com/trentm/tm-ojc-dependabot-play/blob/main/.github/dependabot.yml#L10-L13 Unfortunately dependabot just times out trying to do this group update. Here are the update attempt jobs (I'm not sure if this will be visible to all): https://github.com/trentm/tm-ojc-dependabot-play/network/updates/19077332/jobs
The troubleshooting docs for this timeout (https://docs.github.com/en/code-security/dependabot/working-with-dependabot/troubleshooting-dependabot-errors#dependabot-timed-out-during-its-update) unfortunately say:
:) So I think I'd lean towards scripting this. My guess is that we could still use dependabot for other version updates. My understanding is that it is the large group of deps that together make it timeout. |
Which problem is this PR solving?
package-lock.json
being only partially updated, causing 1.19.0 to be pulled in. This PR that by re-generatingpackage-lock.json
.@types/koa
to2.14.0
because it became incompatible with the newer one that's pulled in by another package.