Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654986 - dev-util/cgdb-0.7.0 : [TEST] FAIL: timeout testing map from mapping file
Summary: dev-util/cgdb-0.7.0 : [TEST] FAIL: timeout testing map from mapping file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nado
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-05-05 17:15 UTC by Toralf Förster
Modified: 2019-04-03 06:50 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.03 KB, text/plain)
2018-05-05 17:15 UTC, Toralf Förster
Details
dev-util:cgdb-0.7.0:20180505-164610.log (dev-util:cgdb-0.7.0:20180505-164610.log,79.63 KB, text/plain)
2018-05-05 17:15 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.74 KB, text/plain)
2018-05-05 17:15 UTC, Toralf Förster
Details
environment (environment,59.41 KB, text/plain)
2018-05-05 17:15 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.45 KB, application/x-bzip)
2018-05-05 17:15 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,26.05 KB, application/x-bzip)
2018-05-05 17:15 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.61 KB, application/x-bzip)
2018-05-05 17:15 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 2018-05-05 17:15:11 UTC
Using /var/tmp/portage/dev-util/cgdb-0.7.0/work/cgdb-0.7.0/test/config/unix.exp as tool-and-target-specific interface file.
Running /var/tmp/portage/dev-util/cgdb-0.7.0/work/cgdb-0.7.0/test/kui.base/basic.exp ...
FAIL: timeout testing map from mapping file
FAIL: timeout test simple map
FAIL: timeout test simple partial matching map
FAIL: timeout test map that is a subset of another map

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_abi32+64-test_20180501-232814

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)




emerge -qpv dev-util/cgdb
[ebuild  N    ] dev-util/cgdb-0.7.0  USE="{test}" ABI_X86="32 (64) (-x32)"
Comment 1 Toralf Förster gentoo-dev 2018-05-05 17:15:14 UTC
Created attachment 530008 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-05-05 17:15:17 UTC
Created attachment 530010 [details]
dev-util:cgdb-0.7.0:20180505-164610.log
Comment 3 Toralf Förster gentoo-dev 2018-05-05 17:15:20 UTC
Created attachment 530012 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-05-05 17:15:23 UTC
Created attachment 530014 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-05-05 17:15:26 UTC
Created attachment 530016 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-05-05 17:15:30 UTC
Created attachment 530018 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-05-05 17:15:33 UTC
Created attachment 530020 [details]
temp.tbz2
Comment 8 Nado 2018-05-06 09:22:52 UTC
Thank you Toralf, I am actually glad to see other test failure, I hope I can reproduce that one or that it is linked to the previous one (https://bugs.gentoo.org/630512).

I'll check that this week hopefully.
Comment 9 Nado 2018-05-08 09:48:42 UTC
Could it be coming from the sandboxing of the tinderbox ? The tests failing are emulating key presses.

I'm not much used to dejagnu, anyone who might tell me what this line [1] relies on is welcome. It is the function failing to emulate key presses, that much I know but what it actually does, I have no idea.

File where the "kui_prompt" are called [2]

[1] https://github.com/cgdb/cgdb/blob/v0.7.0/test/config/unix.exp#L13
[2] https://github.com/cgdb/cgdb/blob/v0.7.0/test/kui.base/basic.exp
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-05-11 11:41:11 UTC
I won't claim myself to be a dejagnu expert but I can tell you that's single worst framework ever invented.  To get (most of) bash-completion tests working, I needed to run them inside dtach to get a backing VT.  Feel free to try to copy the code from app-shells/bash-completion and see if it helps.
Comment 11 Larry the Git Cow gentoo-dev 2019-04-03 06:50:16 UTC
The bug has been closed via the following commit(s):

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

commit 6a058bfd996599ead9fe3e50f802ccd088bd0a73
Author:     nado <nado@troglodyte.be>
AuthorDate: 2018-07-19 15:57:25 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-04-03 06:50:07 +0000

    dev-util/cgdb: run tests in `dtach` + EAPI bump
    
    cgdb needs interactive shell for testing its ncurses UI
    
    Closes: https://bugs.gentoo.org/654986
    Package-Manager: Portage-2.3.43, Repoman-2.3.10
    Signed-off-by: Corentin `nado` Pazdera <nado@troglodyte.be>
    Closes: https://github.com/gentoo/gentoo/pull/9288
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../{cgdb-0.7.0.ebuild => cgdb-0.7.0-r1.ebuild}    | 31 ++++++++++++++++----
 dev-util/cgdb/cgdb-9999.ebuild                     | 33 +++++++++++++++++-----
 2 files changed, 51 insertions(+), 13 deletions(-)