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

Optimize access to custom license texts in Reporter #1654

Merged

Conversation

oheger-bosch
Copy link
Contributor

This PR adds a special LicenseTextProvider implementation that optimizes loading of license texts from the config repository.

@sschuberth

This comment was marked as resolved.

@oheger-bosch

This comment was marked as resolved.

@sschuberth
Copy link
Contributor

This PR adds a special LicenseTextProvider implementation that optimizes loading of license texts from the config repository.

FYI, I also just created oss-review-toolkit/ort#9620 which generalizes the idea to a LicenseDataProvider API on the ORT core side.

So far, ORT's `DefaultLicenceTextProvider` was used for accessing
custom license texts. Practice has shown that this was rather
inefficient because all license texts had to be downloaded to a local
directory first. To avoid this, introduce a special implementation
that directly interacts with the `ConfigManager` to download license
texts.

Signed-off-by: Oliver Heger <[email protected]>
@oheger-bosch oheger-bosch force-pushed the reporter_custom_license_texts branch from fa8921f to 9034c21 Compare December 17, 2024 14:43
In `ReporterRunner`, create an instance of `CustomLicenseTextProvider`
if a path to custom license texts is configured. This makes sure that
custom license texts are obtained from the config repository on
demand.

Signed-off-by: Oliver Heger <[email protected]>
@oheger-bosch oheger-bosch force-pushed the reporter_custom_license_texts branch from 9034c21 to 7f3182e Compare December 17, 2024 14:56
@mnonnenmacher mnonnenmacher added this pull request to the merge queue Dec 17, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 17, 2024
@sschuberth sschuberth added this pull request to the merge queue Dec 17, 2024
Merged via the queue into eclipse-apoapsis:main with commit dd049c8 Dec 17, 2024
24 checks passed
@oheger-bosch oheger-bosch deleted the reporter_custom_license_texts branch January 7, 2025 10:42
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