Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923053 - dev-python/jupyter-packaging-0.12.3 fails tests: FileNotFoundError: [Errno 2] No such file or directory
Summary: dev-python/jupyter-packaging-0.12.3 fails tests: FileNotFoundError: [Errno 2]...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-01-27 16:52 UTC by Agostino Sarubbo
Modified: 2024-02-29 04:18 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,62.36 KB, text/plain)
2024-01-27 16:52 UTC, Agostino Sarubbo
Details

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

Issue: dev-python/jupyter-packaging-0.12.3 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM
Info about the system: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-01-27 16:52:04 UTC
Created attachment 883318 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-01-27 16:52:05 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E       FileNotFoundError: [Errno 2] No such file or directory
FAILED tests/test_core_functions.py::test_npm_builder - FileNotFoundError: [Errno 2] No such file or directory
FAILED tests/test_core_functions.py::test_npm_builder_no_npm - FileNotFoundError: [Errno 2] No such file or directory
FAILED tests/test_core_functions.py::test_npm_builder_not_stale - FileNotFoundError: [Errno 2] No such file or directory
Comment 3 Jonathan Lovelace 2024-02-29 03:30:36 UTC
I'm seeing this failure when trying to rebuild due to the addition of python3_12 to and removal of pypy3 from PYTHON_COMPAT; the same version passed its tests for me when it was last built, with the same PYTHON_TARGETS, in May 2023. Unfortunately I no longer have the build log from that successful build to compare "build system packages". 

But the specifics of the test failures also make me wonder if the change might be due to a change in Portage or the sandbox: the "No such file or directory" is coming from a call to "os.getcwd()" in two of the tests and to "Path.cwd().resolve()" in the third, which seems to me to indicate that Python's notion of the CWD is either unset or pointing to a directory that (at least from the perspective of that Python process) does not exist (or no longer exists).
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-02-29 04:01:38 UTC
Thanks for the hint!  It's the tmp_path_retention_policy change.
Comment 5 Larry the Git Cow gentoo-dev 2024-02-29 04:18:25 UTC
The bug has been closed via the following commit(s):

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

commit 679bcc3c305c04d2f5c880f0ced8ae450b344de7
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-02-29 04:01:54 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-02-29 04:18:22 +0000

    dev-python/jupyter-packaging: Fix testing
    
    Closes: https://bugs.gentoo.org/923053
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../jupyter-packaging/jupyter-packaging-0.12.3.ebuild   | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)