-
Notifications
You must be signed in to change notification settings - Fork 318
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
Analyzer reports issues and returns exit code 2 but no issues are visible #3324
Comments
Hello Project: https://github.com/seata/seata I have applied curations.yml file to ommit missing sources for the raised warnings but the results is the same I enclose the analyzer logs |
The
The easiest way to see those issues is to generate the Static HTML or WebApp reports, but for this you have to run the scanner on the analyzer result first. |
Thanks @mnonnenmacher for that nice summary.
Actually, that's what I thought, too, but strictly speaking an unmapped license does not create an So, should we maybe not consider unmapped licenses to be issues? Or maybe better, create an |
It's important that unmapped licenses get reported, because they can contain valid licenses. The easist way was to use Also exit code 2 probably added some confusion, the commit message of c00d33a should be added to the docs somewhere. |
To me, the root cause of the confusion is that the causes of Hence my proposal to list unmapped licenses issues also in the top-level issues. In fact, I believe we should consider to generally only have a single list of issues in |
The homepage lists being liensed under "MIT License" as a feature. Also see the discussion at [1]. [1] #3324 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
BTW, I'm adding a mapping for "http://json.codeplex.com/license" in #3346. |
Thanks for the explanation. I would definitely like the 'issues' listed in the analyzer result file. |
The homepage lists being liensed under "MIT License" as a feature. Also see the discussion at [1]. [1] #3324 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
@pilvikala I'm proposing a mapping that should fix your case, see #3347. |
The homepage lists being licensed under "MIT License" as a feature. Also see the discussion at [1]. [1] #3324 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
The homepage lists being licensed under "MIT License" as a feature. Also see the discussion at [1]. [1] #3324 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth, @mnonnenmacher many thanks |
Note to myself, this currently happens at: ort/model/src/main/kotlin/CuratedPackage.kt Lines 52 to 62 in 970fdb4
|
I have a simple proposal about how to address the topic: How about renaming the What do you think @mnonnenmacher and @fviernau? |
Or alternatively, remove |
Creating "serialized issues" in the analyzer result would be problematic when re-applying curations in the evaluator. E.g. fixing a declared license mapping issue with a declared license mapping curation would not remove the issue from the analyzer result. Have you considered dropping the analyzer issue for "declared license mapping" completely and adding a policy rule to the examples / default which does the same via rule violation? (In HERE internal setup we have a policy rule for this already) |
I recall we had a similar discussion as part of #4082. But back then my impression was that 1) we do want to have issues reported for unmapped licenses, and 2) these issues should be reported as early as possible, i.e. not only in the evaluator, but already in the analyzer. Did that change? |
Regarding 1): a policy rule would still report "issues" for declared licenses, if reporting refers to a report. Probably I'm missing something in the following, but I only recall analyzer issues which are execution problems. Problems with the execution of the logic which determins the meta data. Also in the downloader and scanner the issues are only execution issues IIRC. The mapping issue however is an issue with the meta-data values, not with determining it. From that perspective I find it fits nicely into the policy, because it is similar to other issues with licenses. Would it make sense to say "issues" can only ever be execution issues? For these I would agree that reporting them as early as possible makes sense. |
True, that was more how I understood @mnonnenmacher's comment from above in this issue.
I agree. Implementing that "separation of concerns" consequently would also help us in our workflow to determine "who's responsible for addressing what kind of issue from what tool". So, does that mean we agree on removing |
From my side yes. @mnonnenmacher , agree as well?
yes. edit: Seems I already contributed that in 5543aed |
Yes, if we want to leave it up to the user to decide if unmapped licenses are an issue then removing the issues and requiring a rule instead is the best solution. |
Treating unmapped licenses as issues has caused confusion in the past as these issues are not serialized into the ORT result despite "has_issues" being "true" in that case. Moreover, unmapped licenses are not a technical problem, but a metadata problem, which in many workflows will be handled by different people than technical issues. So do not dynamically create issues for unmapped licenses anymore; instead the recommendation is to use the example code from [1] to report unmapped licenses as policy violations. Resolves #3324. [1] https://github.com/oss-review-toolkit/ort/blob/2e8f08e/examples/rules.kts#L123-L135 Signed-off-by: Sebastian Schuberth <[email protected]>
Treating unmapped licenses as issues has caused confusion in the past as these issues are not serialized into the ORT result despite "has_issues" being "true" in that case. Moreover, unmapped licenses are not a technical problem, but a metadata problem, which in many workflows will be handled by different people than technical issues. So do not dynamically create issues for unmapped licenses anymore; instead the recommendation is to use the example code from [1] to report unmapped licenses as policy violations. Resolves #3324. [1] https://github.com/oss-review-toolkit/ort/blob/2e8f08e/examples/rules.kts#L123-L135 Signed-off-by: Sebastian Schuberth <[email protected]>
I am running the analyzer against the the master branch of Flasky (https://github.com/miguelgrinberg/flasky) and the analyzer reports that there are issues in the output file. Indeed, the analyzer-result.yml contains the
has_issues: true
but there are no additional details. The debug log does not provide any information either, or at least I don't see it.analyzer-result.zip
log.log
Can we make the analyzer to produce more information about the actual issues either in the logs or the results file?
The text was updated successfully, but these errors were encountered: