[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1002276: schroot: FTBFS: The following tests FAILED: 3 - sbuild-chroot-config (Failed)



Hi Lucas,

This isn't a schroot bug.  It's actually down to a behaviour change in "fakeroot".  If you run "dpkg-buildpackage" by hand, then "cd debian/build" and then run "fakeroot ctest -V", you'll see this:

3: 1) test: test_config::test_construction_file (E) 
3: setUp() failed
3: - uncaught exception of type std::exception (or derived).
3: - /home/rleigh/schroot-1.6.10/debian/build/test/testdata/config.ex1: File is not owned by user root

This is a behaviour change or breakage in fakeroot in unstable, from what I can tell.  The same package built on bullseye runs the tests as expected.  If you look at tests/setup-test-data[.cmake] you'll see that we do an explicit chown of the test datafiles to root:root specifically so that the unit tests will check the ownership correctly.

I would suggest reassigning this bug to fakeroot.


As an aside, I did suggest several years back that schroot should be retired from Debian given its obsolescence.  Since docker and other alternative virtualisation technologies can do a better job of creating and tearing down temporary but well-defined build environments, I think it would be worth spending a day adding that support to sbuild , and then dropping the schroot support.  While I'm happy to answer the occasional question, I am no longer in a position to properly support schroot, and I myself haven't used it in years--it's past time to move on from using it IMHO, and so I'd just like to reiterate my suggestion that its removal be investigated.  In sbuild, lib/Sbuild/ChrootSchroot.pm could be replaced with an alternative ChrootDocker.pm which sets up and provisions a docker container, then runs commands and tears it down.


Kind regards,
Roger

