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

codecov v2 #2311

Merged
merged 5 commits into from
Nov 3, 2021
Merged

codecov v2 #2311

merged 5 commits into from
Nov 3, 2021

Conversation

pjfanning
Copy link
Contributor

Copy link
Contributor

@exoego exoego left a comment

Choose a reason for hiding this comment

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

Thanks!

@exoego
Copy link
Contributor

exoego commented Oct 24, 2021

Since we do not pass any arguments to the codecov action, I assume we can migrate to v2 easily.

@fthomas
Copy link
Member

fthomas commented Oct 25, 2021

Looks like the Codecov step failed:

[2021-10-24T21:34:16.242Z] ['info'] => Project root located at: /home/runner/work/scala-steward/scala-steward
[2021-10-24T21:34:16.244Z] ['info'] -> No token specified or token is empty
[2021-10-24T21:34:16.248Z] ['info'] Searching for coverage files...
[2021-10-24T21:34:16.601Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`

@pjfanning pjfanning marked this pull request as draft October 25, 2021 09:02
@pjfanning
Copy link
Contributor Author

@fthomas looks like the new uploader doesn't search as hard for coverage files and might need to be configured to look in the right dirs.

Previous runs of build had these logs:

==> Reading reports
    + ./modules/mill-plugin/.jvm/target/scala-2.12/scoverage-report/scoverage.xml bytes=61500
    + ./modules/mill-plugin/.jvm/target/scala-2.12/coverage-report/cobertura.xml bytes=22696
    + ./modules/sbt-plugin/.jvm/target/scala-2.12/sbt-1.0/scoverage-report/scoverage.xml bytes=57074
    + ./modules/sbt-plugin/.jvm/target/scala-2.12/sbt-1.0/coverage-report/cobertura.xml bytes=21377
    + ./modules/core/.jvm/target/scala-2.13/scoverage-report/scoverage.xml bytes=3038365
    + ./modules/core/.jvm/target/scala-2.13/coverage-report/cobertura.xml bytes=1094392

I'll try adding more params to see if fixes the issue

@fthomas fthomas marked this pull request as ready for review October 25, 2021 09:17
@fthomas
Copy link
Member

fthomas commented Oct 25, 2021

Sorry, I hit the "ready for review button" accidentally.

@pjfanning
Copy link
Contributor Author

I logged codecov/uploader#463 to see if the codecov team can help.

@codecov
Copy link

codecov bot commented Nov 3, 2021

Codecov Report

Merging #2311 (0e26153) into master (31fd96e) will increase coverage by 1.50%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2311      +/-   ##
==========================================
+ Coverage   78.17%   79.67%   +1.50%     
==========================================
  Files         136      137       +1     
  Lines        2318     2391      +73     
  Branches       62       60       -2     
==========================================
+ Hits         1812     1905      +93     
+ Misses        506      486      -20     
Impacted Files Coverage Δ
...la/org/scalasteward/core/application/Context.scala 71.87% <0.00%> (-5.72%) ⬇️
...rc/main/scala/org/scalasteward/core/util/uri.scala 100.00% <0.00%> (ø)
...main/scala/org/scalasteward/core/data/SemVer.scala 100.00% <0.00%> (ø)
...main/scala/org/scalasteward/core/vcs/VCSType.scala 100.00% <0.00%> (ø)
...ain/scala/org/scalasteward/core/util/package.scala 100.00% <0.00%> (ø)
...scala/org/scalasteward/core/scalafmt/package.scala 100.00% <0.00%> (ø)
...ala/org/scalasteward/core/nurture/NurtureAlg.scala 0.00% <0.00%> (ø)
...ala/org/scalasteward/core/vcs/bitbucket/json.scala 92.85% <0.00%> (ø)
...la/org/scalasteward/core/repocache/RepoCache.scala 100.00% <0.00%> (ø)
...g/scalasteward/core/application/SelfCheckAlg.scala 100.00% <0.00%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31fd96e...0e26153. Read the comment docs.

@fthomas
Copy link
Member

fthomas commented Nov 3, 2021

We got the Codecov report now. \o/ @pjfanning is with: root_dir: ./modules still required?

@pjfanning pjfanning marked this pull request as ready for review November 3, 2021 20:56
@pjfanning
Copy link
Contributor Author

@fthomas I removed the root-dir setting and codecov picks up the results nonetheless

@fthomas
Copy link
Member

fthomas commented Nov 3, 2021

Great, thank you @pjfanning!

@fthomas fthomas merged commit 83623b0 into scala-steward-org:master Nov 3, 2021
@fthomas fthomas added this to the 0.13.0 milestone Nov 3, 2021
@pjfanning pjfanning deleted the codecov-v2 branch November 3, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants