FTBFS: armhf: build-time test failures

Bug #2058576 reported by Andreas Hasenack
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sssd (Debian)
New
Unknown
sssd (Ubuntu)
Fix Released
High
Andreas Hasenack

Bug Description

sssd is currently failing to build on armhf due to build-time test failures[1]¨:

[ RUN ] test_pam_preauth_expired_crl_file
[ ERROR ] --- No entries for symbol sss_dp_get_account_recv.
../src/tests/cmocka/common_mock_resp_dp.c:52: error: Could not get value to mock function sss_dp_get_account_recv
../src/tests/cmocka/test_pam_srv.c:802: note: Previously returned mock value was declared here

[ FAILED ] test_pam_preauth_expired_crl_file
[ RUN ] test_pam_preauth_expired_crl_file_soft
[ OK ] test_pam_preauth_expired_crl_file_soft
[ RUN ] test_pam_preauth_crl_valid_crl_invalid_files
[ OK ] test_pam_preauth_crl_valid_crl_invalid_files
[ RUN ] test_pam_preauth_crl_another_ca_crl_invalid_files
[ ERROR ] --- No entries for symbol sss_dp_get_account_recv.
../src/tests/cmocka/common_mock_resp_dp.c:52: error: Could not get value to mock function sss_dp_get_account_recv
../src/tests/cmocka/test_pam_srv.c:802: note: Previously returned mock value was declared here

[ FAILED ] test_pam_preauth_crl_another_ca_crl_invalid_files
[ RUN ] test_pam_preauth_crl_invalid_crl_another_ca_files
[ ERROR ] --- No entries for symbol sss_dp_get_account_recv.
../src/tests/cmocka/common_mock_resp_dp.c:52: error: Could not get value to mock function sss_dp_get_account_recv
../src/tests/cmocka/test_pam_srv.c:802: note: Previously returned mock value was declared here

[ FAILED ] test_pam_preauth_crl_invalid_crl_another_ca_files

Would probably need a manual run in armhf to fully troubleshoot this.

1. https://launchpadlibrarian.net/720410787/buildlog_ubuntu-noble-armhf.sssd_2.9.4-1.1ubuntu3_BUILDING.txt.gz

Related branches

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote : Re: [Bug 2058576] [NEW] FTBFS: armhf: build-time test failures

On Wednesday, March 20 2024, Andreas Hasenack wrote:

> Public bug reported:
>
> sssd is currently failing to build on armhf due to build-time test
> failures[1]¨:

Without having checked anything: is this not related to the time_t
transition? The build was passing before.

I'll check more tomorrow.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Revision history for this message
Steve Langasek (vorlon) wrote :

In an armhf noble container I can reproduce the build failure. But when I try to run the tests manually, they pass:

# SSS_TEST_DIR=. ABS_TOP_SRCDIR=. LDB_MODULES_PATH=./ldb_mod_test_dir/ ./test-driver --test-name foo --log-file pam-srv-tests.log --trs-file pam-srv-tests.trs ./pam-srv-tests </dev/null
PASS: foo
#

I will be removing armhf binaries to unblock the time_t transition.

Revision history for this message
Vladimir Petko (vpa1977) wrote :

removing 'faketime' from dependencies solves failures above.

Remaining failures:
[ FAILED ] tests: 3 test(s), listed below:
[ FAILED ] test_user_by_recent_filter_valid
[ FAILED ] test_group_by_recent_filter_valid
[ FAILED ] test_users_by_filter_filter_old

 3 FAILED TEST(S)
FAIL responder_cache_req-tests (exit status: 3)

