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

Fix: correctly combine test coverage. #541

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

dblock
Copy link
Member

@dblock dblock commented Aug 30, 2024

Description

Test coverage was being combined naively and incorrectly.

I had sneaked in a minimal implementation in #513 where a bunch of tests would run in parallel, then the jq code that combined results would just pick the max number of tests run, which would account for the default test suite, but not for the other test suites.

This is now replaced with producing a JSON that contains an actually unique set of all operations and a unique set of evaluated operations, then merge all these results, then sum up the numbers and calculate the overall percentage.

The bad news is that we were including dups in the counts, so we're not at 66% but 43.29%.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock dblock added the skip-changelog No need to update CHANGELOG. label Aug 30, 2024
Copy link

github-actions bot commented Aug 30, 2024

Changes Analysis

Commit SHA: 0a64621
Comparing To SHA: 14d819b

API Changes

Summary

NO CHANGES

Report

The full API changes report is available at: https://github.com/opensearch-project/opensearch-api-specification/actions/runs/10624591524/artifacts/1872572320

API Coverage

Before After Δ
Covered (%) 533 (52.2 %) 533 (52.2 %) 0 (0 %)
Uncovered (%) 488 (47.8 %) 488 (47.8 %) 0 (0 %)
Unknown 26 26 0

Copy link

github-actions bot commented Aug 30, 2024

Spec Test Coverage Analysis

Total Tested
559 242 (43.29 %)

@dblock dblock marked this pull request as draft August 30, 2024 00:11
@dblock dblock force-pushed the fix-test-coverage branch 2 times, most recently from db84378 to bca035d Compare August 30, 2024 00:18
@dblock dblock marked this pull request as ready for review August 30, 2024 00:22
@Xtansia Xtansia merged commit b3f9788 into opensearch-project:main Aug 30, 2024
19 checks passed
@dblock dblock deleted the fix-test-coverage branch August 30, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No need to update CHANGELOG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants