question
stringlengths 236
348k
| answer
stringlengths 10
2.11k
|
---|---|
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
+ dos2unix -k -o CHANGELOG.markdown README.markdown
/var/tmp/rpm-tmp.IjEPWr: line 46: dos2unix: command not found
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.IjEPWr (%prep)
Bad exit status from /var/tmp/rpm-tmp.IjEPWr (%prep) | The build process complains about a missing command: dos2unix. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[FileNotFoundError: [Errno 2] No such file or directory: 'poetry']: [Error message a bout a missing command]
=============
[Command: poetry --version]: [Packit is trying to run this command]
=============
[Poetry (2.1.2) is installed now. Great!]: [Poetry has been installed]
| Issue: The Packit configuration was wrong: the installed poetry command is not available in further packit steps.
Resolution: Make the installed poetry command available to the following Packit steps by adding $HOME/.local/bin to the PATH environment variable. You can use:
echo "export PATH=$PATH:$HOME/.local/bin" >> $HOME/.bashrc |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
FileNotFoundError: [Errno 2] No such file or directory: 'poetry' | Error message a bout a missing command |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Command: poetry --version | Packit is trying to run this command |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Poetry (2.1.2) is installed now. Great! | Poetry has been installed |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[python3-devel x86_64 3.14.0~a6-1.fc43 copr_base]: [This snippet shows which Python version for development was installed into the buildroot and from what repository. It is version 3.14.0~a6-1.fc43, to which we can refer to as 3.14, from copr repository. ]
=============
[=================================== FAILURES ===================================
________________ test_inspect_builtin_function_except_python311 ________________
@skip_py313
@skip_py312
@skip_py311
@skip_pypy3
def test_inspect_builtin_function_except_python311():
# Pre-3.11 Python versions - print builtin has no signature available
expected = (
"âââââââââââ <built-in function print> ââââââââââââ®\n"
"â def print(...) â\n"
"â â\n"
"â print(value, ..., sep=' ', end='\\n', â\n"
"â file=sys.stdout, flush=False) â\n"
"â â\n"
"â 29 attribute(s) not shown. Run â\n"
"â inspect(inspect) for options. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(print) == expected
E assert "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(*args, sep=' ', end='\\n', file=None, â\nâ flush=False): â\nâ â\nâ Prints the values to a stream, or to â\nâ sys.stdout by default. â\nâ â\nâ 30 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(...) â\nâ â\nâ print(value, ..., sep=' ', end='\\n', â\nâ file=sys.stdout, flush=False) â\nâ â\nâ 29 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââ <built-in function print> ââââââââââââ®
E + â def print(*args, sep=' ', end='\n', file=None, â
E - â def print(...) â
E ? ^ -----------
E + â flush=False): â
E ? ^^^^^^^^^^ ++
E â â
E - â print(value, ..., sep=' ', end='\n', â
E - â file=sys.stdout, flush=False) â
E + â Prints the values to a stream, or to â
E + â sys.stdout by default. â
E â â
E - â 29 attribute(s) not shown. Run â
E ? ^^
E + â 30 attribute(s) not shown. Run â
E ? ^^
E â inspect(inspect) for options. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:159: AssertionError]: [This is the start of the extended test failures output.
This is the first failing test: test_inspect_builtin_function_except_python311.
The output, sometimes also called traceback, shows the test decorators (starting with symbol @), test itself and the error (on the lines starting with capital E). The snippet ends with the file and line of which error happened and the information that it was an AssertionError. Lines of the error can help debug the failure.]
=============
[___________ test_inspect_integer_with_methods_python38_and_python39 ____________]: [Name of the failed test is often accompanied by a series of underscores before and after the test name.]
=============
[ @skip_py310
@skip_py311
@skip_py312
@skip_py313]: [These are the decorators of the test function. Without looking at their implementation, we can fairly guess their meaning: the test is not meant to run on python 3.10, 3.11, 3.12, 3.13. It probably tests features specific for Pythons older than 3.10.]
=============
[ def test_inspect_integer_with_methods_python38_and_python39():
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder, *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length, â\n"
"â byteorder, *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)]: [This is the test body, containing the function header (the line starting with def and ending with a colon (:)). It contains the expected output of the test function. When running the relevant code, this is how the output should look like.]
=============
[> assert render(1, methods=True) == expected]: [This line starts with an arrow (>). This indicates the line on which the test problem starts. The test calls a function called render with arguments (1, methods=True) and asserts that what it generated matches literally the output stored in variable "expected". Because there's an arrow at the beginning of the line, we know this assertion was not evaluated to True. The test failed.]
=============
[E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^]: [This is extended error output (lines starting with capital E). It shows the diff between the expected and the actual result. The lines of diff are prepended with symbols -, + and ?. The actual output doesn't contain the string "Return integer ratio.", it contains a string "Return a pair of integers,". The difference is made more visible by using the + and ^ symbols in the lines starting with ?, which show exactly what characters are added or missing explicitly.]
=============
[E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++]: [That's another error diff line. The actual output misses the "...". The actual output contains an additional colon and two spaces. There's a mismatch of the lines contents.]
=============
[E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++]: [Another error diff line. The actual output misses 6 space characters, because it added 6 other: ='big' (indicated by the + symbols underneath).]
=============
[E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â]: [This is another error diff snippet. The lines are in the actual output, but not in the expected one. This is indicated by the + characters prepending the lines. There is no matching lines prepended with -, which means the lines were only added, not somehow changed, comparing to the expected output.]
=============
[tests/test_inspect.py:252: AssertionError]: [This line contains the failed test file path (tests/test_inspect.py), the line on which error happened (252) and the type of error: AssertionError]
=============
[_______________ test_inspect_integer_with_methods_python310only ________________
@skip_py38
@skip_py39
@skip_py311
@skip_py312
@skip_py313
def test_inspect_integer_with_methods_python310only():
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_count = def bit_count(): Number of â\n"
"â ones in the binary â\n"
"â representation of the â\n"
"â absolute value of self. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder, *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length, â\n"
"â byteorder, *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(1, methods=True) == expected
E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^
E + â whose ratio is equal to the â
E + â original int. â
E â bit_count = def bit_count(): Number of â
E â ones in the binary â
E â representation of the â
E â absolute value of self. â
E â bit_length = def bit_length(): Number of â
E â bits necessary to represent â
E â self in binary. â
E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++
E â self, the complex conjugate â
E â of any int. â
E â from_bytes = def from_bytes(bytes, â
E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++
E â signed=False): Return the â
E â integer represented by the â
E â given array of bytes. â
E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â
E - â to_bytes = def to_bytes(length, â
E ? --
E + â to_bytes = def to_bytes(length=1, â
E ? ++
E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++
E â signed=False): Return an â
E â array of bytes representing â
E â an integer. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:294: AssertionError]: [test_inspect_integer_with_methods_python310only is another test that failed with AssertionError because the expected output didn't match the actual one, and the test shows the diff where this happened.]
=============
[_________________ test_inspect_integer_with_methods_python311 __________________
@skip_py38
@skip_py39
@skip_py310
@skip_py312
@skip_py313
def test_inspect_integer_with_methods_python311():
# to_bytes and from_bytes methods on int had minor signature change -
# they now, as of 3.11, have default values for all of their parameters
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_count = def bit_count(): Number of â\n"
"â ones in the binary â\n"
"â representation of the â\n"
"â absolute value of self. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder='big', *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length=1, â\n"
"â byteorder='big', *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(1, methods=True) == expected
E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^
E + â whose ratio is equal to the â
E + â original int. â
E â bit_count = def bit_count(): Number of â
E â ones in the binary â
E â representation of the â
E â absolute value of self. â
E â bit_length = def bit_length(): Number of â
E â bits necessary to represent â
E â self in binary. â
E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++
E â self, the complex conjugate â
E â of any int. â
E â from_bytes = def from_bytes(bytes, â
E â byteorder='big', *, â
E â signed=False): Return the â
E â integer represented by the â
E â given array of bytes. â
E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â
E â to_bytes = def to_bytes(length=1, â
E â byteorder='big', *, â
E â signed=False): Return an â
E â array of bytes representing â
E â an integer. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:338: AssertionError]: [test_inspect_integer_with_methods_python311 is another test that failed with AssertionError because the expected output didn't match the actual one, and the test shows the diff where this happened.]
=============
[_______________________________ test_inline_code _______________________________
def test_inline_code():
markdown = Markdown(
"inline `import this` code",
inline_code_lexer="python",
inline_code_theme="emacs",
)
result = render(markdown)
expected = "inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n"
print(result)
print(repr(result))
> assert result == expected
E AssertionError: assert 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n' == 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n'
E
E - inline import this code
E ? ^^^^^^^^^^^^^^^^^^^^^^^
E + inline import this code
E ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_markdown.py:116: AssertionError]: [test_inline_code failed with AssertionError because of a differing number of whitespace characters behind the import line (there are 6 more). This test doesn't contain any decorators telling to skip the test with any Python version.]
=============
[______________________________ test_attrs_broken _______________________________
@skip_py310
@skip_py311
@skip_py312
@skip_py313
def test_attrs_broken() -> None:
@attr.define
class Foo:
bar: int
foo = Foo(1)
del foo.bar
result = pretty_repr(foo)
print(repr(result))
expected = "Foo(bar=AttributeError('bar'))"
> assert result == expected
E assert 'Foo(\n bar=AttributeError("\'tests.test_pretty.test_attrs_broken.<locals>.Foo\' object has no attribute \'bar\'")\n)' == "Foo(bar=AttributeError('bar'))"
E
E - Foo(bar=AttributeError('bar'))
E + Foo(
E + bar=AttributeError("'tests.test_pretty.test_attrs_broken.<locals>.Foo' object has no attribute 'bar'")
E + )
tests/test_pretty.py:652: AssertionError]: [test_attrs_broken fails with AssertionError because the actual result doesn't match the expected one. The test is skipped on pythons 3.10, 3.11, 3.12, 3.13.]
=============
[_______________________________ test_blank_lines _______________________________
def test_blank_lines():
code = "\n\nimport this\n\n"
syntax = Syntax(
code, lexer="python", theme="ascii_light", code_width=30, line_numbers=True
)
result = render(syntax)
print(repr(result))
> assert (
result
== "\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n"
)
E AssertionError: assert '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n' == '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n'
E
E 1
E 2
E - 3 import this
E ? ^^^^^^^^^^^^^^^^^^^^^^^
E + 3 import this
E ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E 4
E 5
]: [This test fails with AssertionError because the expected output mismatches the actual one. The actual output contains 6 more whitespace characters.]
=============
[___________________ test_python_render_simple_indent_guides ____________________
@pytest.mark.skipif(OLD_PYGMENTS, reason="Pygments changed their tokenizer")
def test_python_render_simple_indent_guides():
syntax = Syntax(
CODE,
lexer="python",
line_numbers=False,
theme="ansi_light",
code_width=60,
word_wrap=False,
indent_guides=True,
)
rendered_syntax = render(syntax)
print(repr(rendered_syntax))
expected = '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
> assert rendered_syntax == expected
E assert '\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n' == '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
E
E - def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
E ? ^
E + def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
E ? ^^^^^^^^^^
E â """Iterate and generate a tuple with a flag for first an
E â iter_values = iter(values)
E â try:
E â â previous_value = next(iter_values)
E â except StopIteration:
E â â return
E â first = True
E â for value in iter_values:
E â â yield first, False, previous_value
E â â first = False
E â â previous_value = value
E â yield first, True, previous_value
tests/test_syntax.py:123: AssertionError]: [test_python_render_simple_indent_guides is intended to be skipped with OLD_PYGMENTS, which means if the version of pygments library is old, it should be skipped. The test ran, so the version of pygments that's available in buildroot is new enough. The rendered error lines don't show it clearly, but there is a mismatch in the output, visible on the first error line (starting with E assert...). Rendered result starts like that: "\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T])", the expected one "\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T])". There is a space character in the expected syntax that was not in the rendered ouput.]
=============
[=========================== short test summary info ============================
FAILED tests/test_inspect.py::test_inspect_builtin_function_except_python311 - assert "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(*args, sep=' ', end='\\n', file=None, â\nâ flush=False): â\nâ â\nâ Prints the values to a stream, or to â\nâ sys.stdout by default. â\nâ â\nâ 30 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(...) â\nâ â\nâ print(value, ..., sep=' ', end='\\n', â\nâ file=sys.stdout, flush=False) â\nâ â\nâ 29 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââ <built-in function print> ââââââââââââ®
+ â def print(*args, sep=' ', end='\n', file=None, â
- â def print(...) â
? ^ -----------
+ â flush=False): â
? ^^^^^^^^^^ ++
â â
- â print(value, ..., sep=' ', end='\n', â
- â file=sys.stdout, flush=False) â
+ â Prints the values to a stream, or to â
+ â sys.stdout by default. â
â â
- â 29 attribute(s) not shown. Run â
? ^^
+ â 30 attribute(s) not shown. Run â
? ^^
â inspect(inspect) for options. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python38_and_python39 - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
+ â bit_count = def bit_count(): Number of â
+ â ones in the binary â
+ â representation of the â
+ â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
- â to_bytes = def to_bytes(length, â
? --
+ â to_bytes = def to_bytes(length=1, â
? ++
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python310only - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
â bit_count = def bit_count(): Number of â
â ones in the binary â
â representation of the â
â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
- â to_bytes = def to_bytes(length, â
? --
+ â to_bytes = def to_bytes(length=1, â
? ++
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python311 - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
â bit_count = def bit_count(): Number of â
â ones in the binary â
â representation of the â
â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
â byteorder='big', *, â
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
â to_bytes = def to_bytes(length=1, â
â byteorder='big', *, â
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_markdown.py::test_inline_code - AssertionError: assert 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n' == 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n'
- inline import this code
? ^^^^^^^^^^^^^^^^^^^^^^^
+ inline import this code
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FAILED tests/test_pretty.py::test_attrs_broken - assert 'Foo(\n bar=AttributeError("\'tests.test_pretty.test_attrs_broken.<locals>.Foo\' object has no attribute \'bar\'")\n)' == "Foo(bar=AttributeError('bar'))"
- Foo(bar=AttributeError('bar'))
+ Foo(
+ bar=AttributeError("'tests.test_pretty.test_attrs_broken.<locals>.Foo' object has no attribute 'bar'")
+ )
FAILED tests/test_syntax.py::test_blank_lines - AssertionError: assert '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n' == '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n'
1
2
- 3 import this
? ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 import this
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4
5
FAILED tests/test_syntax.py::test_python_render_simple_indent_guides - assert '\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n' == '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
- def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
? ^
+ def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
? ^^^^^^^^^^
â """Iterate and generate a tuple with a flag for first an
â iter_values = iter(values)
â try:
â â previous_value = next(iter_values)
â except StopIteration:
â â return
â first = True
â for value in iter_values:
â â yield first, False, previous_value
â â first = False
â â previous_value = value
â yield first, True, previous_value]: [Once again, all failed tests are summarized with only the error lines.]
=============
[=========== 8 failed, 847 passed, 20 skipped, 1 deselected in 4.63s ============]: [8 tests of the package test suite failed. The build failed because the test run was not successful.]
=============
[error: Bad exit status from /var/tmp/rpm-tmp.NbLFbP (%check)]: [Tests are the part of the %check section of the rpm build. The tests failed, ergo the %check section was the one where the build failure happened.]
=============
[INFO: Cleaning up build root ('cleanup_on_failure=True')]: [The last indicator of the failed build ('cleanup_on_failure=True')]
| Issue: The build failed because the test suite which is a part of the %check section of the package failed. 8 tests failed, which means the whole test run wasn't successful.
Resolution: Depending on the failure, different approaches are possible.
Some of the tests contain decorators telling to skip the test with Pythons newer than 3.9. We run the tests with Python 3.14 but none of the tests contained a decorator for skipping the version. For tests that had @skip_py313, @skip_py312, @skip_py311 ... we can assume that the tests are meant to be skipped with Python 3.14 too. To fix them, we need to define and add a new decorator @skip_py314 in the source code of the package.
For other tests, it's crucial to determine whether the failure comes from differing versions of dependencies (e.g. pygments), causing the difference in rendered and expected outputs. When knowing that, the tests should be adjusted to expect the actual rendered output or skipped with the particular version of dependency (e.g. pygments, or Python).
When the test run is successful, the build will succeed. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
python3-devel x86_64 3.14.0~a6-1.fc43 copr_base | This snippet shows which Python version for development was installed into the buildroot and from what repository. It is version 3.14.0~a6-1.fc43, to which we can refer to as 3.14, from copr repository. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
=================================== FAILURES ===================================
________________ test_inspect_builtin_function_except_python311 ________________
@skip_py313
@skip_py312
@skip_py311
@skip_pypy3
def test_inspect_builtin_function_except_python311():
# Pre-3.11 Python versions - print builtin has no signature available
expected = (
"âââââââââââ <built-in function print> ââââââââââââ®\n"
"â def print(...) â\n"
"â â\n"
"â print(value, ..., sep=' ', end='\\n', â\n"
"â file=sys.stdout, flush=False) â\n"
"â â\n"
"â 29 attribute(s) not shown. Run â\n"
"â inspect(inspect) for options. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(print) == expected
E assert "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(*args, sep=' ', end='\\n', file=None, â\nâ flush=False): â\nâ â\nâ Prints the values to a stream, or to â\nâ sys.stdout by default. â\nâ â\nâ 30 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(...) â\nâ â\nâ print(value, ..., sep=' ', end='\\n', â\nâ file=sys.stdout, flush=False) â\nâ â\nâ 29 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââ <built-in function print> ââââââââââââ®
E + â def print(*args, sep=' ', end='\n', file=None, â
E - â def print(...) â
E ? ^ -----------
E + â flush=False): â
E ? ^^^^^^^^^^ ++
E â â
E - â print(value, ..., sep=' ', end='\n', â
E - â file=sys.stdout, flush=False) â
E + â Prints the values to a stream, or to â
E + â sys.stdout by default. â
E â â
E - â 29 attribute(s) not shown. Run â
E ? ^^
E + â 30 attribute(s) not shown. Run â
E ? ^^
E â inspect(inspect) for options. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:159: AssertionError | This is the start of the extended test failures output.
This is the first failing test: test_inspect_builtin_function_except_python311.
The output, sometimes also called traceback, shows the test decorators (starting with symbol @), test itself and the error (on the lines starting with capital E). The snippet ends with the file and line of which error happened and the information that it was an AssertionError. Lines of the error can help debug the failure. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
___________ test_inspect_integer_with_methods_python38_and_python39 ____________ | Name of the failed test is often accompanied by a series of underscores before and after the test name. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
@skip_py310
@skip_py311
@skip_py312
@skip_py313 | These are the decorators of the test function. Without looking at their implementation, we can fairly guess their meaning: the test is not meant to run on python 3.10, 3.11, 3.12, 3.13. It probably tests features specific for Pythons older than 3.10. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
def test_inspect_integer_with_methods_python38_and_python39():
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder, *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length, â\n"
"â byteorder, *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
) | This is the test body, containing the function header (the line starting with def and ending with a colon (:)). It contains the expected output of the test function. When running the relevant code, this is how the output should look like. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
> assert render(1, methods=True) == expected | This line starts with an arrow (>). This indicates the line on which the test problem starts. The test calls a function called render with arguments (1, methods=True) and asserts that what it generated matches literally the output stored in variable "expected". Because there's an arrow at the beginning of the line, we know this assertion was not evaluated to True. The test failed. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^ | This is extended error output (lines starting with capital E). It shows the diff between the expected and the actual result. The lines of diff are prepended with symbols -, + and ?. The actual output doesn't contain the string "Return integer ratio.", it contains a string "Return a pair of integers,". The difference is made more visible by using the + and ^ symbols in the lines starting with ?, which show exactly what characters are added or missing explicitly. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++ | That's another error diff line. The actual output misses the "...". The actual output contains an additional colon and two spaces. There's a mismatch of the lines contents. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++ | Another error diff line. The actual output misses 6 space characters, because it added 6 other: ='big' (indicated by the + symbols underneath). |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â | This is another error diff snippet. The lines are in the actual output, but not in the expected one. This is indicated by the + characters prepending the lines. There is no matching lines prepended with -, which means the lines were only added, not somehow changed, comparing to the expected output. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
tests/test_inspect.py:252: AssertionError | This line contains the failed test file path (tests/test_inspect.py), the line on which error happened (252) and the type of error: AssertionError |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
_______________ test_inspect_integer_with_methods_python310only ________________
@skip_py38
@skip_py39
@skip_py311
@skip_py312
@skip_py313
def test_inspect_integer_with_methods_python310only():
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_count = def bit_count(): Number of â\n"
"â ones in the binary â\n"
"â representation of the â\n"
"â absolute value of self. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder, *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length, â\n"
"â byteorder, *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(1, methods=True) == expected
E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^
E + â whose ratio is equal to the â
E + â original int. â
E â bit_count = def bit_count(): Number of â
E â ones in the binary â
E â representation of the â
E â absolute value of self. â
E â bit_length = def bit_length(): Number of â
E â bits necessary to represent â
E â self in binary. â
E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++
E â self, the complex conjugate â
E â of any int. â
E â from_bytes = def from_bytes(bytes, â
E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++
E â signed=False): Return the â
E â integer represented by the â
E â given array of bytes. â
E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â
E - â to_bytes = def to_bytes(length, â
E ? --
E + â to_bytes = def to_bytes(length=1, â
E ? ++
E - â byteorder, *, â
E ? ------
E + â byteorder='big', *, â
E ? ++++++
E â signed=False): Return an â
E â array of bytes representing â
E â an integer. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:294: AssertionError | test_inspect_integer_with_methods_python310only is another test that failed with AssertionError because the expected output didn't match the actual one, and the test shows the diff where this happened. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
_________________ test_inspect_integer_with_methods_python311 __________________
@skip_py38
@skip_py39
@skip_py310
@skip_py312
@skip_py313
def test_inspect_integer_with_methods_python311():
# to_bytes and from_bytes methods on int had minor signature change -
# they now, as of 3.11, have default values for all of their parameters
expected = (
"âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\n"
"â int([x]) -> integer â\n"
"â int(x, base=10) -> integer â\n"
"â â\n"
"â denominator = 1 â\n"
"â imag = 0 â\n"
"â numerator = 1 â\n"
"â real = 1 â\n"
"â as_integer_ratio = def as_integer_ratio(): â\n"
"â Return integer ratio. â\n"
"â bit_count = def bit_count(): Number of â\n"
"â ones in the binary â\n"
"â representation of the â\n"
"â absolute value of self. â\n"
"â bit_length = def bit_length(): Number of â\n"
"â bits necessary to represent â\n"
"â self in binary. â\n"
"â conjugate = def conjugate(...) Returns â\n"
"â self, the complex conjugate â\n"
"â of any int. â\n"
"â from_bytes = def from_bytes(bytes, â\n"
"â byteorder='big', *, â\n"
"â signed=False): Return the â\n"
"â integer represented by the â\n"
"â given array of bytes. â\n"
"â to_bytes = def to_bytes(length=1, â\n"
"â byteorder='big', *, â\n"
"â signed=False): Return an â\n"
"â array of bytes representing â\n"
"â an integer. â\n"
"â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
)
> assert render(1, methods=True) == expected
E assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
E
E âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
E â int([x]) -> integer â
E â int(x, base=10) -> integer â
E â â
E â denominator = 1 â
E â imag = 0 â
E â numerator = 1 â
E â real = 1 â
E â as_integer_ratio = def as_integer_ratio(): â
E - â Return integer ratio. â
E ? ^^^^^^^^^^^^
E + â Return a pair of integers, â
E ? ++++++++++ ^^
E + â whose ratio is equal to the â
E + â original int. â
E â bit_count = def bit_count(): Number of â
E â ones in the binary â
E â representation of the â
E â absolute value of self. â
E â bit_length = def bit_length(): Number of â
E â bits necessary to represent â
E â self in binary. â
E - â conjugate = def conjugate(...) Returns â
E ? ---
E + â conjugate = def conjugate(): Returns â
E ? + ++
E â self, the complex conjugate â
E â of any int. â
E â from_bytes = def from_bytes(bytes, â
E â byteorder='big', *, â
E â signed=False): Return the â
E â integer represented by the â
E â given array of bytes. â
E + â is_integer = def is_integer(): Returns â
E + â True. Exists for duck type â
E + â compatibility with â
E + â float.is_integer. â
E â to_bytes = def to_bytes(length=1, â
E â byteorder='big', *, â
E â signed=False): Return an â
E â array of bytes representing â
E â an integer. â
E â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
tests/test_inspect.py:338: AssertionError | test_inspect_integer_with_methods_python311 is another test that failed with AssertionError because the expected output didn't match the actual one, and the test shows the diff where this happened. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
_______________________________ test_inline_code _______________________________
def test_inline_code():
markdown = Markdown(
"inline `import this` code",
inline_code_lexer="python",
inline_code_theme="emacs",
)
result = render(markdown)
expected = "inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n"
print(result)
print(repr(result))
> assert result == expected
E AssertionError: assert 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n' == 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n'
E
E - inline import this code
E ? ^^^^^^^^^^^^^^^^^^^^^^^
E + inline import this code
E ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_markdown.py:116: AssertionError | test_inline_code failed with AssertionError because of a differing number of whitespace characters behind the import line (there are 6 more). This test doesn't contain any decorators telling to skip the test with any Python version. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
______________________________ test_attrs_broken _______________________________
@skip_py310
@skip_py311
@skip_py312
@skip_py313
def test_attrs_broken() -> None:
@attr.define
class Foo:
bar: int
foo = Foo(1)
del foo.bar
result = pretty_repr(foo)
print(repr(result))
expected = "Foo(bar=AttributeError('bar'))"
> assert result == expected
E assert 'Foo(\n bar=AttributeError("\'tests.test_pretty.test_attrs_broken.<locals>.Foo\' object has no attribute \'bar\'")\n)' == "Foo(bar=AttributeError('bar'))"
E
E - Foo(bar=AttributeError('bar'))
E + Foo(
E + bar=AttributeError("'tests.test_pretty.test_attrs_broken.<locals>.Foo' object has no attribute 'bar'")
E + )
tests/test_pretty.py:652: AssertionError | test_attrs_broken fails with AssertionError because the actual result doesn't match the expected one. The test is skipped on pythons 3.10, 3.11, 3.12, 3.13. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
_______________________________ test_blank_lines _______________________________
def test_blank_lines():
code = "\n\nimport this\n\n"
syntax = Syntax(
code, lexer="python", theme="ascii_light", code_width=30, line_numbers=True
)
result = render(syntax)
print(repr(result))
> assert (
result
== "\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n"
)
E AssertionError: assert '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n' == '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n'
E
E 1
E 2
E - 3 import this
E ? ^^^^^^^^^^^^^^^^^^^^^^^
E + 3 import this
E ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E 4
E 5
| This test fails with AssertionError because the expected output mismatches the actual one. The actual output contains 6 more whitespace characters. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
___________________ test_python_render_simple_indent_guides ____________________
@pytest.mark.skipif(OLD_PYGMENTS, reason="Pygments changed their tokenizer")
def test_python_render_simple_indent_guides():
syntax = Syntax(
CODE,
lexer="python",
line_numbers=False,
theme="ansi_light",
code_width=60,
word_wrap=False,
indent_guides=True,
)
rendered_syntax = render(syntax)
print(repr(rendered_syntax))
expected = '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
> assert rendered_syntax == expected
E assert '\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n' == '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
E
E - def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
E ? ^
E + def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
E ? ^^^^^^^^^^
E â """Iterate and generate a tuple with a flag for first an
E â iter_values = iter(values)
E â try:
E â â previous_value = next(iter_values)
E â except StopIteration:
E â â return
E â first = True
E â for value in iter_values:
E â â yield first, False, previous_value
E â â first = False
E â â previous_value = value
E â yield first, True, previous_value
tests/test_syntax.py:123: AssertionError | test_python_render_simple_indent_guides is intended to be skipped with OLD_PYGMENTS, which means if the version of pygments library is old, it should be skipped. The test ran, so the version of pygments that's available in buildroot is new enough. The rendered error lines don't show it clearly, but there is a mismatch in the output, visible on the first error line (starting with E assert...). Rendered result starts like that: "\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T])", the expected one "\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T])". There is a space character in the expected syntax that was not in the rendered ouput. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
=========================== short test summary info ============================
FAILED tests/test_inspect.py::test_inspect_builtin_function_except_python311 - assert "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(*args, sep=' ', end='\\n', file=None, â\nâ flush=False): â\nâ â\nâ Prints the values to a stream, or to â\nâ sys.stdout by default. â\nâ â\nâ 30 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââ <built-in function print> ââââââââââââ®\nâ def print(...) â\nâ â\nâ print(value, ..., sep=' ', end='\\n', â\nâ file=sys.stdout, flush=False) â\nâ â\nâ 29 attribute(s) not shown. Run â\nâ inspect(inspect) for options. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââ <built-in function print> ââââââââââââ®
+ â def print(*args, sep=' ', end='\n', file=None, â
- â def print(...) â
? ^ -----------
+ â flush=False): â
? ^^^^^^^^^^ ++
â â
- â print(value, ..., sep=' ', end='\n', â
- â file=sys.stdout, flush=False) â
+ â Prints the values to a stream, or to â
+ â sys.stdout by default. â
â â
- â 29 attribute(s) not shown. Run â
? ^^
+ â 30 attribute(s) not shown. Run â
? ^^
â inspect(inspect) for options. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python38_and_python39 - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
+ â bit_count = def bit_count(): Number of â
+ â ones in the binary â
+ â representation of the â
+ â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
- â to_bytes = def to_bytes(length, â
? --
+ â to_bytes = def to_bytes(length=1, â
? ++
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python310only - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder, *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length, â\nâ byteorder, *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
â bit_count = def bit_count(): Number of â
â ones in the binary â
â representation of the â
â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
- â to_bytes = def to_bytes(length, â
? --
+ â to_bytes = def to_bytes(length=1, â
? ++
- â byteorder, *, â
? ------
+ â byteorder='big', *, â
? ++++++
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python311 - assert "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return a pair of integers, â\nâ whose ratio is equal to the â\nâ original int. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(): Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ is_integer = def is_integer(): Returns â\nâ True. Exists for duck type â\nâ compatibility with â\nâ float.is_integer. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n" == "âââââââââââââââââ <class 'int'> ââââââââââââââââââ®\nâ int([x]) -> integer â\nâ int(x, base=10) -> integer â\nâ â\nâ denominator = 1 â\nâ imag = 0 â\nâ numerator = 1 â\nâ real = 1 â\nâ as_integer_ratio = def as_integer_ratio(): â\nâ Return integer ratio. â\nâ bit_count = def bit_count(): Number of â\nâ ones in the binary â\nâ representation of the â\nâ absolute value of self. â\nâ bit_length = def bit_length(): Number of â\nâ bits necessary to represent â\nâ self in binary. â\nâ conjugate = def conjugate(...) Returns â\nâ self, the complex conjugate â\nâ of any int. â\nâ from_bytes = def from_bytes(bytes, â\nâ byteorder='big', *, â\nâ signed=False): Return the â\nâ integer represented by the â\nâ given array of bytes. â\nâ to_bytes = def to_bytes(length=1, â\nâ byteorder='big', *, â\nâ signed=False): Return an â\nâ array of bytes representing â\nâ an integer. â\nâ°âââââââââââââââââââââââââââââââââââââââââââââââââ¯\n"
âââââââââââââââââ <class 'int'> ââââââââââââââââââ®
â int([x]) -> integer â
â int(x, base=10) -> integer â
â â
â denominator = 1 â
â imag = 0 â
â numerator = 1 â
â real = 1 â
â as_integer_ratio = def as_integer_ratio(): â
- â Return integer ratio. â
? ^^^^^^^^^^^^
+ â Return a pair of integers, â
? ++++++++++ ^^
+ â whose ratio is equal to the â
+ â original int. â
â bit_count = def bit_count(): Number of â
â ones in the binary â
â representation of the â
â absolute value of self. â
â bit_length = def bit_length(): Number of â
â bits necessary to represent â
â self in binary. â
- â conjugate = def conjugate(...) Returns â
? ---
+ â conjugate = def conjugate(): Returns â
? + ++
â self, the complex conjugate â
â of any int. â
â from_bytes = def from_bytes(bytes, â
â byteorder='big', *, â
â signed=False): Return the â
â integer represented by the â
â given array of bytes. â
+ â is_integer = def is_integer(): Returns â
+ â True. Exists for duck type â
+ â compatibility with â
+ â float.is_integer. â
â to_bytes = def to_bytes(length=1, â
â byteorder='big', *, â
â signed=False): Return an â
â array of bytes representing â
â an integer. â
â°âââââââââââââââââââââââââââââââââââââââââââââââââ¯
FAILED tests/test_markdown.py::test_inline_code - AssertionError: assert 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n' == 'inline \x1b[1;38;2;170;34;255;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m code \n'
- inline import this code
? ^^^^^^^^^^^^^^^^^^^^^^^
+ inline import this code
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FAILED tests/test_pretty.py::test_attrs_broken - assert 'Foo(\n bar=AttributeError("\'tests.test_pretty.test_attrs_broken.<locals>.Foo\' object has no attribute \'bar\'")\n)' == "Foo(bar=AttributeError('bar'))"
- Foo(bar=AttributeError('bar'))
+ Foo(
+ bar=AttributeError("'tests.test_pretty.test_attrs_broken.<locals>.Foo' object has no attribute 'bar'")
+ )
FAILED tests/test_syntax.py::test_blank_lines - AssertionError: assert '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;187;187;187;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n' == '\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m1 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m2 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m3 \x1b[0m\x1b[1;38;2;0;128;0;48;2;248;248;248mimport\x1b[0m\x1b[38;2;0;0;0;48;2;248;248;248m \x1b[0m\x1b[1;38;2;0;0;255;48;2;248;248;248mthis\x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m4 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n\x1b[1;38;2;24;24;24;48;2;248;248;248m \x1b[0m\x1b[38;2;173;173;173;48;2;248;248;248m5 \x1b[0m\x1b[48;2;248;248;248m \x1b[0m\n'
1
2
- 3 import this
? ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 import this
? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4
5
FAILED tests/test_syntax.py::test_python_render_simple_indent_guides - assert '\x1b[34mdef\x1b[0m\x1b[37m \x1b[0m\x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n' == '\x1b[34mdef\x1b[0m \x1b[32mloop_first_last\x1b[0m(values: Iterable[T]) -> Iterable[Tuple[\x1b[36mb\x1b[0m\n\x1b[2;37mâ \x1b[0m\x1b[33m"""Iterate and generate a tuple with a flag for first an\x1b[0m\n\x1b[2mâ \x1b[0miter_values = \x1b[36miter\x1b[0m(values)\n\x1b[2mâ \x1b[0m\x1b[34mtry\x1b[0m:\n\x1b[2mâ â \x1b[0mprevious_value = \x1b[36mnext\x1b[0m(iter_values)\n\x1b[2mâ \x1b[0m\x1b[34mexcept\x1b[0m \x1b[36mStopIteration\x1b[0m:\n\x1b[2mâ â \x1b[0m\x1b[34mreturn\x1b[0m\n\x1b[2mâ \x1b[0mfirst = \x1b[34mTrue\x1b[0m\n\x1b[2mâ \x1b[0m\x1b[34mfor\x1b[0m value \x1b[35min\x1b[0m iter_values:\n\x1b[2mâ â \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mFalse\x1b[0m, previous_value\n\x1b[2mâ â \x1b[0mfirst = \x1b[34mFalse\x1b[0m\n\x1b[2mâ â \x1b[0mprevious_value = value\n\x1b[2mâ \x1b[0m\x1b[34myield\x1b[0m first, \x1b[34mTrue\x1b[0m, previous_value\n'
- def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
? ^
+ def loop_first_last(values: Iterable[T]) -> Iterable[Tuple[b
? ^^^^^^^^^^
â """Iterate and generate a tuple with a flag for first an
â iter_values = iter(values)
â try:
â â previous_value = next(iter_values)
â except StopIteration:
â â return
â first = True
â for value in iter_values:
â â yield first, False, previous_value
â â first = False
â â previous_value = value
â yield first, True, previous_value | Once again, all failed tests are summarized with only the error lines. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
=========== 8 failed, 847 passed, 20 skipped, 1 deselected in 4.63s ============ | 8 tests of the package test suite failed. The build failed because the test run was not successful. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
error: Bad exit status from /var/tmp/rpm-tmp.NbLFbP (%check) | Tests are the part of the %check section of the rpm build. The tests failed, ergo the %check section was the one where the build failure happened. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
INFO: Cleaning up build root ('cleanup_on_failure=True') | The last indicator of the failed build ('cleanup_on_failure=True') |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[ERROR - ModuleNotFoundError: No module named 'click'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!]: [Error while starting the test suite. Python couldn't import the click module.]
| Issue: The build failed at the check stage while running the test suite for the package. The test suite requires the Python package click which was not found.
Resolution: To add a missing dependency for a package, directive Requires or BuildRequires can be used. Since this dependency is only required by the test suite, BuildRequires is the right choice because it installs the dependency only on the build machine, not when the package is installed by the user. Add spec directive BuildRequires into the spec file preamble with a package name that provides the Python package click. In Fedora, this would be `BuildRequires: python-click`. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ERROR - ModuleNotFoundError: No module named 'click'
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! | Error while starting the test suite. Python couldn't import the click module. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[
No matching package to install: 'python3-dnf >= 4.19.]: [Required package python3-dnf is not available in any enabled repository.
]
| Issue: Some of the required packages were not installed.
Resolution: Enable a repo with python3-dnf package or download and install the package manually.
|
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
No matching package to install: 'python3-dnf >= 4.19. | Required package python3-dnf is not available in any enabled repository.
|
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[# Failed test 'An object of class 'Type::Tiny::Union' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/basic.t line 40.
# The object of class 'Type::Tiny::Union' isn't a 'Moose::Meta::TypeConstraint'
# Looks like you failed 1 test of 24.
t/30-external/MooseX-Types/basic.t ...........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/24 subtests
t/30-external/MooseX-Types/extending.t ....................... ok
# Failed test ''Not' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# 'Not' isn't a 'Moose::Meta::TypeConstraint'
# Failed test ''~Int' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# '~Int' isn't a 'Moose::Meta::TypeConstraint'
# Failed test ''Int' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# 'Int' isn't a 'Moose::Meta::TypeConstraint'
# Looks like you failed 3 tests of 20.
t/30-external/MooseX-Types/more.t ............................
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/20 subtests ]: [t/30-external/MooseX-Types/basic.t and t/30-external/MooseX-Types/more.t tests of Type-Tiny-2.006000 failed their subtests related to Moose::Meta::TypeConstraint Perl class.]
| Issue: MooseX-Types-0.51 moved from Sub::Name to Sub::Util module. That broke a way how Type::Tiny detected a use of Moose.
Resolution: Rebase Type-Tiny to a new 2.008002 upstream release which fixes the detection of Moose. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
# Failed test 'An object of class 'Type::Tiny::Union' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/basic.t line 40.
# The object of class 'Type::Tiny::Union' isn't a 'Moose::Meta::TypeConstraint'
# Looks like you failed 1 test of 24.
t/30-external/MooseX-Types/basic.t ...........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/24 subtests
t/30-external/MooseX-Types/extending.t ....................... ok
# Failed test ''Not' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# 'Not' isn't a 'Moose::Meta::TypeConstraint'
# Failed test ''~Int' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# '~Int' isn't a 'Moose::Meta::TypeConstraint'
# Failed test ''Int' isa 'Moose::Meta::TypeConstraint''
# at t/30-external/MooseX-Types/more.t line 52.
# 'Int' isn't a 'Moose::Meta::TypeConstraint'
# Looks like you failed 3 tests of 20.
t/30-external/MooseX-Types/more.t ............................
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/20 subtests | t/30-external/MooseX-Types/basic.t and t/30-external/MooseX-Types/more.t tests of Type-Tiny-2.006000 failed their subtests related to Moose::Meta::TypeConstraint Perl class. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[:: [ 07:54:07 ] :: [ FAIL ] :: File 'show-bgp-neighbors.log' should contain 'BGP state = Idle'
]: [Checking the state of BGP failed.]
| Issue: BGP state was not identified as "Idle".
Resolution: In this use case, also the "Active" is the correct one, so it can be either "Idle" or "Active" |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
:: [ 07:54:07 ] :: [ FAIL ] :: File 'show-bgp-neighbors.log' should contain 'BGP state = Idle'
| Checking the state of BGP failed. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[+ /usr/libexec/gpgverify --keyring=/builddir/build/SOURCES/socket_wrapper.keyring --signature=/builddir/build/SOURCES/socket_wrapper-1.5.0.tar.gz.asc --data=/builddir/build/SOURCES/socket_wrapper-1.5.0.tar.gz
gpgv: Signature made Tue May 6 08:09:40 2025 UTC
gpgv: using RSA key 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
gpgv: BAD signature from "Andreas Schneider <[email protected]>"
gpgverify: Signature verification failed.]: [The gpgv signature verification failed for the socket_wrapper-1.5.0.tar.gz.asc file.]
| Issue: The gpg signature failed to be verified, either it was signed incorrectly or the file was uploaded incorrectly.
Resolution: Make sure the socket_wrapper-1.5.0.tar.gz.asc file has the correct signature before uploading it and that it is the file that you wanted to upload. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
+ /usr/libexec/gpgverify --keyring=/builddir/build/SOURCES/socket_wrapper.keyring --signature=/builddir/build/SOURCES/socket_wrapper-1.5.0.tar.gz.asc --data=/builddir/build/SOURCES/socket_wrapper-1.5.0.tar.gz
gpgv: Signature made Tue May 6 08:09:40 2025 UTC
gpgv: using RSA key 8DFF53E18F2ABC8D8F3C92237EE0FC4DCC014E3D
gpgv: BAD signature from "Andreas Schneider <[email protected]>"
gpgverify: Signature verification failed. | The gpgv signature verification failed for the socket_wrapper-1.5.0.tar.gz.asc file. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CMCiRx]: [The rpmbuild actually started, meaning that all the BuildRequires are installed.]
=============
[99% tests passed, 2 tests failed out of 692]: [Cmake testsuite claims that 2 tests failed out of 692.]
| Issue: The package testsuite failed.
Resolution: Check the failed test-cases, and fix them. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CMCiRx | The rpmbuild actually started, meaning that all the BuildRequires are installed. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
99% tests passed, 2 tests failed out of 692 | Cmake testsuite claims that 2 tests failed out of 692. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[flist.c: In function ‘recv_file_list’:
flist.c:2787:55: warning: cast between incompatible function types from ‘int (*)(struct file_struct **, struct file_struct **)’ to ‘int (*)(void)’ [-Wcast-function-type]
2787 | sizeof the_fattr_list.files[0], (int (*)())fattr_compare);
| ^
flist.c:2787:55: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
2787 | sizeof the_fattr_list.files[0], (int (*)())fattr_compare);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void)]: [The snippet shows current code that started to fail with the new GCC15 in Rawhide.]
| Issue: Partially defined int prototype int(*)() are now int (*)(void) and these need to be explicitly defined.
Resolution: In this particular case, the function needs to be used like this: sizeof the_fattr_list.files[0], (int (*)(const void *, const void *))fattr_compare); |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
flist.c: In function ‘recv_file_list’:
flist.c:2787:55: warning: cast between incompatible function types from ‘int (*)(struct file_struct **, struct file_struct **)’ to ‘int (*)(void)’ [-Wcast-function-type]
2787 | sizeof the_fattr_list.files[0], (int (*)())fattr_compare);
| ^
flist.c:2787:55: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
2787 | sizeof the_fattr_list.files[0], (int (*)())fattr_compare);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void) | The snippet shows current code that started to fail with the new GCC15 in Rawhide. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[DEBUG util.py:461: 2024-03-14 10:02:14,937: Non interactive installation failed: Some packages, groups or modules are missing.
DEBUG util.py:461: 2024-03-14 10:02:14,938:
DEBUG util.py:461: 2024-03-14 10:02:14,938: Problems in request:
DEBUG util.py:461: 2024-03-14 10:02:14,938: missing packages: mrpt-devel. ]: [The error message is descriptive]
| Issue: The build failed because it expected a user input for installation of missing package
Resolution: Fix the kickstart file to update the missing item to be installed without user interaction. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
DEBUG util.py:461: 2024-03-14 10:02:14,937: Non interactive installation failed: Some packages, groups or modules are missing.
DEBUG util.py:461: 2024-03-14 10:02:14,938:
DEBUG util.py:461: 2024-03-14 10:02:14,938: Problems in request:
DEBUG util.py:461: 2024-03-14 10:02:14,938: missing packages: mrpt-devel. | The error message is descriptive |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[error: Installed (but unpackaged) file(s) found:
/usr/include/offload/OffloadAPI.h
/usr/include/offload/OffloadPrint.hpp
/usr/lib/debug/usr/lib64/libLLVMOffload.so.20.0pre20241206.g1a896049018254-20.0.0~pre20241206.g1a896049018254-1.fc40.aarch64.debug
/usr/lib64/libLLVMOffload.so
/usr/lib64/libLLVMOffload.so.20.0pre20241206.g1a896049018254]: [Multiple files were installed without being properly packaged.]
=============
[ERROR: Command failed:
# /usr/bin/systemd-nspawn -q -M cac224eb299c4915b55fa38e88e01f49 -D /var/lib/mock/fedora-40-aarch64-1733451703.194948/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.kr97w98o:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/originals/llvm.spec']: [Final error, the build command itself failed. This is not helpful for diagnosis of the root cause.]
| Issue: Some files were not properly packaged, but they were still installed, this is unacceptable for multiple security reasons.
Resolution: Ensure that all files installed by the package are tracked in the spec file. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
error: Installed (but unpackaged) file(s) found:
/usr/include/offload/OffloadAPI.h
/usr/include/offload/OffloadPrint.hpp
/usr/lib/debug/usr/lib64/libLLVMOffload.so.20.0pre20241206.g1a896049018254-20.0.0~pre20241206.g1a896049018254-1.fc40.aarch64.debug
/usr/lib64/libLLVMOffload.so
/usr/lib64/libLLVMOffload.so.20.0pre20241206.g1a896049018254 | Multiple files were installed without being properly packaged. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ERROR: Command failed:
# /usr/bin/systemd-nspawn -q -M cac224eb299c4915b55fa38e88e01f49 -D /var/lib/mock/fedora-40-aarch64-1733451703.194948/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.kr97w98o:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/originals/llvm.spec' | Final error, the build command itself failed. This is not helpful for diagnosis of the root cause. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[ File "/builddir/build/BUILD/python-twisted-24.11.0-build/twisted-twisted-24.11.0/src/twisted/conch/test/test_cftp.py", line 212, in ListingTests
locale.setlocale(locale.LC_ALL, currentLocale)
File "/usr/lib64/python3.13/locale.py", line 615, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting]: [Test is trying to set a locale to a `locale.LC_ALL`, but that locale setting that is attempted is not supported in the default mock environment.]
=============
[--setenv=LANG=C.UTF-8]: [Default LANG used also for locale is set to C.UTF-8 which is less featureful than a specific language UTF-8.]
| Issue: Python test of name "twisted.conch.test.test_cftp" in %check failed with "locale.Error: unsupported locale setting" when trying to set "locale.LC_ALL" for the locale.
Resolution: Add `export LC_ALL=en_US.UTF-8` before tests execution to force UTF-8 locale for LC_ALL. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
File "/builddir/build/BUILD/python-twisted-24.11.0-build/twisted-twisted-24.11.0/src/twisted/conch/test/test_cftp.py", line 212, in ListingTests
locale.setlocale(locale.LC_ALL, currentLocale)
File "/usr/lib64/python3.13/locale.py", line 615, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting | Test is trying to set a locale to a `locale.LC_ALL`, but that locale setting that is attempted is not supported in the default mock environment. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
--setenv=LANG=C.UTF-8 | Default LANG used also for locale is set to C.UTF-8 which is less featureful than a specific language UTF-8. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[error: Bad file: /builddir/build/SOURCES/fping-a3f4c573bfd1ddfc71d2fa672f51c41047473a53.tar.gz: No such file or directory
Bad file: /builddir/build/SOURCES/fping-a3f4c573bfd1ddfc71d2fa672f51c41047473a53.tar.gz: No such file or directory]: [The RPM source cannot be found.]
| Issue: The source you defined in your RPM spec file (likely as a Source0) cannot be located.
Resolution: Fix the name of the source you defined in your spec file to match the actual source archive. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
error: Bad file: /builddir/build/SOURCES/fping-a3f4c573bfd1ddfc71d2fa672f51c41047473a53.tar.gz: No such file or directory
Bad file: /builddir/build/SOURCES/fping-a3f4c573bfd1ddfc71d2fa672f51c41047473a53.tar.gz: No such file or directory | The RPM source cannot be found. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[process_iterator_linux.c:114:36: warning: â/statâ directive writing 5 bytes into a region of size between 4 and 13 [-Wformat-overflow=]
114 | sprintf(statfile, "/proc/%d/stat", pid);
| ^~~~~]: [Compiler warning, stating that a directive is performing write into region with possible overflows. The function `sprintf` is being used in an unsafe manner. ]
=============
[In function âsprintfâ,
inlined from âgetppid_ofâ at process_iterator_linux.c:114:2:
/usr/include/bits/stdio2.h:30:10: note: â__sprintf_chkâ output between 13 and 22 bytes into a destination of size 20
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~]: [Compiler warning, stating that the output of `__sprintf_chk` is written into destination of which may be too small to contain it. This could be cause of security issues and runtime errors.]
=============
[busy.c:20:58: error: passing argument 3 of âpthread_createâ from incompatible pointer type [-Wincompatible-pointer-types]
20 | if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0)
| ^~~~
| |
| void * (*)(void)]: [Compiler error, stating that the third argument passed to the `pthread_create` function has an incompatible pointer type. ]
| Issue: Apart from several warnings, which while cause for concern have not caused the build to fail, there has been an issue with third argument passed to the `pthread_create` function.
The argument has a wrong pointer type, causing compile time error.
Resolution: Inspect your code and ensure that all arguments passed to `pthread_create` and other functions in your codebase are of correct type.
Also, if possible, attempt to resolve all warnings produced by the compiler. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
process_iterator_linux.c:114:36: warning: â/statâ directive writing 5 bytes into a region of size between 4 and 13 [-Wformat-overflow=]
114 | sprintf(statfile, "/proc/%d/stat", pid);
| ^~~~~ | Compiler warning, stating that a directive is performing write into region with possible overflows. The function `sprintf` is being used in an unsafe manner. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
In function âsprintfâ,
inlined from âgetppid_ofâ at process_iterator_linux.c:114:2:
/usr/include/bits/stdio2.h:30:10: note: â__sprintf_chkâ output between 13 and 22 bytes into a destination of size 20
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~ | Compiler warning, stating that the output of `__sprintf_chk` is written into destination of which may be too small to contain it. This could be cause of security issues and runtime errors. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
busy.c:20:58: error: passing argument 3 of âpthread_createâ from incompatible pointer type [-Wincompatible-pointer-types]
20 | if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0)
| ^~~~
| |
| void * (*)(void) | Compiler error, stating that the third argument passed to the `pthread_create` function has an incompatible pointer type. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[
ok 70 - empty author ident
# failed 1 among 70 test(]: [Sanity check result which failed.]
=============
[
not ok 41 - --analyze
#
# setup_analyze_me &&
# (
# cd analyze_me &&
#
# git filter-repo --analyze &&
#
# # It should not work again without a --force
# test_must_fail git filter-repo --analyze &&
#
# # With a --force, another run should succeed
# git filter-repo --analyze --force &&
#
# test -d .git/filter-repo/analysis &&
# cd .git/filter-repo/analysis &&
#
# cat >expect <<-EOF &&
# fickle ->
# capricious
# mercurial
# words/to ->
# sequence/to
# EOF
# test_cmp expect renames.txt &&
#
# cat >expect <<-EOF &&
# == Overall Statistics ==
# Number of commits: 12
# Number of filenames: 10
# Number of directories: 4
# Number of file extensions: 2
#
# Total unpacked size (bytes): 206
# Total packed size (bytes): 389
#
# EOF
# head -n 9 README >actual &&
# test_cmp expect actual &&
#
# cat >expect <<-\EOF &&
# === Files by sha and associated pathnames in reverse size ===
# Format: sha, unpacked size, packed size, filename(s) object stored as
# a89c82a2d4b713a125a4323d25adda062cc0013d 44 50 numbers/medium.num
# c58ae2ffaf8352bd9860bf4bbb6ea78238dca846 35 41 fickle
# ccff62141ec7bae42e01a3dcb7615b38aa9fa5b3 24 40 fickle
# f00c965d8307308469e537302baa73048488f162 21 37 numbers/small.num
# 2aa69a2a708eed00cb390e30f6bcc3eed773f390 20 36 whatever
# 51b95456de9274c9a95f756742808dfd480b9b35 13 29 [capricious, fickle, mercurial]
# 732c85a1b3d7ce40ec8f78fd9ffea32e9f45fae0 5 20 [sequence/know, words/know]
# 34b6a0c9d02cb6ef7f409f248c0c1224ce9dd373 5 20 [sequence/to, words/to]
# 7ecb56eb3fa3fa6f19dd48bca9f971950b119ede 3 18 words/know
# EOF
# test_cmp expect blob-shas-and-paths.txt &&
#
# cat >expect <<-EOF &&
# === All directories by reverse size ===
# Format: unpacked size, packed size, date deleted, directory name
# 206 389 <present> <toplevel>
# 65 87 2005-04-07 numbers
# 13 58 <present> words
# 10 40 <present> sequence
# EOF
# test_cmp expect directories-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted directories by reverse size ===
# Format: unpacked size, packed size, date deleted, directory name
# 65 87 2005-04-07 numbers
# EOF
# test_cmp expect directories-deleted-sizes.txt &&
#
# cat >expect <<-EOF &&
# === All extensions by reverse size ===
# Format: unpacked size, packed size, date deleted, extension name
# 141 302 <present> <no extension>
# 65 87 2005-04-07 .num
# EOF
# test_cmp expect extensions-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted extensions by reverse size ===
# Format: unpacked size, packed size, date deleted, extension name
# 65 87 2005-04-07 .num
# EOF
# test_cmp expect extensions-deleted-sizes.txt &&
#
# cat >expect <<-EOF &&
# === All paths by reverse accumulated size ===
# Format: unpacked size, packed size, date deleted, path name
# 72 110 <present> fickle
# 44 50 2005-04-07 numbers/medium.num
# 8 38 <present> words/know
# 21 37 2005-04-07 numbers/small.num
# 20 36 <present> whatever
# 13 29 <present> mercurial
# 13 29 <present> capricious
# 5 20 <present> words/to
# 5 20 <present> sequence/to
# 5 20 <present> sequence/know
# EOF
# test_cmp expect path-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted paths by reverse accumulated size ===
# Format: unpacked size, packed size, date deleted, path name(s)
# 44 50 2005-04-07 numbers/medium.num
# 21 37 2005-04-07 numbers/small.num
# EOF
# test_cmp expect path-deleted-sizes.txt
# )
]: [A test that failed and the exact output from the text.]
=============
[
error: Bad exit status from /var/tmp/rpm-tmp.ctMmng (%chec]: [It shows the reason of the failure.]
=============
[
ERROR: Command failed:
# /usr/bin/systemd-nspawn -q -M 9a503df6385d4901b87ed890f278e3d5 -D /var/lib/mock/fedora-39-x86_64-1710410160.968367/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.pyot_dqy:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/originals/git-filter-repo.spec]: [It shows that a specific command "systemd-nspawn" failed.]
| Issue: It seems that some of the sanity checks did not completed successfully.
Resolution: Fix the errors reported by the sanity checks. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ok 70 - empty author ident
# failed 1 among 70 test( | Sanity check result which failed. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
not ok 41 - --analyze
#
# setup_analyze_me &&
# (
# cd analyze_me &&
#
# git filter-repo --analyze &&
#
# # It should not work again without a --force
# test_must_fail git filter-repo --analyze &&
#
# # With a --force, another run should succeed
# git filter-repo --analyze --force &&
#
# test -d .git/filter-repo/analysis &&
# cd .git/filter-repo/analysis &&
#
# cat >expect <<-EOF &&
# fickle ->
# capricious
# mercurial
# words/to ->
# sequence/to
# EOF
# test_cmp expect renames.txt &&
#
# cat >expect <<-EOF &&
# == Overall Statistics ==
# Number of commits: 12
# Number of filenames: 10
# Number of directories: 4
# Number of file extensions: 2
#
# Total unpacked size (bytes): 206
# Total packed size (bytes): 389
#
# EOF
# head -n 9 README >actual &&
# test_cmp expect actual &&
#
# cat >expect <<-\EOF &&
# === Files by sha and associated pathnames in reverse size ===
# Format: sha, unpacked size, packed size, filename(s) object stored as
# a89c82a2d4b713a125a4323d25adda062cc0013d 44 50 numbers/medium.num
# c58ae2ffaf8352bd9860bf4bbb6ea78238dca846 35 41 fickle
# ccff62141ec7bae42e01a3dcb7615b38aa9fa5b3 24 40 fickle
# f00c965d8307308469e537302baa73048488f162 21 37 numbers/small.num
# 2aa69a2a708eed00cb390e30f6bcc3eed773f390 20 36 whatever
# 51b95456de9274c9a95f756742808dfd480b9b35 13 29 [capricious, fickle, mercurial]
# 732c85a1b3d7ce40ec8f78fd9ffea32e9f45fae0 5 20 [sequence/know, words/know]
# 34b6a0c9d02cb6ef7f409f248c0c1224ce9dd373 5 20 [sequence/to, words/to]
# 7ecb56eb3fa3fa6f19dd48bca9f971950b119ede 3 18 words/know
# EOF
# test_cmp expect blob-shas-and-paths.txt &&
#
# cat >expect <<-EOF &&
# === All directories by reverse size ===
# Format: unpacked size, packed size, date deleted, directory name
# 206 389 <present> <toplevel>
# 65 87 2005-04-07 numbers
# 13 58 <present> words
# 10 40 <present> sequence
# EOF
# test_cmp expect directories-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted directories by reverse size ===
# Format: unpacked size, packed size, date deleted, directory name
# 65 87 2005-04-07 numbers
# EOF
# test_cmp expect directories-deleted-sizes.txt &&
#
# cat >expect <<-EOF &&
# === All extensions by reverse size ===
# Format: unpacked size, packed size, date deleted, extension name
# 141 302 <present> <no extension>
# 65 87 2005-04-07 .num
# EOF
# test_cmp expect extensions-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted extensions by reverse size ===
# Format: unpacked size, packed size, date deleted, extension name
# 65 87 2005-04-07 .num
# EOF
# test_cmp expect extensions-deleted-sizes.txt &&
#
# cat >expect <<-EOF &&
# === All paths by reverse accumulated size ===
# Format: unpacked size, packed size, date deleted, path name
# 72 110 <present> fickle
# 44 50 2005-04-07 numbers/medium.num
# 8 38 <present> words/know
# 21 37 2005-04-07 numbers/small.num
# 20 36 <present> whatever
# 13 29 <present> mercurial
# 13 29 <present> capricious
# 5 20 <present> words/to
# 5 20 <present> sequence/to
# 5 20 <present> sequence/know
# EOF
# test_cmp expect path-all-sizes.txt &&
#
# cat >expect <<-EOF &&
# === Deleted paths by reverse accumulated size ===
# Format: unpacked size, packed size, date deleted, path name(s)
# 44 50 2005-04-07 numbers/medium.num
# 21 37 2005-04-07 numbers/small.num
# EOF
# test_cmp expect path-deleted-sizes.txt
# )
| A test that failed and the exact output from the text. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
error: Bad exit status from /var/tmp/rpm-tmp.ctMmng (%chec | It shows the reason of the failure. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ERROR: Command failed:
# /usr/bin/systemd-nspawn -q -M 9a503df6385d4901b87ed890f278e3d5 -D /var/lib/mock/fedora-39-x86_64-1710410160.968367/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.pyot_dqy:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/originals/git-filter-repo.spec | It shows that a specific command "systemd-nspawn" failed. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[Failed to resolve the transaction:
Package "coreutils-9.5-11.fc42.aarch64" is already installed.
Package "pkgconf-pkg-config-2.3.0-1.fc42.aarch64" is already installed.
Package "sed-4.9-3.fc41.aarch64" is already installed.
Problem: cannot install both gcc-15.0.0-0.2.fc42.aarch64 from https_dmalcolm_fedorapeople_org_gcc_gcc_15_mass_prebuild_arch and gcc-14.2.1-6.fc42.aarch64 from fedora
- package libtool-2.5.4-1.fc42.aarch64 from fedora requires gcc(major) = 14, but none of the providers can be installed
- cannot install the best candidate for the job
- conflicting requests
You can try to add to command line:
--no-best to not limit the transaction to the best candidates]: [This is a DNF error message. Requested package `gcc-15.0.0-0.2.fc42.aarch64` has a dependency on `gcc(major) = 14`, but that isn't available.]
| Issue: One of the required packages can not be installed due to missing second order dependency.
Resolution: Ensure that all direct, and indirect, dependencies are available before build. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Failed to resolve the transaction:
Package "coreutils-9.5-11.fc42.aarch64" is already installed.
Package "pkgconf-pkg-config-2.3.0-1.fc42.aarch64" is already installed.
Package "sed-4.9-3.fc41.aarch64" is already installed.
Problem: cannot install both gcc-15.0.0-0.2.fc42.aarch64 from https_dmalcolm_fedorapeople_org_gcc_gcc_15_mass_prebuild_arch and gcc-14.2.1-6.fc42.aarch64 from fedora
- package libtool-2.5.4-1.fc42.aarch64 from fedora requires gcc(major) = 14, but none of the providers can be installed
- cannot install the best candidate for the job
- conflicting requests
You can try to add to command line:
--no-best to not limit the transaction to the best candidates | This is a DNF error message. Requested package `gcc-15.0.0-0.2.fc42.aarch64` has a dependency on `gcc(major) = 14`, but that isn't available. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[No matching package to install: 'python3dist(pydantic) >= 2.9.2']: [Package `python3dist(pydantic) >= 2.9.2` is not present in know repositories.]
=============
[No matching package to install: 'python3dist(python-dotenv) >= 1.0.1']: [Package `python3dist(python-dotenv) >= 1.0.1` is not available in known repositories.]
=============
[Not all dependencies satisfied]: [Package manager indicates that some dependencies couldn't be retrieved.]
=============
[This system is not registered with an entitlement server. You can use subscription-manager to register.]: [Warning that system is not registered with Red Hat subscription. This is normal occurrence on temporary VMs which do not require full subscription for their purpose.]
| Issue: Two requested packages couldn't be found. Without all the dependencies, the package couldn't be build.
Resolution: Verify that both packages are present in installed repositories. Check spelling of package names and version constraints. Verify network connection between repository server and system you are building on. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
No matching package to install: 'python3dist(pydantic) >= 2.9.2' | Package `python3dist(pydantic) >= 2.9.2` is not present in know repositories. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
No matching package to install: 'python3dist(python-dotenv) >= 1.0.1' | Package `python3dist(python-dotenv) >= 1.0.1` is not available in known repositories. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Not all dependencies satisfied | Package manager indicates that some dependencies couldn't be retrieved. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
This system is not registered with an entitlement server. You can use subscription-manager to register. | Warning that system is not registered with Red Hat subscription. This is normal occurrence on temporary VMs which do not require full subscription for their purpose. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[ Problem: cannot install the best candidate for the job
- nothing provides qt5-qtbase(x86-64) = 5.15.11 needed by python3-qt5-base-5.15.10-4.fc38.x86_64 from copr_ba]: ["python3-qt5-base" dependency "qt5-qtbase v5.15.11" not met.]
=============
[
Finish: build setup for python-matplotlib-3.8.3-1.fc38.src.rpm
Finish: build phase for python-matplotlib-3.8.3-1.fc38.src.r]: [Although dependencies were not met, the build continued.]
| Issue: The build failed due to dependency issues.
Resolution: Either add another repository for the dependency to be found or use another library so the dependency is not needed. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Problem: cannot install the best candidate for the job
- nothing provides qt5-qtbase(x86-64) = 5.15.11 needed by python3-qt5-base-5.15.10-4.fc38.x86_64 from copr_ba | "python3-qt5-base" dependency "qt5-qtbase v5.15.11" not met. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Finish: build setup for python-matplotlib-3.8.3-1.fc38.src.rpm
Finish: build phase for python-matplotlib-3.8.3-1.fc38.src.r | Although dependencies were not met, the build continued. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[ninja: Entering directory `out/Release'
ninja: error: '../../../../../../usr/lib64/llvm20/lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.builtins.a', needed by 'obj/third_party/protobuf/libprotoc_lib.a', missing and no known rule to make it
error: Bad exit status from /var/tmp/rpm-tmp.UUYcXA (%build)]: [The error messages indicate that ninja cannot found libclang_rt.builtins.a, which ist required to build libprotoc_lib.a]
=============
[+ clang_base_path=/usr/lib64/llvm20
]: [Possible clue for debugging the issue locally with rpmbuild
]
| Issue: The build failed because clang_base_path was set to /usr/lib64/llvm20 which is wrong. The clang base path is set to /usr by default in fedora and epel
Resolution: Edit your specfile and set the clang_base_path to /usr |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ninja: Entering directory `out/Release'
ninja: error: '../../../../../../usr/lib64/llvm20/lib/clang/20/lib/x86_64-redhat-linux-gnu/libclang_rt.builtins.a', needed by 'obj/third_party/protobuf/libprotoc_lib.a', missing and no known rule to make it
error: Bad exit status from /var/tmp/rpm-tmp.UUYcXA (%build) | The error messages indicate that ninja cannot found libclang_rt.builtins.a, which ist required to build libprotoc_lib.a |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
+ clang_base_path=/usr/lib64/llvm20
| Possible clue for debugging the issue locally with rpmbuild
|
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[Problem: conflicting requests
- nothing provides python3.10dist(tqdm) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python3.10dist(biopython) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python3.10dist(graphviz) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python(abi) = 3.10 needed by python3-greedyFAS-1.12.3-1.fc36.noarch]: [These packages needed by python3-greedyFAS aren't available]
| Issue: These packages needed by python3-greedyFAS aren't available
Resolution: somehow provide these packages |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Problem: conflicting requests
- nothing provides python3.10dist(tqdm) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python3.10dist(biopython) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python3.10dist(graphviz) needed by python3-greedyFAS-1.12.3-1.fc36.noarch
- nothing provides python(abi) = 3.10 needed by python3-greedyFAS-1.12.3-1.fc36.noarch | These packages needed by python3-greedyFAS aren't available |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[
+ scl enable '%{scl}' -
/var/tmp/rpm-tmp.KbI8rW: line 33: scl: command not fou]: [The command 'scl' was not found]
| Issue: Missing utility or script
Resolution: Provide the command 'scl' |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
+ scl enable '%{scl}' -
/var/tmp/rpm-tmp.KbI8rW: line 33: scl: command not fou | The command 'scl' was not found |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.1fyr]: [The failure happens in the %check section.]
=============
[Errors while running CTest]: [The command that fails with non-zero exit status is `ctest`, so this is a CMake-based test-suite failure.]
=============
[1: Test command: /usr/bin/python3 "-m" "unittest" "discover" "-s" "tests" "-t" "/builddir/build/BUILD/dnf-4.18.2"]: [The first-cmake test failed, which is a transitive call to Python unittests.]
=============
[1: ....History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: ......History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: E..History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: ...History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file]: [At least one of the python test-cases failed. See the `E` (meaning error).]
=============
[1: ERROR: test_do_transaction (tests.api.test_dnf_base.DnfBaseApiTest.test_do_transaction)
1: ----------------------------------------------------------------------
1: Traceback (most recent call last):
1: File "/builddir/build/BUILD/dnf-4.18.2/tests/api/test_dnf_base.py", line 174, in test_do_transaction
1: self.base.do_transaction(display=None)
1: File "/builddir/build/BUILD/dnf-4.18.2/dnf/base.py", line 951, in do_transaction
1: self._moduleContainer.save()
1: File "/usr/lib64/python3.12/site-packages/libdnf/module.py", line 1241, in save
1: return _module.ModulePackageContainer_save(self)
1: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1: libdnf._error.Error: Failed to create directory "/etc/dnf/modules.d": 13 - Permission denied]: [Here you can see the actual test failure.]
| Issue: Because the Python testsuite, triggered by CMake testsuite, executed in %check phase failed.
Resolution: Fix the testsuite. This could mean anything; fixing the test-case (if broken) or fixing the code (so the test-case reveals a real bug). |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.1fyr | The failure happens in the %check section. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Errors while running CTest | The command that fails with non-zero exit status is `ctest`, so this is a CMake-based test-suite failure. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
1: Test command: /usr/bin/python3 "-m" "unittest" "discover" "-s" "tests" "-t" "/builddir/build/BUILD/dnf-4.18.2" | The first-cmake test failed, which is a transitive call to Python unittests. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
1: ....History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: ......History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: E..History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: ...History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file
1: .History database cannot be created, using in-memory database instead: SQLite error on "/tmp/tests/history.sqlite": Open failed: unable to open database file | At least one of the python test-cases failed. See the `E` (meaning error). |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
1: ERROR: test_do_transaction (tests.api.test_dnf_base.DnfBaseApiTest.test_do_transaction)
1: ----------------------------------------------------------------------
1: Traceback (most recent call last):
1: File "/builddir/build/BUILD/dnf-4.18.2/tests/api/test_dnf_base.py", line 174, in test_do_transaction
1: self.base.do_transaction(display=None)
1: File "/builddir/build/BUILD/dnf-4.18.2/dnf/base.py", line 951, in do_transaction
1: self._moduleContainer.save()
1: File "/usr/lib64/python3.12/site-packages/libdnf/module.py", line 1241, in save
1: return _module.ModulePackageContainer_save(self)
1: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1: libdnf._error.Error: Failed to create directory "/etc/dnf/modules.d": 13 - Permission denied | Here you can see the actual test failure. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[ ipython_config = profile_dir / "ipython_config.py"
> assert Path(ipython_config).exists()
E AssertionError: assert False
E + where False = exists()
E + where exists = PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py').exists
E + where PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py') = Path(PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py'))
core/tests/test_profile.py:161: AssertionError]: [The assertion failed when trying to assert that the ipython_config.py file exists]
| Issue: The assertion that the ipython_config.py file exists failed, it may be missing, named incorrectly or located in a wrong place.
Resolution: Ensure the ipython_config.py file exists, is named correctly and is located in the expected directory. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
ipython_config = profile_dir / "ipython_config.py"
> assert Path(ipython_config).exists()
E AssertionError: assert False
E + where False = exists()
E + where exists = PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py').exists
E + where PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py') = Path(PosixPath('/tmp/tmpj26idsg9/profile_foo/ipython_config.py'))
core/tests/test_profile.py:161: AssertionError | The assertion failed when trying to assert that the ipython_config.py file exists |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[Could not import extension sphinx_autodoc_typehints (exception: No module named 'sphinx_autodoc_typehints')]: [Missing import for python]
| Issue: Dependency python3-sphinx-autodoc-typehints was missing
Resolution: BuildRequires: python3-sphinx-autodoc-typehints
|
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
Could not import extension sphinx_autodoc_typehints (exception: No module named 'sphinx_autodoc_typehints') | Missing import for python |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[error: Bad exit status from /var/tmp/rpm-tmp.crCZP8 (%check)
Bad exit status from /var/tmp/rpm-tmp.crCZP8 (%check)
Child return code was: 1
]: [The build failed in %check section.]
=============
[-Ddomain_prefix=org.gnome.FlatpakApp]: [This is a Flatpak build.]
=============
[+ for f in tracker-miner-fs-3.service tracker-miner-fs-control-3.service tracker-writeback-3.service
+ test -f /builddir/build/BUILD/tracker-miners-3.7.4-build/BUILDROOT/usr/lib/systemd/user/tracker-miner-fs-3.service]: [This is test of systemd unit files.]
| Issue: Systemd unit files are in this case of Flatpak build irrelevant.
Resolution: You can skip the %check section for flatpak build by adding this condition:
%if ! 0%{?flatpak}
%check
...
%endif |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
error: Bad exit status from /var/tmp/rpm-tmp.crCZP8 (%check)
Bad exit status from /var/tmp/rpm-tmp.crCZP8 (%check)
Child return code was: 1
| The build failed in %check section. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
-Ddomain_prefix=org.gnome.FlatpakApp | This is a Flatpak build. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
+ for f in tracker-miner-fs-3.service tracker-miner-fs-control-3.service tracker-writeback-3.service
+ test -f /builddir/build/BUILD/tracker-miners-3.7.4-build/BUILDROOT/usr/lib/systemd/user/tracker-miner-fs-3.service | This is test of systemd unit files. |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[DEBUG util.py:459: error: Bad source: /chroot_tmpdir/srpm_unpacked/SOURCES/libsndfile-1.2.3.tar.xz: No such file or directory
]: [rpmbuild complains about missing source file]
| Issue: Spec file was updated to new upstream realease, but new tarball has not been uploaded
Resolution: Upload new source tarball |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
DEBUG util.py:459: error: Bad source: /chroot_tmpdir/srpm_unpacked/SOURCES/libsndfile-1.2.3.tar.xz: No such file or directory
| rpmbuild complains about missing source file |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[===============================================
guestfs-tools 1.52.0: bash/test-suite.log
===============================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test-complete-in-script.sh]: [It summarizes the tests run on the package, that are failing]
| Issue: The required test suite has failed which caused the RPM build to fail as well
Resolution: The maintainer should build this package locally to view the `bash/test-suite.log` and review the failing tests. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
===============================================
guestfs-tools 1.52.0: bash/test-suite.log
===============================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
.. contents:: :depth: 2
FAIL: test-complete-in-script.sh | It summarizes the tests run on the package, that are failing |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[DEBUG util.py:459: Failed to resolve the transaction:
DEBUG util.py:459: Problem: nothing provides requested (php-composer(phpdocumentor/type-resolver) >= 0.4.0 with php-composer(phpdocumentor/type-resolver) < 0.5)
DEBUG util.py:608: Child return code was: 1
]: [DNF fails to resolve dependency]
| Issue: php-composer(php documentor/type-resolver) version >= 0.4.0 and < 0.5 is not available
Resolution: If phpdocumentor/type-resolver is needed at runtime
- the package needd to be adapted to run with available version
- OR required version needs to be added to the repository
- OR this package be retired
If this package is only required at buildtime, for test suite:
- tests needs to be adapted for version available
- OR relevant unit tests ignored |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
DEBUG util.py:459: Failed to resolve the transaction:
DEBUG util.py:459: Problem: nothing provides requested (php-composer(phpdocumentor/type-resolver) >= 0.4.0 with php-composer(phpdocumentor/type-resolver) < 0.5)
DEBUG util.py:608: Child return code was: 1
| DNF fails to resolve dependency |
Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.
Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.
Snippets are delimited with '================'.
Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.
Explanation of the issue, and recommended solution, should take a handful of sentences.
Snippets:
[
- nothing provides python(abi) = 3.11 needed by python3-transaction-3.1.0-1.fc39.noar]: ['python3-transaction' requires Python 3.11.]
=============
[
- nothing provides python(abi) = 3.10 needed by python3-pyramid_beaker-0.8-1.fc36.noar]: [python3-pyramit_beaker requires Python 3.10]
| Issue: Dependencies require Python 3.10 or Python 3.11, but this system has Python 3.12.
Resolution: Correct the Python requirements of the dependencies. |
Analyse following RPM build log snippet. Describe contents accurately, without speculation or suggestions for resolution.
Your analysis must be as concise as possible, while keeping relevant information intact.
Snippet:
- nothing provides python(abi) = 3.11 needed by python3-transaction-3.1.0-1.fc39.noar | 'python3-transaction' requires Python 3.11. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.