-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add an API endpoint to upload pre-created / existing analyzer results #193
Comments
@heliocastro, can you maybe share the API specs of your Optima service here for reference? |
I will be doing this on next Monday, need clear internal naming endpoints. |
Currently, the Analyzer job needs to always be included in an ORT run, so make it mandatory in the run creation form. As there is a pending issue about uploading pre-created Analyzer results for a run [1], we implement this with minimal changes to the UI, by always enabling the Analyzer job switch and preventing to disable it. This prepares for future changes to the run creation form regarding the upload functionality. [1]: eclipse-apoapsis#193 Signed-off-by: Jyrki Keisala <[email protected]>
Currently, the Analyzer job needs to always be included in an ORT run, so make it mandatory in the run creation form. As there is a pending issue about uploading pre-created Analyzer results for a run [1], we implement this with minimal changes to the UI, by always enabling the Analyzer job switch and preventing to disable it. This prepares for future changes to the run creation form regarding the upload functionality. [1]: #193 Signed-off-by: Jyrki Keisala <[email protected]>
As discussed in #907, it could make sense to have the API work in a way that an existing analyzer result is uploaded to a specific product, and uploading it creates a new repository in that product. Users could then specify whatever run arguments for runs against that repo, and the runs would then be executed with the same analyzer result as the base without the need to upload the result file for each individual run. There should also be an update endpoint to upload a new analyzer result to overwrite the previously uploaded one, leading to the runs after that using the new analyzer result as the base. |
Any progress here BTW, @heliocastro? |
This brings up some questions, how to handle the
|
If using provided analyzer results requires a lot of work arounds, we could consider creating separate database entries for them, similar to repos.
Maybe a warning if the user is uploading a result with different information that the user than then discard and upload if they so wish.
I feel not allowing ORT results without provenance information would be quite arbitrary limitation if ORT itself can work on them. I think there's nothing that the analysis really needs provenance information for the source, except for scanning the project, for which an ORT issue should suffice. |
It can't, see the related oss-review-toolkit/ort#8803. |
But that might change so we should still consider it when designing the upload functionality. |
Ideas from today's meeting with @mnonnenmacher:
|
Instead of running the analyzer on the ORT server, it is sometimes necessary to run the analyzer on-premises / locally (to avoid cloning the project in the cloud). For such a use-case the ORT server should have an endpoint to upload an existing analyzer result.
The text was updated successfully, but these errors were encountered: