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

feat(black-duck): Make the log output show how the origin is determined #9850

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented Jan 28, 2025

Log the query parameter (purl or origin-id) to make obvious how the origin is of each respective package is determined.

Part of: #8739.

@fviernau fviernau requested a review from a team as a code owner January 28, 2025 09:24
@fviernau fviernau force-pushed the black-duck-log-enhancement branch from 7ed9925 to ecbbe96 Compare January 28, 2025 09:25
@fviernau fviernau enabled auto-merge (rebase) January 28, 2025 09:25
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.12%. Comparing base (fb07211) to head (4bc4ac6).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #9850   +/-   ##
=========================================
  Coverage     68.12%   68.12%           
  Complexity     1293     1293           
=========================================
  Files           250      250           
  Lines          8843     8843           
  Branches        918      918           
=========================================
  Hits           6024     6024           
  Misses         2432     2432           
  Partials        387      387           
Flag Coverage Δ
funTest-docker 65.14% <ø> (ø)
funTest-non-docker 33.35% <ø> (ø)
test-ubuntu-24.04 35.77% <ø> (ø)
test-windows-2022 35.74% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -158,10 +158,10 @@ class BlackDuck(
}

if (origins.isEmpty()) {
logger.info { "No origin found for package '${pkg.id.toCoordinates()}'." }
logger.info { "No origin found for package '${pkg.id.toCoordinates()}', ${pkg.requestParam}." }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it a bit unusual to use a comma here, as it's not an enumeration, but an alternative way to refer to the same package. So maybe use parentheses as in (${pkg.requestParam}) instead?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to push this change?

@fviernau fviernau force-pushed the black-duck-log-enhancement branch from ecbbe96 to 30e8b26 Compare January 28, 2025 15:41
@fviernau fviernau requested a review from sschuberth January 28, 2025 15:41
Log the query parameter (purl or origin-id) to make obvious how the
origin is of each respective package is determined.

Signed-off-by: Frank Viernau <x9fviern@zeiss.com>
@fviernau fviernau force-pushed the black-duck-log-enhancement branch from 30e8b26 to 4bc4ac6 Compare January 28, 2025 16:51
@fviernau fviernau merged commit d8a4050 into main Jan 28, 2025
26 checks passed
@fviernau fviernau deleted the black-duck-log-enhancement branch January 28, 2025 17:10
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.

2 participants