> -----Original Message-----
> From: Lucas Nussbaum <lucas@debian.org>
> Sent: 21 December 2021 16:51
> To: submit@bugs.debian.org
> Subject: Bug#1002276: schroot: FTBFS: The following tests FAILED: 3 - sbuild-
> chroot-config (Failed)
> 
> Source: schroot
> Version: 1.6.10-12
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lucas@debian.org
> Usertags: ftbfs-20211220 ftbfs-bookworm
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build on amd64.
> 
> 
> Relevant part (hopefully):
> > make[2]: Entering directory '/<<PKGBUILDDIR>>/debian/build'
> > Running tests...
> > /usr/bin/ctest --force-new-ctest-process -V UpdateCTestConfiguration
> > from :/<<PKGBUILDDIR>>/debian/build/DartConfiguration.tcl
> > UpdateCTestConfiguration  from
> > :/<<PKGBUILDDIR>>/debian/build/DartConfiguration.tcl
> > Test project /<<PKGBUILDDIR>>/debian/build Constructing a list of
> > tests Done constructing a list of tests Updating test list for
> > fixtures Added 0 tests to meet fixture requirements Checking test
> > dependency graph...
> > Checking test dependency graph end
> > test 1
> >     Start 1: setup-test-data
> >
> > 1: Test command: /<<PKGBUILDDIR>>/debian/build/test/setup-test-data
> > 1: Test timeout computed to be: 10000000
> > 1/8 Test #1: setup-test-data ..................   Passed    0.01 sec
> > test 2
> >     Start 2: sbuild-chroot-chroot
> >
> > 2: Test command:
> > /<<PKGBUILDDIR>>/debian/build/test/sbuild-chroot-chroot
> > 2: Test timeout computed to be: 10000000
> > 2:
> .....................................................................................................................
> ...............................
> > 2:
> > 2:
> > 2: OK (148 tests)
> > 2:
> > 2:
> > 2/8 Test #2: sbuild-chroot-chroot .............   Passed    0.03 sec
> > test 3
> >     Start 3: sbuild-chroot-config
> >
> > 3: Test command:
> > /<<PKGBUILDDIR>>/debian/build/test/sbuild-chroot-config
> > 3: Test timeout computed to be: 10000000
> > 3: .E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E
> > 3:
> > 3:
> > 3: !!!FAILURES!!!
> > 3: Test Results:
> > 3: Run:  16   Failures: 0   Errors: 16
> > 3:
> > 3:
> > 3: 1) test: test_config::test_construction_file (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 2) test: test_config::test_construction_dir (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 3) test: test_config::test_construction_fail (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 4) test: test_config::test_add_file (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 5) test: test_config::test_add_dir (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 6) test: test_config::test_add_fail (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 7) test: test_config::test_get_chroots (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 8) test: test_config::test_find_chroot (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 9) test: test_config::test_find_alias (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 10) test: test_config::test_get_chroot_list (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 11) test: test_config::test_get_alias_list (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 12) test: test_config::test_validate_chroots (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 13) test: test_config::test_validate_chroots_fail (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 14) test: test_config::test_config_fail (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 15) test: test_config::test_config_deprecated (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3: 16) test: test_config::test_config_valid (E)
> > 3: setUp() failed
> > 3: - uncaught exception of type std::exception (or derived).
> > 3: - /<<PKGBUILDDIR>>/debian/build/test/testdata/config.ex1: File is
> > not owned by user root
> > 3:
> > 3:
> > 3/8 Test #3: sbuild-chroot-config .............***Failed    0.00 sec
> > test 4
> >     Start 4: sbuild-standard
> >
> > 4: Test command: /<<PKGBUILDDIR>>/debian/build/test/sbuild-standard
> > 4: Test timeout computed to be: 10000000
> > 4: ..............................................str='foo'
> > 4: .........
> > 4:
> > 4:
> > 4: OK (55 tests)
> > 4:
> > 4:
> > 4/8 Test #4: sbuild-standard ..................   Passed    0.00 sec
> > test 5
> >     Start 5: sbuild-keyfile
> >
> > 5: Test command: /<<PKGBUILDDIR>>/debian/build/test/sbuild-keyfile
> > 5: Test timeout computed to be: 10000000
> > 5: .......W: line 12 [group2] age: Could not parse value ‘43’
> > 5: ..W: line 8 [group1] numbers: Could not parse value ‘2’
> > 5: ......
> > 5:
> > 5:
> > 5: OK (15 tests)
> > 5:
> > 5:
> > 5/8 Test #5: sbuild-keyfile ...................   Passed    0.00 sec
> > test 6
> >     Start 6: sbuild-run-parts
> >
> > 6: Test command: /<<PKGBUILDDIR>>/debian/build/test/sbuild-run-parts
> > 6: Test timeout computed to be: 10000000
> > 6: .....
> > 6:
> > 6:
> > 6: OK (5 tests)
> > 6:
> > 6:
> > 6/8 Test #6: sbuild-run-parts .................   Passed    0.01 sec
> > test 7
> >     Start 7: schroot-base-option-action
> >
> > 7: Test command:
> > /<<PKGBUILDDIR>>/debian/build/test/schroot-base-option-action
> > 7: Test timeout computed to be: 10000000
> > 7: ........
> > 7:
> > 7:
> > 7: OK (8 tests)
> > 7:
> > 7:
> > 7/8 Test #7: schroot-base-option-action .......   Passed    0.00 sec
> > test 8
> >     Start 8: cleanup-test-data
> >
> > 8: Test command: /<<PKGBUILDDIR>>/debian/build/test/cleanup-test-data
> > 8: Test timeout computed to be: 10000000
> > 8/8 Test #8: cleanup-test-data ................   Passed    0.00 sec
> >
> > 88% tests passed, 1 tests failed out of 8
> >
> > Total Test time (real) =   0.06 sec
> >
> > The following tests FAILED:
> > 	  3 - sbuild-chroot-config (Failed)
> > Errors while running CTest
> > Output from these tests are in:
> > /<<PKGBUILDDIR>>/debian/build/Testing/Temporary/LastTest.log
> > Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
> > make[2]: *** [Makefile:74: test] Error 8
> 
> 
> The full build log is available from:
> http://qa-logs.debian.net/2021/12/20/schroot_1.6.10-12_unstable.log
> 
> A list of current common problems and possible solutions is available at
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> 
> If you reassign this bug to another package, please marking it as 'affects'-ing
> this package. See https://www.debian.org/Bugs/server-control#affects
> 
> If you fail to reproduce this, please provide a build log and diff it with mine
> so that we can identify if something relevant changed in the meantime.


Reply to: