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

ScanSummary: Do not use sorted set for copyrightFindings #7000

Merged
merged 5 commits into from
May 16, 2023

Conversation

fviernau
Copy link
Member

See individual commits.

Part of #6235, also needed by #6945.

@fviernau fviernau requested a review from a team as a code owner May 15, 2023 19:57
@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Patch coverage: 80.00% and project coverage change: -0.01 ⚠️

Comparison is base (c2c6926) 64.31% compared to head (b790ed2) 64.30%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7000      +/-   ##
============================================
- Coverage     64.31%   64.30%   -0.01%     
  Complexity     1970     1970              
============================================
  Files           331      331              
  Lines         16690    16692       +2     
  Branches       2382     2382              
============================================
  Hits          10734    10734              
- Misses         4919     4921       +2     
  Partials       1037     1037              
Flag Coverage Δ
funTest-non-docker 29.74% <28.57%> (-0.02%) ⬇️
test 40.10% <80.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...main/kotlin/commands/SubtractScanResultsCommand.kt 0.00% <0.00%> (ø)
model/src/main/kotlin/utils/SortedSetConverters.kt 0.00% <0.00%> (ø)
...in/kotlin/provenance/NestedProvenanceScanResult.kt 83.16% <100.00%> (ø)
scanner/src/main/kotlin/scanners/fossid/FossId.kt 75.00% <100.00%> (ø)
...c/main/kotlin/scanners/fossid/FossIdScanResults.kt 77.14% <100.00%> (ø)
...n/kotlin/scanners/scancode/ScanCodeResultParser.kt 86.41% <100.00%> (ø)
...ain/kotlin/scanners/scanoss/ScanOssResultParser.kt 82.27% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fviernau fviernau changed the title ScanSummary: Do not use sorted set for copyrightFingings ScanSummary: Do not use sorted set for copyrightFindings May 16, 2023
@fviernau fviernau requested a review from sschuberth May 16, 2023 08:29
@fviernau fviernau enabled auto-merge (rebase) May 16, 2023 08:29
This simplifies an upcoming change.

Signed-off-by: Frank Viernau <[email protected]>
This simplifies upcoming changes.

Signed-off-by: Frank Viernau <[email protected]>
This simplifies an upcoming change.

Signed-off-by: Frank Viernau <[email protected]>
Only sort on serialization for human readability and reproducibility.
While that allows to remove the implementation of the comparable interface,
still keep the comparator constant for use in the converter and any place
where `CopyrightFinding`s shall be shown to users.

Signed-off-by: Frank Viernau <[email protected]>
Returning a sorted set is no more necessary, because `ScanSummary` has
been changed in a preceeding change to use a set for the copyright
findings.

Signed-off-by: Frank Viernau <[email protected]>
@fviernau fviernau merged commit 1604522 into main May 16, 2023
@fviernau fviernau deleted the copyright-findings-set branch May 16, 2023 12:57
@mnonnenmacher mnonnenmacher added the breaking API change Pull requests that break compatibility with previous API label May 22, 2023
@sschuberth sschuberth added the release notes Changes that should be mentioned in release notes label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking API change Pull requests that break compatibility with previous API release notes Changes that should be mentioned in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants