-
Notifications
You must be signed in to change notification settings - Fork 544
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: fix issue with nyc crashing #1605
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1605 +/- ##
==========================================
- Coverage 96.06% 91.77% -4.29%
==========================================
Files 14 137 +123
Lines 914 7065 +6151
Branches 199 1424 +1225
==========================================
+ Hits 878 6484 +5606
- Misses 36 581 +545 |
With codecov is report correctly for unit test, we miss a bunch of coverage on winston, mongodb as those package include instrumentation code for multiple version. We can:
|
@haddasbronfman @dyladan I can confirm We can use |
Thanks for handling that and great that you found the issue!! :) I would pin @babel/core version, rather than using But I'll wait to see what @dyladan thinks. |
Thanks for taking care of this! 🙂 This has been bugging us for quite a while. Glad to see a fix for it. 🚀
Ideally, we'd collect coverage for tav. However, tav only runs on PRs which have the package label applied, and then only for the package that the label is applied for. I think codecov would always complain that now coverage is lost when we only run it on main and not PRs. Doing a full run on PRs is quite time-consuming, unfortunately :/
Hmm, do you mean having the new version of the instrumented packages installed as devDependency, and specifically ignoring the instrumentation code intended for older versions? That could be an option. 🤔
Interesting, I've looked into that problem a while ago, but never found a solution. I think I'd prefer we update the pinned version to something newer. 🙂 |
Sounds good to me as well |
Seem like there is another version mismatch issue with instrumentation-aws-sdk's typescript version is 4.3 but @types/[email protected] expect to be use with typescript 4.4 as they using Symbol and Template String Pattern Index Signatures I'm just bit confused why tsc think they need to load |
@pichlermarc I mean using using
to skip the whole block of code |
I split this into this PR in case we want to merge this first. |
plugins/node/opentelemetry-instrumentation-aws-sdk/package.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- using lerna bootstrap --nohoist to force no package hoisting.
Is this still relevant? I see you ended up bumping the version instead of using nohoist.
update pipeline to exlicit collect code coverage report for node@14 test
Just to verify I understand correctly - this is not a behavioral change, right? It was and still running code coverage step only for node 14
No, I update the PR's description to reflect this. The old version is indead use -noHoist as I unable to scope down which package causing the problem.
Yes, also update PR's description to refelect this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
@@ -33,7 +33,7 @@ | |||
"@opentelemetry/api": "^1.3.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/core": "7.15.0", | |||
"@babel/core": "7.22.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems there is already a new version 7.22.10.
You can optionally bump the version to latest, or we can merge as is and let renovate take care of this
@chigia001 it is so great you do the research to make codecov stable and correct. Thank you so much for that 🙏 After merging the PR, I checked #1627 and see there are still failures on code-coverage: Wonder if this can be any help, and if you are aware of more steps we need to take to stabilize the workflow? |
@blumamir I double check 2 latest commit on main and seem like there are still some issue as codecov randomly unable to upload our code coverage file.
This can be fix by adding token key to codecov-action, due to some quota limiting. But this will require change to repo's settings + admin access to codecov's dashboard to get the token => both thing that I'm unable to access, so I can't help on this 😞.
This comment from codecov-action's repo list out the pro/cons of expose this token value as public variable vs secret: PS: I already put this comment on #1473 PS2: Up-to-date offical response from codecov team: https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
As there is still some risk associate to this change, maintainer team should discuss about this. |
Thank you so much for the info. |
Which problem is this PR solving?
Fixes #1487
Fixes #1594
fixes #1473
Short description of the changes
@babel/core
=> we update the@babel/core
package--since origin/main
logic)