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

ci: switch to codecov action #5011

Conversation

pichlermarc
Copy link
Member

@pichlermarc pichlermarc commented Sep 23, 2024

Which problem is this PR solving?

The codecov package is deprecated and has been intermittently (see here, and here) failing workflows. This PR switches to the action which is the supported way of doing things.

This also aligns the tooling more with the contrib repo, where we've been successfully using this action for quite a while now.

Copy link

codecov bot commented Sep 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.93%. Comparing base (f8ab559) to head (d95e18c).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5011      +/-   ##
==========================================
+ Coverage   93.39%   93.93%   +0.54%     
==========================================
  Files          46      310     +264     
  Lines         712     8135    +7423     
  Branches      120     1632    +1512     
==========================================
+ Hits          665     7642    +6977     
- Misses         47      493     +446     

see 266 files with indirect coverage changes

@pichlermarc pichlermarc marked this pull request as ready for review September 23, 2024 13:15
@pichlermarc pichlermarc requested a review from a team as a code owner September 23, 2024 13:15
@@ -29,9 +29,6 @@
"repository": "open-telemetry/opentelemetry-js",
"scripts": {
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
"codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",
Copy link
Member

Choose a reason for hiding this comment

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

Looks like the new codecov is able to search coverage files automatically (logs)

packages/opentelemetry-sdk-trace-web/package.json Outdated Show resolved Hide resolved
@@ -52,8 +52,9 @@ jobs:
fi
npm run test
- name: Report Coverage
run: npm run codecov
if: ${{ matrix.node_version == '14' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

so now we're collecting coverage for all node versions?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep 🙂
I figured that's better anyway as there we actually won't end up with supposedly-missing where we do different things for different Node.js versions.

Copy link
Member Author

Choose a reason for hiding this comment

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

Works better here than in contrib, where we sometimes don't run all the tests to save time.
Here we always run the full suite of tests on both PRs and main, so we won't have any inconsistencies by doing this 🙂

@pichlermarc pichlermarc added this pull request to the merge queue Sep 23, 2024
Merged via the queue into open-telemetry:main with commit 4ef7395 Sep 23, 2024
21 checks passed
@pichlermarc pichlermarc deleted the ci/switch-to-codecov-action branch September 23, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants