Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 825242 - [TEST] dev-util/maturin-0.12.0 - test *_pyo3_pure FAILED (BadZipFile)
Summary: [TEST] dev-util/maturin-0.12.0 - test *_pyo3_pure FAILED (BadZipFile)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Stefan Strogin
URL: https://github.com/PyO3/maturin/issue...
Whiteboard:
Keywords: TESTFAILURE
: 827928 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-20 09:48 UTC by Toralf Förster
Modified: 2021-12-31 17:20 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.63 KB, text/plain)
2021-11-20 09:48 UTC, Toralf Förster
Details
dev-util:maturin-0.12.0:20211120-012632.log (dev-util:maturin-0.12.0:20211120-012632.log,261.18 KB, text/plain)
2021-11-20 09:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,176.83 KB, text/plain)
2021-11-20 09:48 UTC, Toralf Förster
Details
environment (environment,130.39 KB, text/plain)
2021-11-20 09:48 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,30.04 KB, application/x-bzip)
2021-11-20 09:48 UTC, Toralf Förster
Details
tests.tar.bz2 (tests.tar.bz2,6.14 KB, application/x-bzip)
2021-11-20 09:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-11-20 09:48:20 UTC
test develop_pyo3_mixed_py_subdir ... ok
test develop_pyo3_mixed_submodule has been running for over 60 seconds
test develop_pyo3_pure has been running for over 60 seconds
test develop_pyo3_mixed_submodule ... ok
test develop_pyo3_pure ... FAILED
test editable_pyo3_pure ... ok
test integration_cffi_mixed ... ok
test integration_cffi_pure ... ok
test integration_hello_world ... ok

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4_test_debug-20211117-210104

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.56.1 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  HEAD of ::gentoo
commit 5c406d80534ccabf8281f3f3a46ce612bfe814c9
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Nov 19 23:44:16 2021 +0000

    2021-11-19 23:43:56 UTC

emerge -qpvO dev-util/maturin
[ebuild  N    ] dev-util/maturin-0.12.0  USE="test -debug"
Comment 1 Toralf Förster gentoo-dev 2021-11-20 09:48:23 UTC
Created attachment 753762 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-11-20 09:48:24 UTC
Created attachment 753766 [details]
dev-util:maturin-0.12.0:20211120-012632.log
Comment 3 Toralf Förster gentoo-dev 2021-11-20 09:48:26 UTC
Created attachment 753770 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-11-20 09:48:28 UTC
Created attachment 753774 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-11-20 09:48:29 UTC
Created attachment 753778 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-11-20 09:48:30 UTC
Created attachment 753782 [details]
tests.tar.bz2
Comment 7 Ionen Wolkens gentoo-dev 2021-11-20 11:05:52 UTC
Wasn't aware the tinderbox actually used ALLOW_TEST=network, I feel this may be volatile.

That aside, looks like something is wrong with the wheel that got generated rather than downloaded, not that this seem to say anything about how that went wrong (haven't managed to reproduce yet).
Comment 8 Ionen Wolkens gentoo-dev 2021-11-26 18:32:25 UTC
Unsure if it's what happened here (still can't reproduce), but upstream issue is saying it doesn't happen every time and seems likely to be the same thing.
Comment 9 Ionen Wolkens gentoo-dev 2021-12-01 00:10:58 UTC
Can confirm the issue now, ran into it randomly while working on removing the need for network during tests (this rule out pip/network oddities).

But still unsure for cause/fix, assuming some kind of timing/race condition.
Comment 10 Ionen Wolkens gentoo-dev 2021-12-01 07:52:39 UTC
*** Bug 827928 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2021-12-01 10:05:56 UTC
The bug has been closed via the following commit(s):

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

commit ec624be3ead217db99e5496bd719fcf3f8a1115a
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-12-01 09:48:34 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-12-01 10:03:59 +0000

    dev-util/maturin: limit tests to 1 thread
    
    Tentatively closing #825242 to see if it the issue resurfaces,
    can't reproduce anymore (so far) with 1 thread and tests aren't
    overly long (building tests will still uses normal thread count).
    
    Will revisit if upstream finds a solution.
    
    Closes: https://bugs.gentoo.org/825242
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-util/maturin/maturin-0.11.5-r1.ebuild | 3 ++-
 dev-util/maturin/maturin-0.12.3-r1.ebuild | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
Comment 12 Larry the Git Cow gentoo-dev 2021-12-31 17:03:04 UTC
The bug has been referenced in the following commit(s):

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

commit 55aa1d27f2322095434cc18a21da9bb86188ce1d
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-12-31 16:39:40 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-12-31 17:02:35 +0000

    dev-util/maturin: add 0.12.6
    
    Upstream added an attempted fix for bug #825242, so removing
    --test-threads 1 and will see if issue comes back.
    
    Bug: https://bugs.gentoo.org/825242
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-util/maturin/Manifest              |  15 ++
 dev-util/maturin/maturin-0.12.6.ebuild | 360 +++++++++++++++++++++++++++++++++
 2 files changed, 375 insertions(+)
Comment 13 Agostino Sarubbo gentoo-dev 2021-12-31 17:20:06 UTC
(In reply to Larry the Git Cow from comment #12)
>     Upstream added an attempted fix for bug #825242, so removing
>     --test-threads 1 and will see if issue comes back.

It works for me