Skip to content

Scancode: Fix false positive reported by scancode output analyser script #13745

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

Merged
merged 3 commits into from
Oct 16, 2020

Conversation

hugueskamba
Copy link
Collaborator

Summary of changes

ScanCode can possibly return many licenses found for a single file scanned.
This commit ensures that the file is not reported as lacking a permissive license
if at least one license found in it is permissive.
Previously the script was reporting an issue if it found at least one license
in a file that was not permissive.

Additionally catch more errors and provide specific details about failures.
Provide unit test.

Impact of changes

Migration actions required

Documentation


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[X] Tests / results supplied as part of this PR

Reviewers


@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Oct 8, 2020
@ciarmcom ciarmcom requested review from a team October 8, 2020 17:00
@ciarmcom
Copy link
Member

ciarmcom commented Oct 8, 2020

@hugueskamba, thank you for your changes.
@ARMmbed/mbed-os-tools @ARMmbed/mbed-os-maintainers please review.

@hugueskamba hugueskamba force-pushed the hk_evaluate_code_fix branch 3 times, most recently from 0e5a81a to f3c54c2 Compare October 8, 2020 18:15
Copy link
Contributor

@rwalton-arm rwalton-arm left a comment

Choose a reason for hiding this comment

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

What's the relationship between this PR and #13703? Is 13703 going to be closed?

harmut01
harmut01 previously approved these changes Oct 9, 2020
@mergify mergify bot added needs: CI and removed needs: work labels Oct 9, 2020
@hugueskamba hugueskamba force-pushed the hk_evaluate_code_fix branch from 9518d6a to c28f4b1 Compare October 9, 2020 12:41
@mergify mergify bot dismissed harmut01’s stale review October 9, 2020 12:42

Pull request has been modified.

@hugueskamba hugueskamba force-pushed the hk_evaluate_code_fix branch 2 times, most recently from 23b5a85 to 5306452 Compare October 9, 2020 12:46
@hugueskamba hugueskamba requested a review from harmut01 October 9, 2020 12:47
@hugueskamba hugueskamba force-pushed the hk_evaluate_code_fix branch from 5306452 to 58bfd93 Compare October 9, 2020 12:55
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 16, 2020

We found 3 PRs affected by the bug that this PR is fixing (it should fix it). I would like to merge this asap to unblock other PRs for the upcoming release.

@rwalton-arm would you review again?

@mbed-ci
Copy link

mbed-ci commented Oct 16, 2020

Jenkins CI Test : ❌ FAILED

Build Number: 4 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-ARM ✔️
jenkins-ci/mbed-os-ci_build-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_dynamic-memory-usage ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_cloud-client-pytest

@mergify mergify bot added needs: work and removed needs: CI labels Oct 16, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Oct 16, 2020

I restarted the client, not related

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 16, 2020

CI restarted (pr-head was red, the rest was green)

@mbed-ci
Copy link

mbed-ci commented Oct 16, 2020

Jenkins CI Test : ✔️ SUCCESS

Build Number: 5 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️
jenkins-ci/mbed-os-ci_build-ARM ✔️
jenkins-ci/mbed-os-ci_build-GCC_ARM ✔️
jenkins-ci/mbed-os-ci_greentea-test ✔️
jenkins-ci/mbed-os-ci_dynamic-memory-usage ✔️
jenkins-ci/mbed-os-ci_cloud-client-pytest ✔️

@0xc0170 0xc0170 merged commit eb38298 into ARMmbed:master Oct 16, 2020
@mergify mergify bot removed the ready for merge label Oct 16, 2020
@hugueskamba hugueskamba deleted the hk_evaluate_code_fix branch October 16, 2020 18:07
@mbedmain mbedmain added release-version: 6.4.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants