[kgb-maintainers] Bug#782079: Bug#782079: kgb-bot hangs forever at test suite

Damyan Ivanov dmn at debian.org
Tue Apr 7 14:41:38 UTC 2015


Control: tags -1 confirmed upstream
Control retitle -1 kgb-bot sometimes hangs forever at test suite

-=| Holger Levsen, 07.04.2015 13:29:41 +0200 |=-
> 
> while rebuilding kgb-bot for reproducibility we noticed the testsuite hanging 
> forever as can be seen in 
> https://jenkins.debian.net/view/reproducible/job/reproducible_builder_zeta/2745/console 
> or below.
> 
> The rebuild was done using pbuilder from wheezy, building in a sid chroot 
> without networking set up...
> 
> If you need any other information or if you have things to test, I'd be glad 
> to help debugging.

Thanks for the report. I was able to reproduce the problem by looping 
over building the package (in a wheezy pbuilder chroot) until the test 
suite hung.

> script/kgb-bot syntax OK
> t/00-compile_scripts.t ......... ok
> t/00-compile_shell_scripts.t ... ok
> t/30-bot-changes.t ............. ok
> # trying port 5392
> # test bot listening on 127.0.0.1:5392, pid: 61116  at t/TestBot.pm line 116.
> # Test bot started on 127.0.0.1:5392
> # $>=1111 $<=1111 $ENV{USER}=pbuilder1 getpwuid($>)=pbuilder1
> # stopping test bot, pid 61116
> # Removing directory /tmp/buildd/kgb-bot-1.33/t/bot
> t/50-client.t .................. ok
> t/51-client_branch_module.t .... ok
> # trying port 5392
> # test bot listening on 127.0.0.1:5392, pid: 62489  at t/TestBot.pm line 116.
> # stopping test bot, pid 62489
> # Removing directory /tmp/buildd/kgb-bot-1.33/t/bot
> t/52-client-git.t .............. ok
> # trying port 5392
> # test bot listening on 127.0.0.1:5392, pid: 65397  at t/TestBot.pm line 116.
> # stopping test bot, pid 65397
> # Removing directory /tmp/buildd/kgb-bot-1.33/t/bot
> t/53-client-git-merges.t ....... ok
> # trying port 5392
> # test bot listening on 127.0.0.1:5392, pid: 1079  at t/TestBot.pm line 116.
> # stopping test bot, pid 1079
> Build timed out (after 1,560 minutes). Marking the build as aborted.

In my test it hung after another test, but also in the place when the 
test tries to stop the running test bot instance. The test script was 
busy-looping checking for the existence of the lock file.

It seems that sometimes the test bot fails to stop (or to clean up), 
causing the test to hang.

I'll investigate further these days.

> Thanks for maintaining kgb-bot and the bots - that's a super useful service to 
> the community!

:)  We have plans to improve the service even further: 
https://wiki.debian.org/Services/KGB/GoingDSA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/kgb-maintainers/attachments/20150407/6c373724/attachment.sig>


More information about the kgb-maintainers mailing list