Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906698 - dev-python/click-help-colors-0.9.1-r1 fails tests (MUSL-SYSTEM)
Summary: dev-python/click-help-colors-0.9.1-r1 fails tests (MUSL-SYSTEM)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 917832
  Show dependency tree
 
Reported: 2023-05-18 17:34 UTC by Agostino Sarubbo
Modified: 2023-11-24 18:47 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,85.46 KB, text/plain)
2023-05-18 17:34 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-18 17:34:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/click-help-colors-0.9.1-r1 fails tests (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-18 17:34:26 UTC
Created attachment 861913 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-05-18 17:34:27 UTC
Error(s) that match a know pattern:


E       AssertionError: assert ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  cmd1', '  cmd2'] == ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  cmd1', '  cmd2']
E       AssertionError: assert ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  command'] == ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  command']
E       AssertionError: assert ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  command1', '  command2'] == ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --help  Show this message and exit.', '', 'Commands:', '  command1', '  command2']
E       AssertionError: assert ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.'] == ['Usage: cli [OPTIONS] COMMAND [ARGS]...', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.']
E       AssertionError: assert ['Usage: cli command [OPTIONS]', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.'] == ['Usage: cli command [OPTIONS]', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.']
E       AssertionError: assert ['Usage: cli command [OPTIONS]', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.'] == ['Usage: cli command [OPTIONS]', '', 'Options:', '  --name TEXT  The person to greet.', '  --help       Show this message and exit.']
E       AssertionError: assert ['Usage: cli command [OPTIONS]', '', 'Options:', '  --shout / --no-shout', '  --help                Show this message and exit.'] == ['Usage: cli command [OPTIONS]', '', 'Options:', '  --shout / --no-shout', '  --help                Show this message and exit.']
E       AssertionError: assert ['Usage: cli command [OPTIONS]', '', 'Options:', '  -n, --name TEXT  The person to greet.', '  --help           Show this message and exit.'] == ['Usage: cli command [OPTIONS]', '', 'Options:', '  -n, --name TEXT  The person to greet.', '  --help           Show this message and exit.']
E       AssertionError: assert ['example 1.0', '   python=3.7'] == ['example 1.0', '   python=3.7']
E       AssertionError: assert ['example, version 1.0'] == ['example, version 1.0']
E       AssertionError: assert ['example, version 1.0'] == ['example, version 1.0']
FAILED tests/test_basic.py::test_basic_command - AssertionError: assert ['Usa...
FAILED tests/test_basic.py::test_basic_group - AssertionError: assert ['Usage...
FAILED tests/test_basic.py::test_unknown_color - assert None
FAILED tests/test_custom_colors.py::test_command_custom_colors - AssertionErr...
FAILED tests/test_custom_colors.py::test_custom_option_color - AssertionError...
FAILED tests/test_custom_colors.py::test_flag_option_color[--no-shout] - Asse...
FAILED tests/test_custom_colors.py::test_flag_option_color[--shout] - Asserti...
FAILED tests/test_custom_colors.py::test_multi_name_option_color[--name] - As...
FAILED tests/test_custom_colors.py::test_multi_name_option_color[-n,] - Asser...
FAILED tests/test_custom_colors.py::test_multi_name_option_color[-n] - Assert...
FAILED tests/test_custom_colors.py::test_option_color - AssertionError: asser...
FAILED tests/test_multi_commands.py::test_multi_command - AssertionError: ass...
FAILED tests/test_version_option.py::test_custom_message - AssertionError: as...
FAILED tests/test_version_option.py::test_message_color - AssertionError: ass...
FAILED tests/test_version_option.py::test_version_and_prog_name_color - Asser...
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-18 18:50:58 UTC
This fails when NO_COLOR=1 is set in env.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-23 19:47:51 UTC
A NO_COLOR problem.
Comment 5 Larry the Git Cow gentoo-dev 2023-11-24 18:47:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6095715d85ffde3a9ff983716032aedf0ad2be96

commit 6095715d85ffde3a9ff983716032aedf0ad2be96
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-11-24 18:41:40 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-11-24 18:46:39 +0000

    dev-python/click-help-colors: Fix testing with NO_COLOR
    
    Closes: https://bugs.gentoo.org/906698
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../click-help-colors/click-help-colors-0.9.4.ebuild       |  6 ++++++
 .../files/click-help-colors-0.9.4-no-color.patch           | 14 ++++++++++++++
 2 files changed, 20 insertions(+)