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

Coverage error on travis #439

Closed
kngwyu opened this issue Apr 17, 2019 · 13 comments
Closed

Coverage error on travis #439

kngwyu opened this issue Apr 17, 2019 · 13 comments

Comments

@kngwyu
Copy link
Member

kngwyu commented Apr 17, 2019

E.g., see https://travis-ci.org/PyO3/pyo3/jobs/521167916

What's happening?

cc: @althonos

@konstin
Copy link
Member

konstin commented Apr 17, 2019

While I don't know the cause, this doesn't seem to happen on 3.5; Would it be an option to only collect coverage from 3.5, as afaik there's no real difference in coverage between the version?

@pganssle
Copy link
Member

@konstin The datetime stuff around fold is Python 3.6 -only. I will soon be adding some Python 3.7+ features as well, so I think it would be best to find the fix.

Can anyone reproduce it locally? If not, maybe we can do a rough "git bisect" by making a PR that reverts a bunch of commits and play with the number of reverted commits until we find the one that breaks it (assuming it's not broken because of something on Travis or codecov's end).

@konstin
Copy link
Member

konstin commented Apr 17, 2019

According to the travis history it's broken since #432, but I doubt there's any problem with that pull request. Also travis fails to show any proper error, which makes this weird.

@pganssle
Copy link
Member

pganssle commented Apr 17, 2019

I think maybe you have to e-mail Travis to request it* (I think that was the procedure when I did it, very early on in this feature's life), but it's possible to run Travis in debug mode if you can't reproduce locally: https://docs.travis-ci.com/user/running-build-in-debug-mode/

*By "request it" I mean "request access to the feature", not request every debug build.

@konstin
Copy link
Member

konstin commented Apr 17, 2019

Having spent much time debugging ci services and especially travis ci in projects has drained my motivation to put more than the minimal effort into fixing this (which would be limiting coverage to 3.5). If someone else however is willing to work on this, I'd be happy to help.

FWIW you can also pull their docker container and copy&paste the commands for reproducing, which is kinda convenient. I haven't tried debug mode yet though.

@pganssle
Copy link
Member

If this is a Travis-specific issue, it might make sense to migrate to Azure Pipelines. Microsoft has been making a big push for them in the open source world lately, so the speed and quality of the builds is pretty high.

@konstin
Copy link
Member

konstin commented Apr 28, 2019

Azure pipelines look really promising and I'd be happy to try it out. However I don't think the coverage error is travis ci's fault and also azure pipelines likely still has some rough edges.

@Alexander-N
Copy link
Member

The error seems to be gone, maybe we can close this issue?

@kngwyu
Copy link
Member Author

kngwyu commented Jun 4, 2019

Coverage is broken again in #503(maybe because of trybuild?).
So.. how about stopping the use of coverage?
Honestly I don't think it is very important and meaningful for us.

@Alexander-N
Copy link
Member

Since the coverage seems to be a constant hassle, I wouldn't be opposed to removing it again.

@althonos
Copy link
Member

althonos commented Jun 4, 2019

Or other option, make the coverage script fail silently, so that it does not make the whole build a failure: this would allow the coverage to be reported still most of the time.

@konstin
Copy link
Member

konstin commented Jun 5, 2019

The build failure in #503 is a bug in trybuild: dtolnay/trybuild#14

I agree with @althonos that we should just make that script an allowed failure. Coverage can be useful sometimes, even though we might want to remove the badge from the readme.

@konstin
Copy link
Member

konstin commented Jul 15, 2019

Coverage has been allowed to fail for some time

@konstin konstin closed this as completed Jul 15, 2019
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

No branches or pull requests

5 participants