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
Run code coverage on v2 unit tests. #9919
Conversation
eca362a
to
4a9ae67
Compare
it repos the bug I reported here: #9914 |
ef989ca
to
515fd3c
Compare
db0cf60
to
770d0bd
Compare
@Eric-Arellano @stuhood any idea why this fails ? |
"Output type mismatch" sounds like perhaps declaring and output as a file that is actually a directory: perhaps this:
|
not sure what you mean... this works fine in other repos.. |
b4a79be
to
4ac9e4a
Compare
c2e6904
to
19fee18
Compare
I think the unit tests are timing out with coverage enabled because coverage makes the tests much slower. Run It’s very plausible that our plugin is responsible for most of the slowdown. Benjy’s changes mean that we will soon be able to remove the Pants plugin |
ok. It is still super weird that it take that long... but I can try to re-push this PR once those changes are merged. |
If we have a decent sense for how much overhead coverage adds, we could automatically adjust/multiply timeouts under coverage... |
It seems that |
ffa4083
to
9b53089
Compare
bc5ba91
to
86f63e8
Compare
@stuhood @Eric-Arellano this passes now. |
I think that I agree. It would be nice to send it somewhere, if possible? But ok to follow up there perhaps? @Eric-Arellano : thoughts? |
I can follow up on sending it to coveralls. |
I think it'd be great to have Coverage data overall. I'm wondering if we should first a) unify the integration and unit test shards as there is no reason to separate them with remote execution, and then b) turn on coverage for the whole project? It may be misleading to only have coverage data from unit tests. |
+1 to merging the unit/integration shards. But I'm not sure it blocks... depends whether coveralls/cover.io support receiving multiple files per SHA? |
|
Problem
V2 pytest code coverage doesn't have enough tests so it is fragile.
Solution
Long term we should have tests, but for now, just enabling it and dogfooding it will expose issues
Result
Prevent regressions like: #9914