Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 748012 - sys-apps/portage-3.0.8 fails tests
Summary: sys-apps/portage-3.0.8 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: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 747496
  Show dependency tree
 
Reported: 2020-10-12 11:38 UTC by Agostino Sarubbo
Modified: 2020-11-22 07:14 UTC (History)
0 users

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


Attachments
build.log (build.log,215.59 KB, text/plain)
2020-10-12 11:39 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 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.