Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 748012

Summary: sys-apps/portage-3.0.8 fails tests
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 747496    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-10-12 11:38:52 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/portage-3.0.8 fails tests.
Discovered on: ppc (internal ref: ppc_at)
Comment 1 Agostino Sarubbo gentoo-dev 2020-10-12 11:39:08 UTC
Created attachment 664861 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2020-10-12 18:03:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=3cd49702014c6641190c858744ce4ea4a047366f

commit 3cd49702014c6641190c858744ce4ea4a047366f
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-10-12 17:57:12 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-10-12 18:00:05 +0000

    SimpleEmergeTestCase: fix TypeError: write() argument must be str, not int
    
    Bug: https://bugs.gentoo.org/748012
    Fixes: 0552665627bf ("SimpleEmergeTestCase: run tests in coroutine method")
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 lib/portage/tests/emerge/test_simple.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Comment 3 Zac Medico gentoo-dev 2020-10-12 18:12:28 UTC
The "TypeError: write() argument must be str, not int" error is triggered by an earlier command failure here:

> testSimple (portage.tests.emerge.test_simple.SimpleEmergeTestCase) ...  * This action can remove important packages! In order to be safer, use
>  * `emerge -pv --depclean <atom>` to check for reverse dependencies before
>  * removing packages.
> ERROR

Normally it would output some kind of informative error message to stderr, but instead it failed silently and see nothing more than ERROR (the preceding message about depclean is unrelated).

Is this failure repoducible?
Comment 4 Zac Medico gentoo-dev 2020-10-12 18:22:38 UTC
The TypeError occurred while processing a message that was written to stdout, and the fix in 3cd49702014c6641190c858744ce4ea4a047366f will allow see that message which may provide a clue about what went wrong.
Comment 5 Zac Medico gentoo-dev 2020-11-22 07:14:08 UTC
Please re-open if you see a similar failure with sys-apps/portage-3.0.9.