Skip to content

tests: add tests and GHA workflow #3

tests: add tests and GHA workflow

tests: add tests and GHA workflow #3

Triggered via push October 24, 2023 22:15
Status Failure
Total duration 6m 0s
Artifacts

go.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

13 errors and 5 warnings
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {"Trent Mick"},    "author_email": {"[email protected]"}, +  "base_filename": {"appdirs-1.4.4.tar.gz"},    "blake2_256_digest": {"12619ed4a91f5c0990c611fcc5edbc071f05315c72b4c922e86db525bab0a263"},    "classifiers": {"Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ...},    ... // 2 identical entries    "description_content_type": {""},    "download_url": {""}, +  "dynamic": nil, +  "file_name": {"testdata/packages/appdirs/dist/appdirs-1.4.4.tar.gz"},    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {"https://github.com/ActiveState/appdirs"},    "keywords": {"application directory log cache user"},    ... // 4 identical entries    "metadata_version": {"2.1"},    "name": {"appdirs"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, +  "platforms": nil, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil, +  "provides_extras": nil,    "pyversion": {""}, +  "requires": nil, +  "requires_dist": nil, +  "requires_external": nil,    "requires_python": {">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"}, +  "safe_name": {"appdirs"},    ... // 3 identical and 3 inserted entries   } Test: TestParse
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {""},    "author_email": {""}, +  "base_filename": {"click-8.2.0.dev0.tar.gz"},    "blake2_256_digest": {"0d1603edc2083b267d6da83c1f9605642b276fc339271ef39398e37e38a93c78"},    "classifiers": {"Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", ...},    ... // 2 identical entries    "description_content_type": {"text/x-rst"},    "download_url": {""}, +  "dynamic": nil, +  "file_name": {"testdata/packages/click/dist/click-8.2.0.dev0.tar.gz"},    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {""},    "keywords": {""},    ... // 4 identical entries    "metadata_version": {"2.1"},    "name": {"click"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, +  "platforms": nil, -  "project_urls": { -  "Changes, https://click.palletsprojects.com/changes/", -  "Chat, https://discord.gg/pallets", -  "Documentation, https://click.palletsprojects.com/", -  "Donate, https://palletsprojects.com/donate", -  "Issue Tracker, https://github.com/pallets/click/issues/", -  "Source Code, https://github.com/pallets/click/", -  }, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil, +  "provides_extras": nil,    "pyversion": {""}, +  "requires": nil,    "requires_dist": {"colorama; platform_system == 'Windows'"}, +  "requires_external": nil,    "requires_python": {">=3.8"}, +  "safe_name": {"click"},    "sha256_digest": {"0479d732987e85eaa551ee7f949b347674116297600b9d1138cb3f7fc0c9be2f"}, +  "signed_base_filename": {"click-8.2.0.dev0.tar.gz.asc"}, +  "signed_filename": {"testdata/packages/click/dist/click-8.2.0.dev0.tar.gz.asc"},    ... // 2 identical and 1 inserted entries   } Test: TestParse
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {"Jason R. Coombs"},    "author_email": {"[email protected]"}, +  "base_filename": {"importlib_metadata-6.8.1.dev17+g353c3df.tar.gz"},    "blake2_256_digest": {"65aeba681e0be2a5859fbf39f9a4fd562eda72c0c2fbc08f2f2a3f9817151e0f"},    "classifiers": {"Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", ...},    ... // 2 identical entries    "description_content_type": {""},    "download_url": {""}, +  "dynamic": nil, +  "file_name": { +  "testdata/packages/importlib_metadata/dist/importlib_metadata-6.8.1.dev17+g353c3df.tar.gz", +  },    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {"https://github.com/python/importlib_metadata"},    "keywords": {""},    ... // 3 identical entries    "md5_digest": {"3a5f0a79762a1e2773c7b0d09c9db905"},    "metadata_version": {"2.1"}, -  "name": {"importlib-metadata"}, +  "name": {"importlib_metadata"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, +  "platforms": nil, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil,    "provides_extras": {"testing", "docs", "perf"},    "pyversion": {""}, +  "requires": nil,    "requires_dist": {"zipp>=0.5", `typing-extensions>=3.6.4; python_version < "3.8"`, `pytest>=6; extra == "testing"`, `pytest-checkdocs>=2.4; extra == "testing"`, ...}, +  "requires_external": nil,    "requires_python": {">=3.8"}, +  "safe_name": {"importlib-metadata"},    "sha256_digest": {"99f554fa1671d480b40501347f5f78e979d60aee24d2bd555c5e850b89483c57"}, +  "signed_base_filename": {"importlib_metadata-6.8.1.dev17+g353c3df.tar.gz.asc"}, +  "signed_filename": { +  "testdata/packages/importlib_metadata/dist/importlib_metadata-6.8.1.dev17+g353c3df.tar.gz.asc", +  },    ... // 2 identical and 1 inserted entries   } Test: TestParse
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {"John D. Hunter, Michael Droettboom"},    "author_email": {"Unknown <[email protected]>"}, +  "base_filename": {"matplotlib-3.9.0.dev0.tar.gz"},    "blake2_256_digest": {"eb18e7d672fda06a7bdcacbe9ed755e1e2672437ad4b5f067b8748ff7237c255"},    "classifiers": {"Development Status :: 5 - Production/Stable", "Framework :: Matplotlib", "Intended Audience :: Science/Research", "Intended Audience :: Education", ...},    ... // 2 identical entries    "description_content_type": {"text/markdown"},    "download_url": {""}, +  "dynamic": nil, +  "file_name": {"testdata/packages/matplotlib/dist/matplotlib-3.9.0.dev0.tar.gz"},    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {""},    "keywords": {""}, -  "license": { -  `License agreement for matplotlib versions 1.3.0 and later ========================================================= 1. This LICENSE AGREEMENT is between the Matplotlib Development Team ("MDT"), and the Individual or Organization ("Licensee") accessing and`..., -  }, +  "license": { +  `License agreement for matplotlib versions 1.3.0 and later ========================================================= 1. This LICENSE AGREEMENT is between the Matplotlib Development Team ("MDT"), and the Individual or Organization ("Licensee") accessing and `..., +  },    "maintainer": {""},    "maintainer_email": {""},    "md5_digest": {"3532692b8f4fd4966c306621b5f0dca2"},    "metadata_version": {"2.1"},    "name": {"matplotlib"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, +  "platforms": nil, -  "project_urls": { -  "Homepage, https://matplotlib.org", -  "Download, https://matplotlib.org/stable/users/installing/index.html", -  "Documentation, https://matplotlib.org", -  "Source code, https://github.com/matplotlib/matplotlib", -  "Bug tracker, https://github.com/matplotlib/matplotlib/issues", -  "Forum, https://discourse.matplotlib.org/", -  "Donate, https://numfocus.org/donate-to-matplotlib", -  }, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil,    "provides_extras": {"dev"},    "pyversion": {""}, +  "requires": nil,    "requires_dist": {"contourpy>=1.0.1", "cycler>=0.10", "fonttools>=4.22.0", "kiwisolver>=1.3.1", ...}, +  "requires_external": nil,    "requires_python": {">=3.9"}, +  "safe_name": {"matplotlib"},    "sha256_digest": {"2b58f0321ea0b60b1a9edaa11df4362ecb24e1fa9e47c435a525c1733d1389eb"}, +  "signed_base_filename": {
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {""},    "author_email": {"Sébastien Eustace <[email protected]>>"}, +  "base_filename": {"pendulum-3.0.0b1.tar.gz"},    "blake2_256_digest": {"20a89df32bba45cc7d8d5cb5ffad32c61bc55c8025c896327db67a0955808e8a"},    "classifiers": {"License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", ...},    ... // 2 identical entries    "description_content_type": {"text/x-rst; charset=UTF-8"},    "download_url": {""}, +  "dynamic": nil, +  "file_name": {"testdata/packages/pendulum/dist/pendulum-3.0.0b1.tar.gz"},    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {""},    "keywords": {"datetime,date,time"},    ... // 4 identical entries    "metadata_version": {"2.1"},    "name": {"pendulum"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, +  "platforms": nil, -  "project_urls": { -  "Homepage, https://pendulum.eustace.io", -  "Documentation, https://pendulum.eustace.io/docs", -  "Repository, https://github.com/sdispater/pendulum", -  }, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil, +  "provides_extras": nil,    "pyversion": {""}, +  "requires": nil,    "requires_dist": {"python-dateutil >=2.6, <3.0", "tzdata >=2020.1", "backports.zoneinfo >=0.2.1, <0.3.0 ; python_version >= '3.7' and"..., "time-machine >=2.6.0, <3.0.0 ; implementation_name != 'pypy'", ...}, +  "requires_external": nil,    "requires_python": {">=3.8"}, +  "safe_name": {"pendulum"},    "sha256_digest": {"a34a76f323e43d6c842e1a6caec8328b8add7f0422f40fec39074c7d1b22f3f2"}, +  "signed_base_filename": {"pendulum-3.0.0b1.tar.gz.asc"}, +  "signed_filename": {"testdata/packages/pendulum/dist/pendulum-3.0.0b1.tar.gz.asc"},    ... // 2 identical and 1 inserted entries   } Test: TestParse
test: parse_test.go#L175
parse_test.go:175: Error Trace: /home/runner/work/python-distribution-parser/python-distribution-parser/parse_test.go:175 Error: Should be empty, but was   map[string][]string{ -  ":action": {"file_upload"},    "author": {"Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruyno"...},    "author_email": {""}, +  "base_filename": {"pytest-8.0.0.dev294+gc7e9b22f3.tar.gz"},    "blake2_256_digest": {"f9e992f92bd73bc4e0423b1733f542b39638662df429b0f3069e1050e4be2593"},    "classifiers": {"Development Status :: 6 - Mature", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", ...},    ... // 2 identical entries    "description_content_type": {"text/x-rst"},    "download_url": {""}, +  "dynamic": nil, +  "file_name": {"testdata/packages/pytest/dist/pytest-8.0.0.dev294+gc7e9b22f3.tar.gz"},    "filetype": {"sdist"}, +  "gpg_signature": {"<nil>"},    "home_page": {"https://docs.pytest.org/en/latest/"},    "keywords": {"test,unittest"},    ... // 4 identical entries    "metadata_version": {"2.1"},    "name": {"pytest"}, +  "obsoletes": nil, +  "obsoletes_dist": nil, -  "platform": {"unix", "linux", "osx", "cygwin", "win32"}, +  "platforms": {"unix", "linux", "osx", "cygwin", "win32"}, -  "project_urls": { -  "Changelog, https://docs.pytest.org/en/stable/changelog.html", -  "Twitter, https://twitter.com/pytestdotorg", -  "Source, https://github.com/pytest-dev/pytest", -  "Tracker, https://github.com/pytest-dev/pytest/issues", -  }, +  "project_urls": nil,    "protocol_version": {"1"}, +  "provides": nil, +  "provides_dist": nil,    "provides_extras": {"testing"},    "pyversion": {""}, +  "requires": nil,    "requires_dist": {"iniconfig", "packaging", "pluggy<2.0,>=1.3.0", `colorama; sys_platform == "win32"`, ...}, +  "requires_external": nil,    "requires_python": {">=3.8"}, +  "safe_name": {"pytest"},    "sha256_digest": {"f70cc757c150be7014bb366ca9c9540df1b8dc808a109c567e8fd826efb1ebd8"}, +  "signed_base_filename": {"pytest-8.0.0.dev294+gc7e9b22f3.tar.gz.asc"}, +  "signed_filename": {"testdata/packages/pytest/dist/pytest-8.0.0.dev294+gc7e9b22f3.tar.gz.asc"},    ... // 2 identical and 1 inserted entries   } Test: TestParse
test: archiver/archive_reader.go#L75
Error return value of `t.resetReader` is not checked (errcheck)
test: distributions/distribution.go#L210
Error return value of `bd.setJSONValue` is not checked (errcheck)
test: distributions/distribution.go#L212
Error return value of `bd.setJSONValue` is not checked (errcheck)
test: distributions/distribution.go#L223
Error return value of `bd.setJSONValue` is not checked (errcheck)
test: packages/package.go#L59
Error return value of `hashManager.Hash` is not checked (errcheck)
test: parse.go#L69
Error return value of `packageFile.AddGPGSignature` is not checked (errcheck)
test
Process completed with exit code 1.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, guyarb/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/