tags: added: server-todo
Changed in sssd (Ubuntu):
status: New → Triaged
Changed in sssd (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
status: Triaged → In Progress
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Download full text (3.4 KiB)

This is very hard to troubleshoot at the moment, because I just can't get the build-dependencies installed, either with noble or noble-proposed:

noble:
$ sudo apt-get build-dep .
Note, using directory '.' to get the build dependencies
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libgnutls30 (>= 3.8.1) but it is not installable
 autoconf : Depends: perl (> 5.005) but it is not going to be installed
 builddeps:. : Depends: bind9-dnsutils but it is not going to be installed
 debhelper : Depends: perl:any
 dh-autoreconf : Depends: perl:any
 dh-nss : Depends: perl:any
 dh-strip-nondeterminism : Depends: perl:any
 dpkg-dev : Depends: perl:any
 intltool-debian : Depends: perl:any
 krb5-config : Depends: bind9-host but it is not going to be installed
 libarchive-zip-perl : Depends: perl:any
 libdebhelper-perl : Depends: perl:any
 libdpkg-perl : Depends: perl:any
 libelf1t64 : Breaks: libelf1 (< 0.190-1.1build3) but 0.190-1 is to be installed
 libfile-stripnondeterminism-perl : Depends: perl:any
 libsub-override-perl : Depends: perl:any
 po-debconf : Depends: perl but it is not going to be installed
 sgml-data : Depends: perl:any
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

noble-pr$ sudo apt-get build-dep . -t noble-proposed
Note, using directory '.' to get the build dependencies
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libgnutls30 (>= 3.8.1) but it is not installable
 autoconf : Depends: perl (> 5.005) but it is not going to be installed
 build-essential : Depends: dpkg-dev (>= 1.17.11) but it is not going to be installed
 builddeps:. : Depends: dpkg-dev (>= 1.22.5) but it is not going to be installed
               Depends: bind9-dnsutils but it is not going to be installed
               Depends: dpkg-dev (>= 1.16.1~) but it is not going to be installed
 debhelper : Depends: dpkg-dev (>= 1.18.2~) but it is not going to be installed
             Depends: libdpkg-perl (>= 1.17.14) but it is not going to be installed
             Depends: perl:any
 dh-autoreconf : Depends: perl:any
 dh-nss : Depends: perl:any
 dh-strip-nondeterminism : Depends: perl:any
 intltool-debian : Depends: perl:any
 krb5-config : Depends: bind9-host but it is not going to be installed
 libarchive-zip-perl : Depends: perl:any
 libdebhelper-perl : Depends: perl:any
 libfile-stripnondeterminism-perl : Depends: perl:any
...

Read more...

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote : Re: [Bug 2058576] Re: FTBFS: armhf: build-time test failures

On Wednesday, April 03 2024, Andreas Hasenack wrote:

> This is very hard to troubleshoot at the moment, because I just can't
> get the build-dependencies installed, either with noble or noble-
> proposed:

I think you need to enable noble-updates.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It is enabled:

Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports
Suites: noble noble-updates noble-backports noble-proposed
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Or is there some other trick specific to the state noble is in now?

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

On Wednesday, April 03 2024, Andreas Hasenack wrote:

> It is enabled:
>
> Types: deb
> URIs: http://ports.ubuntu.com/ubuntu-ports
> Suites: noble noble-updates noble-backports noble-proposed
> Components: main universe restricted multiverse
> Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
>
>
> Or is there some other trick specific to the state noble is in now?

Not that I know of. I only commented because you didn't mention
noble-updates on your first message and I thought it was worth bringing
it up.

--
Sergio
GPG key ID: E92F D0B3 6B14 F1F4 D8E0 EB2F 106D A1C8 C3CB BF14

Changed in sssd (Debian):
status: Unknown → New
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Uploaded to noble, it's built in proposed \o/

Changed in sssd (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package sssd - 2.9.4-1.1ubuntu5

---------------
sssd (2.9.4-1.1ubuntu5) noble; urgency=medium

  * Fix build-time tests (LP: #2058576):
    - d/p/fix-format-string-time64.patch: fix format string used for a
      timestamp filter string. Thanks to Sergio Durigan Junior
      <email address hidden> for the troubleshooting session.
    - d/control: faketime is used for tests, and is currently not
      working on armhf with a 64bit time_t (see LP #2059078)

 -- Andreas Hasenack <email address hidden> Fri, 05 Apr 2024 10:23:52 -0300

Changed in sssd (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.