Skip to content

tests: add tests and GHA workflow #5

tests: add tests and GHA workflow

tests: add tests and GHA workflow #5

Triggered via pull request October 24, 2023 22:16
@shepherdjerredshepherdjerred
synchronize #1
sj/tests
Status Failure
Total duration 5m 41s
Artifacts

go.yml

on: pull_request
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": {"a8447e66bb8529976a18ab806292e288b8c7d5d1939b449165a28f1a74a42b64"}, "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": {"17c6df4872d374a69de814ce7efa1b9bd3b03cd10251dcef1f412f2e2f5980a1"}, "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": {"c083e8bc4c810b8f63276aabe2e9d85f5444de70f32d6c8c1aa3377e7ee1f169"}, + "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": {"6f69b84bd00021bf78c3d3bc90896aba25350090883534c75775f3955dbb7eeb"}, "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": {"ef1b9ca3fd4e9936edb4120ac8ea6bdc"}, "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": {"724b7232244541fb614f4f7235c09c6753aa741de7397fd530f0d9059cfe8794"}, + "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": {"2d6aab410c0bdceaba56751447aad579d868f6d5c229d5feed20c88ce903c0d5"}, "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": {"f715bfa4932296bdf4afebde9421ef5d"}, "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": {"aa632ef714aa731b31a1916de07bc73bb632c95b58eb74288267f523ea7f66e5"}, + "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": {"5a7d5bc2142b6d9e54089b7b0dab33d32b006691b7087a585c970827cab37513"}, "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": {"acaa12348bbabcd7ff70d4d6aad77b620c9e3bb520e15c889bd39b3d0960036a"}, + "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": {"c53c1d33e808dfa669162f9a38a8b5676b4e13bdb9e6973c19ee4657b95a824c"}, "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": {"d71fe5a5a6654878d9c9ce2868091c0ad2adb5455d43aac4d99b999f801aac8f"}, + "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/