-
Notifications
You must be signed in to change notification settings - Fork 510
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
✨ scdiff: normalize scorecard results #3294
✨ scdiff: normalize scorecard results #3294
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3294 +/- ##
==========================================
- Coverage 72.83% 66.21% -6.63%
==========================================
Files 173 173
Lines 12700 12703 +3
==========================================
- Hits 9250 8411 -839
- Misses 2944 3824 +880
+ Partials 506 468 -38 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Can you please add tests for the missing lines?
It's a cobra command, which runs scorecard on a repo URI. This would be difficult to do as written. The diff coverage in this PR is already 80% Edit: Misread your message slightly. Can try to get the error lines covered in |
Covered an additional line in Please take another look @naveensrinivasan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Spencer Schrock <[email protected]>
4c87f13
to
0a863f0
Compare
* Normalize results. Signed-off-by: Spencer Schrock <[email protected]> * add tests for standardized output format Signed-off-by: Spencer Schrock <[email protected]> * move comment to proper place. Signed-off-by: Spencer Schrock <[email protected]> * add comment about pretty print. Signed-off-by: Spencer Schrock <[email protected]> * format test can be parallel. Signed-off-by: Spencer Schrock <[email protected]> * Add normalize nil test. Signed-off-by: Spencer Schrock <[email protected]> --------- Signed-off-by: Spencer Schrock <[email protected]> Signed-off-by: Allen Shearin <[email protected]>
What kind of change does this PR introduce?
feature
What is the current behavior?
scorecard results were printed verbatim by the scdiff tool
What is the new behavior (if this is a feature change)?**
certain fields, such as dates or commit shas, are stripped before printing.
these fields are informational, but don't provide value in detecting a change in scorecard behavior. instead they interfere with the comparison
Which issue(s) this PR fixes
Related to #2462, 2/n
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)