Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895970 - dev-python/python-dotenv-0.21.1 fails tests
Summary: dev-python/python-dotenv-0.21.1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on: 729958
Blocks:
  Show dependency tree
 
Reported: 2023-02-23 08:09 UTC by Agostino Sarubbo
Modified: 2023-03-21 17:29 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,123.40 KB, text/plain)
2023-02-23 08:10 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-02-23 08:09:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/python-dotenv-0.21.1 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-23 08:10:00 UTC
Created attachment 854046 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-23 08:10:01 UTC
Error(s) that match a know pattern:


FAILED tests/test_cli.py::test_get_default_path - sh.ErrorReturnCode_100: 
FAILED tests/test_cli.py::test_run - sh.ErrorReturnCode_100: 
FAILED tests/test_cli.py::test_run_with_existing_variable_not_overridden - sh...
FAILED tests/test_cli.py::test_run_with_existing_variable - sh.ErrorReturnCod...
FAILED tests/test_cli.py::test_run_with_none_value - sh.ErrorReturnCode_100: 
SKIPPED [1] tests/test_ipython.py:7: could not import 'IPython': No module named 'IPython'
Comment 3 Larry the Git Cow gentoo-dev 2023-02-23 15:14:49 UTC
The bug has been referenced in the following commit(s):

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

commit 5652fe5da6e7021ff52369db0292275b1e9f51b3
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-02-23 13:18:31 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-23 15:14:42 +0000

    dev-python/python-dotenv: Depend on dev-python/sh < 2
    
    Bug: https://bugs.gentoo.org/895970
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/python-dotenv/python-dotenv-0.21.1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2023-02-23 15:18:42 UTC
The bug has been referenced in the following commit(s):

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

commit 42fba663ea2b060cda329e088dc705f0782fb18a
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2023-02-23 15:15:55 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2023-02-23 15:17:08 +0000

    dev-python/python-dotenv: Fix test dependencies
    
    Bug: https://bugs.gentoo.org/895970
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 .../python-dotenv/python-dotenv-0.21.1-r1.ebuild   | 44 ++++++++++++++++++++++
 1 file changed, 44 insertions(+)
Comment 5 Sebastian Pipping gentoo-dev 2023-02-23 15:23:53 UTC
@mgory, it seems like we clashed in Git here, I didn't see it because you were working in -r0 while I was in -r1.  I dropped pypy3 now for -r1 for ipython because…

  REQUIRED_USE="python_targets_pypy3? ( !test )"

…was no practical option.  Happy to discuss alternatives.  Maybe a use flag mask could work?  How would you like use to go proceed?
Comment 6 Sebastian Pipping gentoo-dev 2023-02-23 15:39:42 UTC
PS: How about:

  PYTHON_COMPAT=( pypy3 python3_{9..11} )

  $(python_gen_any_dep 'dev-python/ipython[${PYTHON_USEDEP}]' 'python3*')

  REQUIRED_USE="python_targets_pypy3? ( !test )"

together?  Would that work to get pypy3 support back for USE=-test ?
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-23 17:02:59 UTC
Can't a subset of tests be run without ipython?  Don't do REQUIRED_USE, that will only cause mayhem for no gain.
Comment 8 Sebastian Pipping gentoo-dev 2023-02-23 23:43:14 UTC
(In reply to Michał Górny from comment #7)
> Can't a subset of tests be run without ipython?

Maybe.  Could could mean that this question needs to be answered again for every bump to the package.  Maybe we should take some way to bypass these tests upstream then, some global switch.


>  Don't do REQUIRED_USE, that
> will only cause mayhem for no gain.

What kind of mayhem?

The potential gain could be to give users pypy3 back before bug #729958 is implemented, if that is considered of value.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-24 04:45:02 UTC
Usually EPYTEST_DESELECT is good enough.  Uninstall ipython, get it running, add has_version "dev-python/ipython[${PYTHON_USEDEP}]" && EPYTEST_DESELECT+=.  For future version bumps, we can worry when someone reports a test failure.
Comment 10 Sebastian Pipping gentoo-dev 2023-03-10 02:52:30 UTC
Fixed by commit 8d3bd924d26cc42008d18bba2aa53153ae4e09f6 in the meantime, closing.
Comment 11 ahudson.news 2023-03-21 10:55:42 UTC
Found this report from a month ago after running into issues with the dotenv-1.0 upgrade having been rolled out, which ends up trying to install ipython on my system (which wouldn't be an issue, except ipython also wants to pull in _all_ the dvipng/gtk+/harfbuzz/... dependencies one never knew existed).

So I was just wondering: @mgorny mentioned in #c7 keeping the ability to run some tests without ipython if it is not yet installed. I assume this idea has been dropped?
Comment 12 Sebastian Pipping gentoo-dev 2023-03-21 17:29:42 UTC
To speak for myself, cutting tests down to some subset is not worth developer time and/or the complexity, in my book. Please either run all tests with all dependencies or don't. It may well be possible to cut away some of the dependency tree by adjusting USE flags further down/up the line. Thanks for your understanding.