[kgb-maintainers] Bug#834597: kgb-bot: FTBFS in testing

gregor herrmann gregoa at debian.org
Wed Aug 17 18:34:04 UTC 2016


Control: tag -1 + confirmed pending

On Wed, 17 Aug 2016 13:38:25 +0000, Santiago Vila wrote:

> I tried to build this package with "dpkg-buildpackage -A"
> (which is what the "Arch: all" autobuilder would do to build it)
> but it failed:
> 
> --------------------------------------------------------------------------------
> [...]
>  debian/rules build-indep
> dh build-indep
>    dh_testdir -i
>    dh_update_autotools_config -i
>    dh_auto_configure -i
> 	perl Build.PL --installdirs vendor
> Base class package "Module::Build" is empty.
>     (Perhaps you need to 'use' the module which defines that package first,
>     or make that module available in @INC (@INC contains: privinc /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.2 /usr/local/share/perl/5.22.2 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .).
>  at privinc/My/Builder.pm line 6.
> BEGIN failed--compilation aborted at privinc/My/Builder.pm line 6.
> Compilation failed in require at Build.PL line 5.
> BEGIN failed--compilation aborted at Build.PL line 5.
> dh_auto_configure: perl Build.PL --installdirs vendor returned exit code 255
> debian/rules:4: recipe for target 'build-indep' failed
> make: *** [build-indep] Error 2
> dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
> --------------------------------------------------------------------------------

This is already fixed in git [0].

If I "backport" only this change to the 1.33-2 it gets past
dh_auto_configure, but then one test fails:

#v+
# prove --blib --verbose t/52-client-git.t
t/52-client-git.t .. # trying port 5392
# test bot listening on 127.0.0.1:5392, pid: 2228  at t/TestBot.pm line 116.

Initialized empty Git repository in /tmp/kgb-WSQmwxU/there.git/
Initialized empty Git repository in /tmp/kgb-WSQmwxU/here/.git/
ok 1 - local repository allocated
ok 2 - An object of class 'Git' isa 'Git'
ok 3 - An object of class 'App::KGB::Client::Git' isa 'App::KGB::Client::Git'
ok 4 - post-receive hook logs
ok 5 - commit 1 present
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12 - commit 2 present
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20 - commit 3 present
ok 21 - commit 3 branch is "master"
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27 - commit 4 present
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35 - commit 5 present
ok 36 - commit 5 id
ok 37 - commit 5 branch
ok 38 - commit 5 log
ok 39 - commit 5 author
ok 40 - commit 5 changes
ok 41 - commit 6 present
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47
ok 48 - annotated tag here
ok 49
ok 50
ok 51
ok 52
ok 53 - annotated tag log
ok 54 - hollow branch described
ok 55 - hollow commit is cf87bf3
ok 56 - hollow commit branch is 'hollow'
ok 57 - no changes in hollow commit
ok 58 - hollow commit log is 'branch created'
ok 59 - hollow branch has no commits
ok 60 - UTF-8 commit exists
ok 61
ok 62
ok 63
ok 64
ok 65 - empty branch creation commit exists
ok 66 - empty branch name
ok 67 - empty branch log
ok 68
fatal: refusing to merge unrelated histories
merge allnew: command returned error: 128
# stopping test bot, pid 2228
# Removing directory /build/kgb-bot-1.33/t/bot
# Tests were run but no plan was declared and done_testing() was not seen.
Dubious, test returned 254 (wstat 65024, 0xfe00)
All 68 subtests passed 

Test Summary Report
-------------------
t/52-client-git.t (Wstat: 65024 Tests: 68 Failed: 0)
  Non-zero exit status: 254
  Parse errors: No plan found in TAP output
Files=1, Tests=68,  4 wallclock secs ( 0.03 usr  0.01 sys +  2.95 cusr  0.36 csys =  3.35 CPU)
Result: FAIL
#v-

When builing from what we have in git, I get even more errors in the
test suite:

#v+
Test Summary Report
-------------------
t/50-client.t                (Wstat: 256 Tests: 31 Failed: 1)
  Failed test:  31
  Non-zero exit status: 1
t/52-client-git.t            (Wstat: 65024 Tests: 68 Failed: 0)
  Non-zero exit status: 254
  Parse errors: No plan found in TAP output
t/54-client-git-squash.t     (Wstat: 256 Tests: 13 Failed: 1)
  Failed test:  13
  Non-zero exit status: 1
t/55-client-git-merges-ff.t  (Wstat: 256 Tests: 14 Failed: 1)
  Failed test:  14
  Non-zero exit status: 1
t/56-client-git-ff-merge-2.t (Wstat: 256 Tests: 15 Failed: 1)
  Failed test:  15
  Non-zero exit status: 1
t/57-client-git-squash-tags.t (Wstat: 256 Tests: 9 Failed: 1)
  Failed test:  9
  Non-zero exit status: 1
Files=16, Tests=263, 17 wallclock secs ( 0.10 usr  0.01 sys + 13.37 cusr  1.71 csys = 15.19 CPU)
Result: FAIL
Failed 6/16 test programs. 5/263 subtests failed.
#v-


Not nice.


Hm, might be related to:

#v+
-    ( my $full_name = $user->gecos ) =~ s/,.*//;
+    my $full_name = $login;
+    ( $full_name = $user->gecos ) =~ s/,.*// if defined $user;
#v-

since most errors look like:

#v+
#   Failed test at t/57-client-git-squash-tags.t line 197.
# --- Got
# +++ Expected
# @@ -1,3 +1,3 @@
#  '#test ^C03Test U. Ser^O (^C03ser^O) ^C05master^O 1187fc2 ^C12test^O/^C06there^O ^C03old^O import old content * ^C14http://scm.host.org/there/mast$
# -#test ^C03pbuilder^O (^C03pbuilder^O) ^C12test^O/^C06there^O Pushed ^C05tag-1^O, ^C05tag-2^O, 6 other tags and ^C05tag-9^O
# +#test (^C03pbuilder^O) ^C12test^O/^C06there^O Pushed ^C05tag-1^O, ^C05tag-2^O, 6 other tags and ^C05tag-9^O
#  '
#v-


Cheers,
gregor

[0]
By Moving from "Build-Depends-Indep: libmodule-build-perl (>=
0.400000) | perl (>= 5.17.1)" to "Build-Depends:
libmodule-build-perl"

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Mercedes Sosa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/kgb-maintainers/attachments/20160817/96db450e/attachment.sig>


More information about the kgb-maintainers mailing list