Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931018 - dev-python/libcst-1.3.1 fails tests
Summary: dev-python/libcst-1.3.1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-05-01 11:19 UTC by Agostino Sarubbo
Modified: 2024-05-01 11:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,65.77 KB, application/x-xz)
2024-05-01 11:19 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-05-01 11:19:55 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/libcst-1.3.1 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-01 11:19:56 UTC
Created attachment 892075 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-01 11:19:56 UTC
Error(s) that match a know pattern:


'
')
 - 0 warnings were generated.

0.18s 0% complete, [calculating] estimated for 1 files to go...
Finished codemodding 1 files!

Codemodding /var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/libcst/codemod/tests/codemod_formatter_error_input.py.txt
E           AssertionError: 'error: cannot format -: Cannot parse: 13:10:     async with AsyncExitStack() as stack:' not found in 'Calculating full-repo metadata...
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
Executing codemod...
FAILED libcst/codemod/tests/test_codemod_cli.py::TestCodemodCLI::test_codemod_formatter_error_input - AssertionError: 'error: cannot format -: Cannot parse: 13:10:     async with AsyncExitStack() as stack:' not found in 'Calculating full-repo metadata...
 - Failed to codemod 1 files.
Failed to codemod /var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/libcst/codemod/tests/codemod_formatter_error_input.py.txt
FileNotFoundError: [Errno 2] No such file or directory: \'/var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/black\'
  File "/usr/lib/pypy3.10/subprocess.py", line 1891, in _execute_child
  File "/usr/lib/pypy3.10/subprocess.py", line 421, in check_output
  File "/usr/lib/pypy3.10/subprocess.py", line 503, in run
  File "/usr/lib/pypy3.10/subprocess.py", line 986, in __init__
  File "/var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/libcst/codemod/_cli.py", line 314, in _execute_transform
  File "/var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/libcst/codemod/_cli.py", line 56, in invoke_formatter
[gw40] [2028/2031] FAILED libcst/codemod/tests/test_codemod_cli.py::TestCodemodCLI::test_codemod_formatter_error_input 
    newcode = invoke_formatter(config.formatter_args, newcode)
                "ParserSyntaxError: Syntax Error @ 14:11.",
    raise child_exception_type(errno_num, err_msg, err_filename)
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
rlt        = CompletedProcess(args=['/var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/bin/pypy3', '-m', 'libcst.tool', 'codemod', 'remove_unused_imports.RemoveUnusedImportsCommand', '--python-version', '3.6', '/var/tmp/portage/dev-python/libcst-1.3.1/work/libcst-1.3.1-pypy3/install/usr/lib/pypy3.10/site-packages/libcst/codemod/tests/codemod_formatter_error_input.py.txt'], returncode=1, stdout=b'', stderr=b'Calculating full-repo metadata...
    self._execute_child(args, executable, preexec_fn, close_fds,
 - Skipped 0 files.
    subprocess.check_output(
Traceback (most recent call last):
 - Transformed 0 files successfully.
    with Popen(*popenargs, **kwargs) as process:
                "error: cannot format -: Cannot parse: 13:10:     async with AsyncExitStack() as stack:",
Comment 3 Larry the Git Cow gentoo-dev 2024-05-01 11:48:09 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d6d2f671ac121bc3a736838b1d6f695e598e68b

commit 1d6d2f671ac121bc3a736838b1d6f695e598e68b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-05-01 11:33:55 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-05-01 11:48:05 +0000

    dev-python/libcst: Add test dep on dev-python/black
    
    Closes: https://bugs.gentoo.org/931018
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/libcst/libcst-1.3.1.ebuild | 3 +++
 1 file changed, 3 insertions(+)