Debian Bug report logs -
#987113
ruby-librarian: autopkgtest failure: times out everywhere
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, debian-ci@lists.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#987113; Package src:ruby-librarian.
(Sat, 17 Apr 2021 20:24:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Paul Gevers <elbrus@debian.org>:
New Bug report received and forwarded. Copy sent to debian-ci@lists.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>.
(Sat, 17 Apr 2021 20:24:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: ruby-librarian
Version: 0.6.4-2
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: fails-always timeout
Dear maintainers,
Your package has an autopkgtest, great. However it fails. Worse, since
0.6.4-2 it times out on the ci.d.n infrastructure after 2:47 hours. I
copied some of the output at the bottom of this report.
These kind of timeouts are bad for our infrastructure. I'll add your
package to our ignore-list.
Paul
https://ci.debian.net/packages/r/ruby-librarian/testing/amd64/
https://ci.debian.net/packages/r/ruby-librarian/testing/arm64/
https://ci.debian.net/packages/r/ruby-librarian/testing/armhf/
https://ci.debian.net/packages/r/ruby-librarian/testing/i386/
https://ci.debian.net/packages/r/ruby-librarian/testing/ppc64el/
https://ci.debian.net/packages/r/ruby-librarian/testing/s390x/
https://ci.debian.net/data/autopkgtest/testing/amd64/r/ruby-librarian/11723045/log.gz
autopkgtest [01:43:42]: test gem2deb-test-runner: gem2deb-test-runner
--autopkgtest --check-dependencies 2>&1
autopkgtest [01:43:42]: test gem2deb-test-runner: [-----------------------
┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby2.7
│
└──────────────────────────────────────────────────────────────────────────────┘
GEM_PATH= ruby2.7 -e gem\ \"librarianp\"
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.7 from debian/ruby-tests.rake
│
└──────────────────────────────────────────────────────────────────────────────┘
mv lib .gem2deb.lib
mv Gemfile.lock .gem2deb.Gemfile.lock
RUBYLIB=. GEM_PATH= ruby2.7 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.7
-I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib
/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec
--pattern ./spec/\*\*/\*_spec.rb --format documentation
Librarian::Mock::Cli
version
autopkgtest [04:30:22]: ERROR: timed out on command "su -s /bin/bash
debci -c set -e; export USER=`id -nu`; . /etc/profile >/dev/null 2>&1 ||
true; . ~/.profile >/dev/null 2>&1 || true;
buildtree="/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/build.PF3/src"; mkdir
-p -m 1777 --
"/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-artifacts";
export
AUTOPKGTEST_ARTIFACTS="/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-artifacts";
export ADT_ARTIFACTS="$AUTOPKGTEST_ARTIFACTS"; mkdir -p -m 755
"/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/autopkgtest_tmp"; export
AUTOPKGTEST_TMP="/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/autopkgtest_tmp";
export ADTTMP="$AUTOPKGTEST_TMP"; export DEBIAN_FRONTEND=noninteractive;
export LANG=C.UTF-8; export DEB_BUILD_OPTIONS=parallel=48; unset
LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY
LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
LC_IDENTIFICATION LC_ALL;rm -f /tmp/autopkgtest_script_pid; set -C; echo
$$ > /tmp/autopkgtest_script_pid; set +C; trap "rm -f
/tmp/autopkgtest_script_pid" EXIT INT QUIT PIPE; cd "$buildtree"; touch
/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-stdout
/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-stderr; bash
-ec 'gem2deb-test-runner --autopkgtest --check-dependencies 2>&1' 2>
>(tee -a
/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-stderr >&2) >
>(tee -a
/tmp/autopkgtest-lxc.4s6pt3u1/downtmp/gem2deb-test-runner-stdout);"
(kind: test)
autopkgtest [04:30:22]: test gem2deb-test-runner: -----------------------]
[OpenPGP_signature (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#987113; Package src:ruby-librarian.
(Sat, 24 Apr 2021 17:57:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Evgeni Golov <evgeni@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>.
(Sat, 24 Apr 2021 17:57:02 GMT) (full text, mbox, link).
Message #10 received at 987113@bugs.debian.org (full text, mbox, reply):
Moin,
On Sat, Apr 17, 2021 at 10:20:45PM +0200, Paul Gevers wrote:
> Librarian::Mock::Cli
> version
> autopkgtest [04:30:22]: ERROR: timed out on command "su -s /bin/bash
poking around this…
the tests pass fine as long the deb is not installed (so it's only
running from the source checkout), and freeze instantly when it is.
(I can repro in a clean bullseye container, without autopkgtest/debci
involved at all: rake -f debian/ruby-tests.rake)
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>:
Bug#987113; Package src:ruby-librarian.
(Sat, 24 Apr 2021 18:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Evgeni Golov <evgeni@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>.
(Sat, 24 Apr 2021 18:57:04 GMT) (full text, mbox, link).
Message #15 received at 987113@bugs.debian.org (full text, mbox, reply):
On Sat, Apr 24, 2021 at 07:46:32PM +0200, Evgeni Golov wrote:
> Moin,
>
> On Sat, Apr 17, 2021 at 10:20:45PM +0200, Paul Gevers wrote:
> > Librarian::Mock::Cli
> > version
> > autopkgtest [04:30:22]: ERROR: timed out on command "su -s /bin/bash
>
> poking around this…
> the tests pass fine as long the deb is not installed (so it's only
> running from the source checkout), and freeze instantly when it is.
>
> (I can repro in a clean bullseye container, without autopkgtest/debci
> involved at all: rake -f debian/ruby-tests.rake)
So the issue is that when it runs the tests with the installed code, it
can't find the "root" of the project in [1] and tries to traverse in an
endless loop (as the original code assumes the tests are run in-tree).
Trivial patch that "fixes" it is the following:
diff --git lib/librarian/rspec/support/cli_macro.rb lib/librarian/rspec/support/cli_macro.rb
index 21ffb3f..2cf91e1 100644
--- lib/librarian/rspec/support/cli_macro.rb
+++ lib/librarian/rspec/support/cli_macro.rb
@@ -51,7 +51,7 @@ module Librarian
def self.included(base)
base.instance_exec do
let(:project_path) do
- project_path = Pathname.new(__FILE__).expand_path
+ project_path = Pathname.pwd.expand_path
project_path = project_path.dirname until project_path.join("Rakefile").exist?
project_path
end
But I still find that super ugly and not sure it's the right approach
here.
[1] https://github.com/voxpupuli/librarian/blob/v0.6.4/lib/librarian/rspec/support/cli_macro.rb#L54-L55
Reply sent
to Utkarsh Gupta <utkarsh@debian.org>:
You have taken responsibility.
(Sat, 24 Apr 2021 20:21:03 GMT) (full text, mbox, link).
Notification sent
to Paul Gevers <elbrus@debian.org>:
Bug acknowledged by developer.
(Sat, 24 Apr 2021 20:21:12 GMT) (full text, mbox, link).
Message #22 received at 987113-close@bugs.debian.org (full text, mbox, reply):
Source: ruby-librarian
Source-Version: 0.6.4-3
Done: Utkarsh Gupta <utkarsh@debian.org>
We believe that the bug you reported is fixed in the latest version of
ruby-librarian, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 987113@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Utkarsh Gupta <utkarsh@debian.org> (supplier of updated ruby-librarian package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Sun, 25 Apr 2021 01:25:04 +0530
Source: ruby-librarian
Architecture: source
Version: 0.6.4-3
Distribution: unstable
Urgency: high
Maintainer: Debian Ruby Team <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Changed-By: Utkarsh Gupta <utkarsh@debian.org>
Closes: 987113
Changes:
ruby-librarian (0.6.4-3) unstable; urgency=high
.
* Team upload.
* Add patches to fix autopkgtest hang. (Closes: #987113)
- Thanks, Evgeni Golov, for debugging and poking around.
Checksums-Sha1:
ec882dd6fd78b11e5d90e3cfd85753d20ac5684e 2165 ruby-librarian_0.6.4-3.dsc
250e2f54330c3e655d36b3a6196fe271e0bb5e60 5712 ruby-librarian_0.6.4-3.debian.tar.xz
0e12aa90e91eba7d36573f6b2efc728a70680445 9604 ruby-librarian_0.6.4-3_amd64.buildinfo
Checksums-Sha256:
41be03be50930e9c6346c62b89b69584c0ce6b730544c95a3225cd59463b75ab 2165 ruby-librarian_0.6.4-3.dsc
34cdfbc70eeb32873741dced0412a319fb0746117f70fbe69e53514d13fea424 5712 ruby-librarian_0.6.4-3.debian.tar.xz
dfc397be699d68873164bb13a875fa99c909c9fcd8aaa9d6fcb6e1a0c0820c1e 9604 ruby-librarian_0.6.4-3_amd64.buildinfo
Files:
1aa5fa8f172e31e694132574ebd8549d 2165 ruby optional ruby-librarian_0.6.4-3.dsc
b6818b3c45bb92c25bd85b82abea78e3 5712 ruby optional ruby-librarian_0.6.4-3.debian.tar.xz
7df9eb3bb6bc0ce8b57e68ca8ebc551d 9604 ruby optional ruby-librarian_0.6.4-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJHBAEBCAAxFiEEbJ0QSEqa5Mw4X3xxgj6WdgbDS5YFAmCEeNMTHHV0a2Fyc2hA
ZGViaWFuLm9yZwAKCRCCPpZ2BsNLlksrEADYH8gT/CCvVN6As3ut7UKfMMbiYZJ4
U9uXL+LuvNXfpfiQZS0yK9GVpy/m3SWIudkd4pQtmua+iIHYeHNlRbT0K40hkctA
eR00jv2TthyVWxPR9DWK2V3rckgPwV29ORdG7sBJBVtDUItbGk2g8t/72kFPYOCd
rFc+9FY86BRPHDxRfHm4AgZNFnA81Ec5LBN/lI5gOAKqGFnkLMG3UX+vDsu3MvXh
JlDoD5N8u+/XlZmzSjhP0d94ZVWslT+o+YW4gm++nQJJxJ3VxsCBi7fKD7lw6zZj
d0s2eyFqU0DL3kcidmBRoML3m/YPh6ao/x9sFvZvaNKYXtyht6TmaxkhlUliGPM8
uJ7kEl0TlzO8DX1gyz9B7h9u7QTUKZQGzXrg9koyr3EE67f3OrbA1wB9vAbLSMH1
OVzGyC40TExwUV3XlEK9zRtMKXokOHckXBnltCwEdTSuU0Lkwo6CWV0Om+ZcsR5P
2f627cnAH1/YTSZbJH35vadKQe7g6xpGus1fae37HAE8PHZvtrZ0ZxS/XhKMLCq9
tl7/WADrhhfgOgX6rcU0y8BeQ53zv5RosSnwvEZQL6+JihFOcpw/NnO0x1FZ1Oy6
0Fwsd596iQx+qv/l931g7B+b76Lg5RVk6Tw6OIPk++Z+XBNDT6uC9r0gixXmK32/
6gqsar+nEL/aBQ==
=0AM4
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 23 May 2021 07:29:56 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Oct 8 03:09:33 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.