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

Improve scanning coverage calculation #118

Conversation

rpanman-sonatype
Copy link
Collaborator

Before this PR the scanning coverage calculation uses the total number of applications at the end of the period
when calculation scanning coverage - this can lead to misleading results if the number of applications is
increasing from period to period (underestimating scanning coverage if the application count is increasing).

After this PR the scanning coverage calculation calculates the ratio of scanned/total applications for each
period and then averages that ratio across the whole period.

@rpanman-sonatype rpanman-sonatype merged commit 2002feb into sonatype-nexus-community:develop Feb 3, 2024
2 checks passed
@rpanman-sonatype rpanman-sonatype deleted the improve_scanning_coverage_calculation branch February 3, 2024 17:46
rpanman-sonatype added a commit that referenced this pull request Feb 3, 2024
* Updated get-metrics start time period (#114)

* Improve scanning coverage calculation (#118)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
rpanman-sonatype added a commit that referenced this pull request Feb 27, 2024
* Revert "Revert "Fix Windows Docker command""

* Updated get-metrics start time period (#115)

* Merge develop to main for release 102 (#119)

* Updated get-metrics start time period (#114)

* Improve scanning coverage calculation (#118)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>

* Fix StringIndexOutOfBoundsException and add logging

* Removed unecessary lines from test

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant