From: Eric Wong <e@80x24.org>
To: "Jörg Rödel" <joro@8bytes.org>
Cc: meta@public-inbox.org
Subject: Re: 'make test' failures while packaging for openSUSE
Date: Fri, 19 Nov 2021 18:54:11 +0000 [thread overview]
Message-ID: <20211119185411.M766819@dcvr> (raw)
In-Reply-To: <YZebmAxlFJy4lqAw@8bytes.org>
Jörg Rödel <joro@8bytes.org> wrote:
> Hi,
>
> first of all thanks a lot to all the developers for writing such an
> awesome tool. I am currently setting up lei to watch various Linux
> kernel development lists and so far it works like a charm!
Great to know :> There's still a lot of things to improve,
hopefully next year...
> To make things more smooth for others I am currently packaging
> public-inbox for openSUSE, and I am encountering some failures while
> running 'make test'. Here is the error I am seeing in the build log:
>
> t/lei-lcat.t ................. ok
>
> # Failed test 'clone + index v1 synced ->created_at'
> # at t/lei-mirror.t line 175.
> # got: '1637324685'
> # expected: undef
>
> # Failed test 'clone + index v1 synced ->created_at'
> # at t/lei-mirror.t line 178.
> # got: '1637324685'
> # expected: undef
> # Looks like you failed 2 tests of 37.
> t/lei-mirror.t ...............
> Dubious, test returned 2 (wstat 512, 0x200)
> Failed 2/37 subtests
> (less 2 skipped subtests: 33 okay)
I don't think I've ever seen this failure before.
It looks like the %created hash didn't get populated by
the first test_lei() block at all.
> The full 'make test' excerpt from the build log is also attached. This
> happens when building from latest HEAD as well as from tag v1.7.0.
>
> I am not sure why this test fails, maybe it is some problem in one of
> the dependencies. Any help here would be great!
Can you provide a more verbose dump of just t/lei-mirror.t?
make && prove -bvw t/lei-mirror.t
No rush, though, probably going to be busy the next few days.
This may be related, but lei will fail completely unless
Inline::C or Socket::MsgHdr are available:
> [ 16s] # require PublicInbox::Gcf2: open(/home/abuild/.cache/public-inbox/inline-c/.public-inbox.lock): No such file or directory at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/Gcf2.pm line 20.
> [ 16s] # BEGIN failed--compilation aborted at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/Gcf2.pm line 78.
> [ 16s] # Compilation failed in require at (eval 12) line 1.
> [ 16s] t/gcf2.t ..................... skipped: PublicInbox::Gcf2 missing for t/gcf2.t
> [ 16s] # require PublicInbox::Gcf2: open(/home/abuild/.cache/public-inbox/inline-c/.public-inbox.lock): No such file or directory at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/Gcf2.pm line 20.
> [ 16s] # BEGIN failed--compilation aborted at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/Gcf2.pm line 78.
> [ 16s] # Compilation failed in require at (eval 13) line 1.
Also, I should clean that up for testing :x
> [ 59s] Issuing rollback() due to DESTROY without explicit disconnect() of DBD::SQLite::db handle dbname=/home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/t/data-gen/reindex-time-range.v1-master/public-inbox/xapian15/over.sqlite3 at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/Import.pm line 194.
> [ 59s] /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/t/data-gen/reindex-time-range.v1-master index failed: Modification of a read-only value attempted at /home/abuild/rpmbuild/BUILD/public-inbox-1.7.0/blib/lib/PublicInbox/SearchIdx.pm line 900, <$r> line 1.
> [ 59s]
> [ 60s] t/reindex-time-range.t ....... ok
That message is still perplexing to me; and I can't reproduce it
consistently...
next prev parent reply other threads:[~2021-11-19 18:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-19 12:42 'make test' failures while packaging for openSUSE Jörg Rödel
2021-11-19 18:54 ` Eric Wong [this message]
2021-11-19 21:46 ` Jörg Rödel
2021-11-22 6:55 ` [PATCH] searchidx: add some extra diagnostics for odd message Eric Wong
2021-11-22 7:42 ` [PATCH] t/lei-mirror: skip lei comparisons if lei missing Eric Wong
2021-11-22 13:47 ` Jörg Rödel
2021-11-22 17:24 ` Eric Wong
2021-11-22 13:20 ` [PATCH] searchidx: add some extra diagnostics for odd message Jörg Rödel
2021-11-22 18:23 ` [PATCH] searchidx: avoid modification of read-only `$_' Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211119185411.M766819@dcvr \
--to=e@80x24.org \
--cc=joro@8bytes.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).