-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
AAP-38528 Make default state passing for coverage targets #15772
Conversation
Well now it's showing this.
I'm honestly happy with this as-is. If people have more ideas, I'm good to go with those, but for the near-term I think this helps. |
@AlanCoding sorry, I just noticed the notification. Will respond shortly. |
@AlanCoding @PabloHiro I've posted a comment with the entire context that I had in my head (unless I've forgotten some important nuance, it should be complete). Hopefully, this will help you reevaluate the action items. In general, I think that the procedure of reacting to Codecov reports needs to be made known, plus a few tweaks in two configs may be needed. |
8014138
to
3939e2e
Compare
Quality Gate passedIssues Measures |
With my recent merge, test coverage is >95%, so I've undone that change @webknjaz , but I still don't have actual coverage data for tests, which would be actionable. I've implemented a form of what @PabloHiro suggests, basically not change the patch criteria but address the project coverage threshold. But again, none of this is truly useful, because integration tests report no coverage. That would be technically viable but it not on our priorities. |
@AlanCoding what do you mean? Some collection tests? There's integration tests from the collection with the
You can go to Codecov and it'll show the uncovered lines: https://app.codecov.io/gh/ansible/awx/tree/devel/awx%2Fmain%2Ftests?flags%5B0%5D=pytest. |
@webknjaz Help me file an issue for this. And let me know if I'm wrong on anything - The collection integration tests gather coverage for the client interacting with the API. It does not gather coverage data on what happens in the server. https://github.com/ansible/awx/blob/devel/.github/actions/run_awx_devel/action.yml Both the collection integration tests and the Presumably, we could set up coverage data gathering when the server starts and combine this later. Without that, I can't do a whole lot with this coverage data, because the elephant in the room is the legacy integration tests that we're trying to migrate here which honestly constitute the vast majority of our coverage. |
@AlanCoding ah, I see. Yes, that would require running that code under coverage as well. I'll think about this a bit more. P.S. I've filed the issue on the dead code that you asked for earlier: #15803. Not pasting the files list, but I've added links to where to find said files. |
SUMMARY
Reference:
#15753
That PR literally moves test files and it fails checks
And it seems to be some dissonance between present coverage values, and the coverage of the diff. I'm not sure if we should have a metric for coverage in the first place, but I digress.
For merges
This adjusts 3 values, corresponding to those 3 ❌ s so that we may be X-free for the happy path. Hopefully. Soon.
ISSUE TYPE
COMPONENT NAME