-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
5.0.0 breaking changes: --append behavior #880
Comments
The problem isn't that Can you try adding |
Oh, actually the main process gets a parallelized data file unless append mode is in effect, in which case it doesn't. |
Thanks for the note. With the commit above, I reversed the previous change to use
When running the |
I realize the current behavior actually makes sense. All data is appended with The previous behavior was the buggy one: despite the Therefore it's all good! I'll stick to the "allow failure" trick to remain backward compatible and call it a day Thanks for the help |
I'm not sure this should be closed yet. Are you using multiprocessing in your code? What error are you having to ignore in the combine step? |
In 5.0.0, the |
If combine is reporting "No data to combine" then is it doing anything? Are you sure this is working? |
About
So by fixing this issue, 5.0 broke our tests. It's on us then |
I really appreciate your willingness to own this yourself, but I'm still trying to understand what your solution was. If you have to ignore an error status from "coverage combine", then it seems like combine isn't doing anything. |
Sorry for being unclear, to summarize:
Because we want to remain compatible with 4.5.4 (installed by default on Travis), we'll keep the failing call but ignore it. I don't know enough of coverage.py to help you further :/ see the first post if you want some code to reproduce it |
Thanks a lot, if it makes things consistent it's all good for us ! I also just understood why it totally made sense to have append mode disabled when using multiprocessing concurrency 😄 it could lead to bad racing issues.. |
This is now available in coverage==5.0.1 |
Describe the bug
> Some breaking changes (?) should be documented in
https://coverage.readthedocs.io/en/coverage-5.0/whatsnew5x.html
I'm assuming the--append
option is now enabled by default, thus breakingcodecov combine
. (That's my guess, see below to make up your mind).Edited: the inconsistency with 4.5.4 seem to be a bug fix.
I haven't seen this documented anywhere. Our test suite broke this morning, and after some troubleshooting It appears that's related to the 5.0.0 update of coverage.py.
We use coverage.py as part of our automated unit testing, here's our basic workflow:
coverage run -a -m [...]
coverage combine
codecov
which starts off by callingcoverage xml
To Reproduce
coverage debug sys
is helpful.For coverage 4.5.4
For coverage 5.0.0
What versions of what packages do you have installed? The output ofpip freeze
is helpful.Expected behavior
Here's what happens when running the code displayed above:
Our `.coveragerc` file
As shown, the return code is 1 on 5.0.0, and 0 on 4.5.4. This explains why our tests suddently failed starting today.
Should this be documented ? Is this behavior expected ?
Thanks for your time
The text was updated successfully, but these errors were encountered: