Skip to content

Add issues from advisor providers to AdvisorRun#11536

Open
lamppu wants to merge 6 commits intooss-review-toolkit:mainfrom
doubleopen-project:11460-advisor-provider-issues
Open

Add issues from advisor providers to AdvisorRun#11536
lamppu wants to merge 6 commits intooss-review-toolkit:mainfrom
doubleopen-project:11460-advisor-provider-issues

Conversation

@lamppu
Copy link
Contributor

@lamppu lamppu commented Mar 5, 2026

Please see the individual commits for details.

key: webAppOrtIssue.key,
message: webAppOrtIssue.message,
packageId: webAppOrtIssue.package.id,
packageId: webAppOrtIssue.package?.id,
Copy link
Member

Choose a reason for hiding this comment

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

In other places UUI the code sometimes says || null. Would this make sense to append that here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually now that I looked into it more, I noticed that the sorting doesn't work for undefined/null, so I used the packageName field instead, which resolves to an empty string in case of a missing package.

@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.97%. Comparing base (6159101) to head (cc7f18c).

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #11536   +/-   ##
=========================================
  Coverage     57.97%   57.97%           
  Complexity     1730     1730           
=========================================
  Files           349      349           
  Lines         12993    12993           
  Branches       1263     1263           
=========================================
  Hits           7533     7533           
  Misses         4995     4995           
  Partials        465      465           
Flag Coverage Δ
funTest-external-tools 14.18% <ø> (ø)
funTest-no-external-tools 30.87% <ø> (ø)
test-ubuntu-24.04 42.55% <ø> (ø)
test-windows-2025 42.53% <ø> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

lamppu added 6 commits March 5, 2026 15:42
The `webAppOrtIssue` package field can be undefined, so use the
`packageName` field instead, which resolves to an empty string in case of a
missing package. This prevents an "Uncaught TypeError: can't access
property "id", $.package is undefined" error being thrown, and ensures that
the comparison in the sorting function for the Package column also works.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
If the creation of a provider fails, or the querying of results for a
specific provider completely fails, collect the issue, and allow other
providers to still be run.

Resolves oss-review-toolkit#11460.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
Add a function in the `OrtResult` data class to get all the advisor
provider issues, as these are not mapped to an identifier, and therefore
cannot be added to the `getAdvisorIssues` result map.

Also add the advisor provider issues in the `getOpenIssues` output.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
Add the provider issues that aren't part of the advisor results to the
`EvaluatedModel` issues.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
Add provider issues to the advisor issues table. As these issues are not
mapped to an identifier, refactor the table to allow issues without an
identifier.

Signed-off-by: Johanna Lamppu <johanna.lamppu@doubleopen.org>
@lamppu lamppu force-pushed the 11460-advisor-provider-issues branch from 2569968 to cc7f18c Compare March 5, 2026 13:43
Copy link
Member

@sschuberth sschuberth left a comment

Choose a reason for hiding this comment

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

Just a naming question.

/**
* The [Issue]s that occurred while preparing and querying advisor providers for this run.
*/
val providerIssues: Set<Issue> = emptySet(),
Copy link
Member

Choose a reason for hiding this comment

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

In ScannerRun, we call this just issues. What's the reason to name it differently here?

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.

3 participants