Skip to content

Conversation

@tdruez
Copy link
Contributor

@tdruez tdruez commented Dec 5, 2025

@AyanSinhaMahapatra could you look into those warnings?

 make test
-> Run the test suite
.venv/bin/python manage.py test --noinput
Found 834 test(s).
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
....s...................................................................ss...............s.ss.............ss.s....s.ss.........................................................................................................................................................................s.....[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
.[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
/Volumes/nexB/repos/scancode.io/.venv/lib/python3.13/site-packages/formattedcode/output_cyclonedx.py:809: CycloneDxPluginNoPackagesWarning: The --cyclonedx-xml option will not output any component/dependency data as there are no package data in the present scan. To get package data please rerun the scan with --package or --system-package CLI options enabled.
  bom = CycloneDxBom.from_codebase(codebase)
/Volumes/nexB/repos/scancode.io/.venv/lib/python3.13/site-packages/formattedcode/output_cyclonedx.py:839: CycloneDxPluginNoPackagesWarning: The --cyclonedx-xml option will not output any component/dependency data as there are no package data in the present scan. To get package data please rerun the scan with --package or --system-package CLI options enabled.
  bom = CycloneDxBom.from_codebase(codebase)
...........[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
.x...........s........sss..............................................................................................................s.......................................................................................................................ssss..s.s[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
.[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
..s.....ss............s..[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
WARNING: Files are missing a SHA1 attribute. Incomplete SPDX document created.
.....[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
F[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
F.[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
F[DEPRECATION WARNING] The --csv option is deprecated and will be replaced by new CSV and tabular output formats in the next ScanCode release. Visit https://github.com/nexB/scancode-toolkit/issues/3043 to provide inputs and feedback.
......................................................................................................................................................................................................................................

Also, some expected data needs to be updated:

======================================================================
FAIL: test_scanpipe_scan_package_pipeline_integration (scanpipe.tests.test_pipelines.PipelinesIntegrationTest.test_scanpipe_scan_package_pipeline_integration)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 720, in test_scanpipe_scan_package_pipeline_integration
    self.assertPipelineResultEqual(expected_file, scancode_file)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 698, in assertPipelineResultEqual
    self.assertEqual(expected_data, result_data)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'hea[813 chars]s': [], 'warnings': [], 'extra_data': {'spdx_l[16805 chars][]}]} != {'hea[813 chars]s': ['ERROR: failed to run pre-scan plugin: fa[19736 chars][]}]}
Diff is 40184 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_scanpipe_scan_package_pipeline_integration_multiple_packages (scanpipe.tests.test_pipelines.PipelinesIntegrationTest.test_scanpipe_scan_package_pipeline_integration_multiple_packages)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 759, in test_scanpipe_scan_package_pipeline_integration_multiple_packages
    self.assertPipelineResultEqual(expected_file, scancode_file)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 698, in assertPipelineResultEqual
    self.assertEqual(expected_data, result_data)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'hea[813 chars]s': [], 'warnings': [], 'extra_data': {'spdx_l[28178 chars][]}]} != {'hea[813 chars]s': ['ERROR: failed to run pre-scan plugin: fa[31289 chars][]}]}
Diff is 62468 characters long. Set self.maxDiff to None to see it.

======================================================================
FAIL: test_scanpipe_scan_package_single_file (scanpipe.tests.test_pipelines.PipelinesIntegrationTest.test_scanpipe_scan_package_single_file)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 814, in test_scanpipe_scan_package_single_file
    self.assertPipelineResultEqual(expected_file, scancode_file)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Volumes/nexB/repos/scancode.io/scanpipe/tests/test_pipelines.py", line 698, in assertPipelineResultEqual
    self.assertEqual(expected_data, result_data)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: {'hea[813 chars]s': [], 'warnings': [], 'extra_data': {'spdx_l[53413 chars][]}]} != {'hea[813 chars]s': ['ERROR: failed to run pre-scan plugin: fa[56236 chars][]}]}
Diff is 132176 characters long. Set self.maxDiff to None to see it.


Also, a UNSET_files dir is created in the root of the repo while running the tests:

ls -a UNSET_files
.                         bootstrap.min.js.ABOUT    DataTables.LICENSE        jquery.dataTables.min.css main.css                  simple-sidebar.ABOUT
..                        bsd-new.LICENSE           fonts                     jquery.dataTables.min.js  mit.LICENSE               simple-sidebar.css
32px.png                  chart.js                  html5shiv.ABOUT           jquery.LICENSE            respond.ABOUT             simple-sidebar.LICENSE
bootstrap-fonts.ABOUT     d3.min.js                 html5shiv.js              jquery.min.js             respond.LICENSE           style.min.css
bootstrap.min.css         d3.min.js.ABOUT           html5shiv.LICENSE         jstree.ABOUT              respond.min.js            throbber.gif
bootstrap.min.css.ABOUT   d3.min.js.NOTICE          images                    jstree.LICENSE            scancode_datatable.js
bootstrap.min.js          DataTables.ABOUT          jquery.ABOUT              jstree.min.js             scancode_jstree.js

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.

1 participant