Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900188 - dev-python/jupyter_server: test_atomic_writing_umask failure on riscv qemu-user
Summary: dev-python/jupyter_server: test_atomic_writing_umask failure on riscv qemu-user
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-07 14:38 UTC by jinqiang zhang
Modified: 2023-03-07 20:10 UTC (History)
1 user (show)

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


Attachments
info.txt (info.txt,6.42 KB, text/plain)
2023-03-07 14:38 UTC, jinqiang zhang
Details
build-python3_10.log (build-python3_10.log,227.99 KB, text/plain)
2023-03-07 14:39 UTC, jinqiang zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jinqiang zhang 2023-03-07 14:38:38 UTC
In rekeywording dev-python/jupyter_server-2.3.0 ~riscv, tests case failed in test_atomic_writing_umask:

handle_umask = None, tmp_path = PosixPath('/var/tmp/portage/dev-python/jupyter_server-2.3.0/temp/pytest-of-portage/pytest-0/test_atomic_writing_umask0')

    @pytest.mark.skipif(sys.platform.startswith(win), reason=Windows)
    def test_atomic_writing_umask(handle_umask, tmp_path):
        os.umask(0o022)
        f1 = str(tmp_path / 1)
        with atomic_writing(f1) as f:
            f.write(1)
        mode = stat.S_IMODE(os.stat(f1).st_mode)
>       assert mode == 0o644
E       assert 438 == 420

f          = <_io.TextIOWrapper name='/var/tmp/portage/dev-python/jupyter_server-2.3.0/temp/pytest-of-portage/pytest-0/test_atomic_writing_umask0/1' mode='w' encoding='utf-8'>
f1         = '/var/tmp/portage/dev-python/jupyter_server-2.3.0/temp/pytest-of-portage/pytest-0/test_atomic_writing_umask0/1'
handle_umask = None
mode       = 438
tmp_path   = PosixPath('/var/tmp/portage/dev-python/jupyter_server-2.3.0/temp/pytest-of-portage/pytest-0/test_atomic_writing_umask0')

tests/services/contents/test_fileio.py:86: AssertionError
Comment 1 jinqiang zhang 2023-03-07 14:38:59 UTC
Created attachment 856646 [details]
info.txt

emerge --info
Comment 2 jinqiang zhang 2023-03-07 14:39:47 UTC
Created attachment 856648 [details]
build-python3_10.log
Comment 3 jinqiang zhang 2023-03-07 14:42:13 UTC
Just for recording, 438 is 0o666.
Comment 4 jinqiang zhang 2023-03-07 18:32:40 UTC
This bug only occurs in qemu-user, and all test cases passed on Umatched Board, so not block bug #899984 anymore.
Comment 5 jinqiang zhang 2023-03-07 19:54:27 UTC
I notice that the previous test was jupyter_server-2.3.0 :P
I re-tested 2.4.0 in qemu-user, still failed tests/services/contents/test_fileio.py::test_atomic_writing_umask test case.
Comment 6 jinqiang zhang 2023-03-07 20:10:28 UTC
This bug is only related to my qemu-user + bwrap test environment. Since the test can pass on the Unmatched Board, I think this bug does not need to be further resolved.
Sorry for polluting the list!