Skip to content

Codecov v5 #3312

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

Merged
merged 5 commits into from
Aug 7, 2025
Merged

Codecov v5 #3312

merged 5 commits into from
Aug 7, 2025

Conversation

A5rocks
Copy link
Contributor

@A5rocks A5rocks commented Aug 5, 2025

Closes #3285
Closes #3161

This is just #3161 with fixes applied on top that should make codecov happy. I also went ahead and did what the comment said to do (enable fail_ci_if_error) even if I don't think we should. If it's flakey we can disable it later.

webknjaz and others added 4 commits January 27, 2025 18:31
It's more stable and requires a token that is already in the config.

Alpine needs curl, gpg, git and jq because of a bug in codecov-action [[1]].

[1]: codecov/codecov-action#1320
Copy link

codecov bot commented Aug 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00000%. Comparing base (921d363) to head (b8f8339).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@               Coverage Diff               @@
##                 main        #3312   +/-   ##
===============================================
  Coverage   100.00000%   100.00000%           
===============================================
  Files             125          125           
  Lines           19253        19253           
  Branches         1304         1304           
===============================================
  Hits            19253        19253           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jakkdl
Copy link
Member

jakkdl commented Aug 5, 2025

2025-08-05T12:43:40,024167528+02:00

The flag errors we don't care about, but the upload error is maybe something to look at?

@jakkdl jakkdl requested a review from webknjaz August 5, 2025 10:46
@A5rocks
Copy link
Contributor Author

A5rocks commented Aug 5, 2025

I think the upload error is because the first time (and second time) around the pypy 3.10 on Windows failed.

But not sure!

@jakkdl
Copy link
Member

jakkdl commented Aug 5, 2025

I think the upload error is because the first time (and second time) around the pypy 3.10 on Windows failed.

But not sure!

oh, that sounds very reasonable then. And if there was a more systemic issue we'd probably see more errors than that single run

Copy link
Member

@jakkdl jakkdl left a comment

Choose a reason for hiding this comment

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

have not reviewed in detail, but if it works it works

@A5rocks A5rocks mentioned this pull request Aug 7, 2025
@A5rocks
Copy link
Contributor Author

A5rocks commented Aug 7, 2025

If there's any issues with this I would be happy to make a followup PR. I'll merge this just so we don't have to think about this anymore...

@A5rocks A5rocks merged commit f8a51b6 into python-trio:main Aug 7, 2025
124 of 128 checks passed
@A5rocks A5rocks deleted the codecov-v5 branch August 7, 2025 04:47
@webknjaz
Copy link
Member

webknjaz commented Aug 7, 2025

Agreed. It doesn't look as flaky anymore.

@webknjaz
Copy link
Member

webknjaz commented Aug 7, 2025

@A5rocks FYI changing source_pkgs and source like that is probably a bad idea.

@webknjaz
Copy link
Member

webknjaz commented Aug 7, 2025

2025-08-05T12:43:40,024167528+02:00

The flag errors we don't care about, but the upload error is maybe something to look at?

Yes, that's something I'd be worried about. I'm pretty sure this is because of the source/source_pkgs changes in the coveragepy config.
This would effectively result in Codecov mismatching files with what's in the repo. If it's just some of the jobs, it's possible that the uploads aren't taken into account properly, when computing coverage but perhaps other jobs still covered all the lines and so it's not immediately visible.

@webknjaz
Copy link
Member

webknjaz commented Aug 7, 2025

@A5rocks @jakkdl

Looks like Codecov no longer "sees" that these two files exist and so their coverage isn't present:
Screenshot_2025-08-07-08-26-35-29_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

@webknjaz
Copy link
Member

webknjaz commented Aug 7, 2025

This one is definitely due to excluding it on coveragepy level. source = . was including the entire repo (as a file path) but now filters to just one module (as an importable).

@A5rocks
Copy link
Contributor Author

A5rocks commented Aug 7, 2025

@A5rocks FYI changing source_pkgs and source like that is probably a bad idea.

I think that was the main change that fixes using v5, which is annoying. I'll see if we can include the tests directory as well...

@A5rocks
Copy link
Contributor Author

A5rocks commented Aug 7, 2025

Hopefully #3314 fixes that, we'll see!

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.

3 participants