Skip to content

Commit

Permalink
Fix test failures and disable tracing
Browse files Browse the repository at this point in the history
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
  • Loading branch information
AyanSinhaMahapatra committed Oct 20, 2024
1 parent 07cd836 commit 9da6fb2
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 70 deletions.
4 changes: 2 additions & 2 deletions src/licensedcode/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
The filter functions are executed in a specific sequence over the list of matches.
"""

TRACE = True
TRACE_MERGE = True
TRACE = False
TRACE_MERGE = False
TRACE_REFINE = False
TRACE_FILTER_FALSE_POSITIVE = False
TRACE_FILTER_CONTAINED = False
Expand Down
4 changes: 2 additions & 2 deletions tests/formattedcode/data/common/manifests-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "manifests/pypi/bluepyopt_setup.py",
"start_line": 1,
"end_line": 1,
Expand All @@ -347,7 +347,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "manifests/pypi/bluepyopt_setup.py",
"start_line": 1,
"end_line": 1,
Expand Down
12 changes: 6 additions & 6 deletions tests/formattedcode/data/common/manifests-expected.jsonlines
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"system_environment": {
"operating_system": "linux",
"cpu_architecture": "64",
"platform": "Linux-5.15.0-116-generic-x86_64-with-glibc2.35",
"platform_version": "#126-Ubuntu SMP Mon Jul 1 10:14:24 UTC 2024",
"python_version": "3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0]"
"platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35",
"platform_version": "#132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024",
"python_version": "3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]"
},
"spdx_license_list_version": "3.24",
"spdx_license_list_version": "3.25",
"files_count": 4
}
}
Expand Down Expand Up @@ -357,7 +357,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "manifests/pypi/bluepyopt_setup.py",
"start_line": 1,
"end_line": 1,
Expand All @@ -379,7 +379,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "manifests/pypi/bluepyopt_setup.py",
"start_line": 1,
"end_line": 1,
Expand Down
10 changes: 5 additions & 5 deletions tests/formattedcode/data/common/manifests-expected.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ headers:
system_environment:
operating_system: linux
cpu_architecture: 64
platform: Linux-6.5.0-1025-oem-x86_64-with-glibc2.35
platform_version: '#26-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 18 12:35:22 UTC 2024'
python_version: 3.11.8 (main, Feb 12 2024, 14:25:06) [GCC 11.4.0]
platform: Linux-5.15.0-122-generic-x86_64-with-glibc2.35
platform_version: '#132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024'
python_version: 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
spdx_license_list_version: '3.25'
files_count: 4
summary:
Expand Down Expand Up @@ -340,7 +340,7 @@ packages:
license_expression_spdx: LGPL-3.0-only
matches:
- license_expression: lgpl-3.0
spdx_license_expression: LGPL-3.0-only
license_expression_spdx: LGPL-3.0-only
from_file: manifests/pypi/bluepyopt_setup.py
start_line: 1
end_line: 1
Expand All @@ -357,7 +357,7 @@ packages:
license_expression_spdx: LGPL-3.0-only
matches:
- license_expression: lgpl-3.0
spdx_license_expression: LGPL-3.0-only
license_expression_spdx: LGPL-3.0-only
from_file: manifests/pypi/bluepyopt_setup.py
start_line: 1
end_line: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ license_detections:
GPL-2.0-or-later)
matches:
- license_expression: gpl-2.0-plus
spdx_license_expression: GPL-2.0-or-later
license_expression_spdx: GPL-2.0-or-later
from_file:
start_line: 210
end_line: 211
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7674,7 +7674,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 2925,
"end_line": 2925,
Expand Down Expand Up @@ -7986,7 +7986,7 @@
"matches": [
{
"license_expression": "mit",
"spdx_license_expression": "MIT",
"license_expression_spdx": "MIT",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3010,
"end_line": 3010,
Expand All @@ -8002,7 +8002,7 @@
},
{
"license_expression": "other-permissive",
"spdx_license_expression": "LicenseRef-scancode-other-permissive",
"license_expression_spdx": "LicenseRef-scancode-other-permissive",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3010,
"end_line": 3010,
Expand All @@ -8026,7 +8026,7 @@
"matches": [
{
"license_expression": "public-domain",
"spdx_license_expression": "LicenseRef-scancode-public-domain",
"license_expression_spdx": "LicenseRef-scancode-public-domain",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand All @@ -8042,7 +8042,7 @@
},
{
"license_expression": "bsd-original",
"spdx_license_expression": "BSD-4-Clause",
"license_expression_spdx": "BSD-4-Clause",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand All @@ -8058,7 +8058,7 @@
},
{
"license_expression": "gpl-1.0-plus",
"spdx_license_expression": "GPL-1.0-or-later",
"license_expression_spdx": "GPL-1.0-or-later",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand Down Expand Up @@ -14402,7 +14402,7 @@
"matches": [
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 2925,
"end_line": 2925,
Expand Down Expand Up @@ -14714,7 +14714,7 @@
"matches": [
{
"license_expression": "mit",
"spdx_license_expression": "MIT",
"license_expression_spdx": "MIT",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3010,
"end_line": 3010,
Expand All @@ -14730,7 +14730,7 @@
},
{
"license_expression": "other-permissive",
"spdx_license_expression": "LicenseRef-scancode-other-permissive",
"license_expression_spdx": "LicenseRef-scancode-other-permissive",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3010,
"end_line": 3010,
Expand All @@ -14754,7 +14754,7 @@
"matches": [
{
"license_expression": "public-domain",
"spdx_license_expression": "LicenseRef-scancode-public-domain",
"license_expression_spdx": "LicenseRef-scancode-public-domain",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand All @@ -14770,7 +14770,7 @@
},
{
"license_expression": "bsd-original",
"spdx_license_expression": "BSD-4-Clause",
"license_expression_spdx": "BSD-4-Clause",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand All @@ -14786,7 +14786,7 @@
},
{
"license_expression": "gpl-1.0-plus",
"spdx_license_expression": "GPL-1.0-or-later",
"license_expression_spdx": "GPL-1.0-or-later",
"from_file": "fusiondirectory/debian/copyright.in",
"start_line": 3016,
"end_line": 3016,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@
},
{
"license_expression": "apache-2.0",
"spdx_license_expression": "Apache-2.0",
"license_expression_spdx": "Apache-2.0",
"from_file": "paddlenlp/README_en.md",
"start_line": 8,
"end_line": 8,
Expand Down Expand Up @@ -1640,7 +1640,7 @@
},
{
"license_expression": "apache-2.0",
"spdx_license_expression": "Apache-2.0",
"license_expression_spdx": "Apache-2.0",
"from_file": "paddlenlp/README_en.md",
"start_line": 8,
"end_line": 8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@
"matches": [
{
"license_expression": "gpl-3.0",
"spdx_license_expression": "GPL-3.0-only",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -736,7 +736,7 @@
},
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -752,7 +752,7 @@
},
{
"license_expression": "gpl-2.0",
"spdx_license_expression": "GPL-2.0-only",
"license_expression_spdx": "GPL-2.0-only",
"from_file": "samba/README.contributing",
"start_line": 39,
"end_line": 39,
Expand Down Expand Up @@ -1116,7 +1116,7 @@
"matches": [
{
"license_expression": "gpl-3.0",
"spdx_license_expression": "GPL-3.0-only",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1132,7 +1132,7 @@
},
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1148,7 +1148,7 @@
},
{
"license_expression": "gpl-2.0",
"spdx_license_expression": "GPL-2.0-only",
"license_expression_spdx": "GPL-2.0-only",
"from_file": "samba/README.contributing",
"start_line": 39,
"end_line": 39,
Expand Down Expand Up @@ -1500,7 +1500,7 @@
"matches": [
{
"license_expression": "gpl-3.0",
"spdx_license_expression": "GPL-3.0-only",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1516,7 +1516,7 @@
},
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1532,7 +1532,7 @@
},
{
"license_expression": "gpl-2.0",
"spdx_license_expression": "GPL-2.0-only",
"license_expression_spdx": "GPL-2.0-only",
"from_file": "samba/README.contributing",
"start_line": 39,
"end_line": 39,
Expand Down Expand Up @@ -1893,7 +1893,7 @@
},
{
"license_expression": "gpl-3.0",
"spdx_license_expression": "GPL-3.0-only",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1909,7 +1909,7 @@
},
{
"license_expression": "lgpl-3.0",
"spdx_license_expression": "LGPL-3.0-only",
"license_expression_spdx": "LGPL-3.0-only",
"from_file": "samba/README.contributing",
"start_line": 38,
"end_line": 38,
Expand All @@ -1925,7 +1925,7 @@
},
{
"license_expression": "gpl-2.0",
"spdx_license_expression": "GPL-2.0-only",
"license_expression_spdx": "GPL-2.0-only",
"from_file": "samba/README.contributing",
"start_line": 39,
"end_line": 39,
Expand Down
2 changes: 1 addition & 1 deletion tests/packagedcode/data/npm/alias/package.json.expected
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"matches": [
{
"license_expression": "blueoak-1.0.0",
"spdx_license_expression": "BlueOak-1.0.0",
"license_expression_spdx": "BlueOak-1.0.0",
"from_file": null,
"start_line": 1,
"end_line": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"matches": [
{
"license_expression": "mit",
"spdx_license_expression": "MIT",
"license_expression_spdx": "MIT",
"from_file": "cobe/website/package.json",
"start_line": 1,
"end_line": 1,
Expand Down Expand Up @@ -4144,7 +4144,7 @@
"matches": [
{
"license_expression": "mit",
"spdx_license_expression": "MIT",
"license_expression_spdx": "MIT",
"from_file": "cobe/website/package.json",
"start_line": 1,
"end_line": 1,
Expand Down
Loading

0 comments on commit 9da6fb2

Please sign in to comment.