Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 865931 - dev-python/pytest-flake8-1.1.1 fails tests (MUSL)
Summary: dev-python/pytest-flake8-1.1.1 fails tests (MUSL)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2022-08-21 14:43 UTC by Agostino Sarubbo
Modified: 2023-03-19 19:35 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,368.78 KB, text/plain)
2022-08-21 14:43 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 2022-08-21 14:43:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pytest-flake8-1.1.1 fails tests (MUSL).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-08-21 14:43:29 UTC
Created attachment 800347 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-08-21 14:43:30 UTC
Error(s) that match a know pattern:


                    except KeyError:
        except AttributeError:
 "E       AttributeError: module 'flake8.options.config' has no attribute "
 '                    except KeyError:
 '        except AttributeError:
 'failed': 0,
 'failed': 1,
 'failed': 2,
 'message="AttributeError: module \'flake8.options.config\' has no attribute '
 'passed': 0,
 'passed': 1,
 'passed': 2,
 'skipped': 0,
 'xfailed': 0,
 'xpassed': 0}
 'xpassed': 0} == {'errors': 0,
'
E           and: "E       AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'"
E           and: "FAILED hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con..."
E           and: "FAILED test_keyword_match.py::flake-8::FLAKE8 - AttributeError: module 'flake..."
E           and: "FAILED test_mtime_caching.py::flake-8::FLAKE8 - AttributeError: module 'flake..."
E           and: "FAILED test_w293w292.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt..."
E           and: '                    except KeyError:'
E           and: '        except AttributeError:'
E       AssertionError: assert {'errors': 0,
E       AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'
FAILED hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con...
FAILED pytest_flake8.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt...
FAILED setup.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.con...
FAILED test_flake8.py::TestIgnores::test_default_flake8_ignores - AssertionEr...
FAILED test_flake8.py::TestIgnores::test_ignores_all - AssertionError: assert...
FAILED test_flake8.py::TestIgnores::test_mtime_caching - Failed: nomatch: '*W...
FAILED test_flake8.py::TestIgnores::test_w293w292 - Failed: nomatch: '*W293*'
FAILED test_flake8.py::flake-8::FLAKE8 - AttributeError: module 'flake8.optio...
FAILED test_flake8.py::test_junit_classname - AssertionError: assert {'errors...
FAILED test_flake8.py::test_keyword_match - Failed: nomatch: '*E201*'
FAILED test_flake8.py::test_ok_verbose - AssertionError: assert {'errors': 0,...
FAILED test_flake8.py::test_run_on_init_file - AssertionError: assert {'error...
FAILED test_junit_classname.py::flake-8::FLAKE8 - AttributeError: module 'fla...
FAILED test_keyword_match.py::flake-8::FLAKE8 - AttributeError: module 'flake...
FAILED test_mtime_caching.py::flake-8::FLAKE8 - AttributeError: module 'flake...
FAILED test_ok_verbose.py::flake-8::FLAKE8 - AttributeError: module 'flake8.o...
FAILED test_w293w292.py::flake-8::FLAKE8 - AttributeError: module 'flake8.opt...
FAILED tests/__init__.py::flake-8::FLAKE8 - AttributeError: module 'flake8.op...
FAILED tests/hello.py::flake-8::FLAKE8 - AttributeError: module 'flake8.optio...
FAILED xy.py::flake-8::FLAKE8 - AttributeError: module 'flake8.options.config...
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-17 13:04:08 UTC
I can reproduce.  It doesn't work against current deps in Gentoo, and the ToT is broken as well.  FWICS it's not really maintained [1] and has no revdeps in ::gentoo.

[1] https://github.com/tholo/pytest-flake8/issues/91
Comment 4 Larry the Git Cow gentoo-dev 2023-02-17 13:07:13 UTC
The bug has been referenced in the following commit(s):

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

commit d7273cec3bee69245be1e5bc7755f111031c1574
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-02-17 13:05:43 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-17 13:07:10 +0000

    package.mask: Last rite dev-python/pytest-flake8
    
    Bug: https://bugs.gentoo.org/865931
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2023-03-19 19:35:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e5284d13d47db8ed571742c8b0675c4acb4ab2

commit 42e5284d13d47db8ed571742c8b0675c4acb4ab2
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-03-19 19:35:34 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-03-19 19:35:34 +0000

    dev-python/pytest-flake8: treeclean
    
    Closes: https://bugs.gentoo.org/669860
    Closes: https://bugs.gentoo.org/865931
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-python/pytest-flake8/Manifest                  |  1 -
 dev-python/pytest-flake8/metadata.xml              | 17 ------------
 .../pytest-flake8/pytest-flake8-1.1.1.ebuild       | 30 ----------------------
 profiles/package.mask                              |  6 -----
 4 files changed, 54 deletions(-)