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

Re: [dpkg 1.22.0] testsuite: 43 44 45 46 47 failed



Hi!

On Mon, 2024-02-26 at 16:44:11 -0800, Ethan Adams wrote:
> Thanks for getting back with me and for letting me know my previous
> message didn’t make it through. Also apologies for not providing the
> most helpful messages - I’m new to mailing-list etiquette in general
> & don’t have much experience with this project.

No worries!

> I have attached the full testsuite.log at the end of this message.

Thanks, that was very helpful. (Although the mail didn't reach the
list either this time around, but I least I got it. :)

> In case there are issues, the failure summary:
> ## ------------- ##
> ## Test results. ##
> ## ------------- ##
> 
> ERROR: All 72 tests were run,
> 5 failed unexpectedly.
> 
> ## ------------------------ ##
> ## Summary of the failures. ##
> ## ------------------------ ##
> Failed tests:
> dpkg 1.22.0 test suite: dpkg tools functional test suite test groups:
> 
>  NUM: FILE-NAME:LINE     TEST-GROUP-NAME
>       KEYWORDS
> 
>   43: chdir.at:5         dpkg chdir opts
>       dpkg command-line chdir
>   44: chdir.at:5         dpkg chdir env
>       dpkg command-line chdir
>   45: chdir.at:5         dpkg chdir env+opt admindir
>       dpkg command-line chdir
>   46: chdir.at:5         dpkg chdir env+opt root
>       dpkg command-line chdir
>   47: chdir.at:5         dpkg chdir env+opt root+admindir
>       dpkg command-line chdir
> 
> And all failures appear to be the same issue where the version command along with chdir option(s) result in the same extraneous exclude/include filters being set:
> #                             -*- compilation -*-
> 43. chdir.at:5: testing dpkg chdir opts ...
> ../../../src/at/chdir.at:5: DPKG_DEBUG=1 dpkg --version --root=/rootdir_opt
> --- -   2024-02-24 06:23:36.977118387 +0000
> +++ /tmp/dpkg/dpkg-1.22.0ubuntu1/build-tree/src/at/testsuite.dir/at-groups/43/stderr    2024-02-24 06:23:36.975184012 +0000
> @@ -1,2 +1,7 @@
> +D000001: adding exclude filter for '/usr/share/man/*'
> +D000001: adding exclude filter for '/usr/share/locale/*/LC_MESSAGES/*.mo'
> +D000001: adding exclude filter for '/usr/share/doc/*'
> +D000001: adding include filter for '/usr/share/doc/*/copyright'
> +D000001: adding include filter for '/usr/share/doc/*/changelog.*'
>  D000001: root=/rootdir_opt admindir=/rootdir_opt/var/lib/dpkg
> 
> stdout:
> Debian 'dpkg' package management program version 1.22.0 (arm64).
> This is free software; see the GNU General Public License version 2 or
> later for copying conditions. There is NO warranty.
> 43. chdir.at:5: 43. dpkg chdir opts (chdir.at:5): FAILED (chdir.at:5)
> 
> I verified this behavior outside of the test suite context by running
> the binary with these options directly. And I got as far as adding
> some trace logging to verify that these calls were indeed being made
> to `filter_add` although I didn’t get much further than this locally.

Ok, this is a known problem, where dpkg uses the system-wide
configuration directory under /etc, where you have fragment config
files that interfere with the test suite. I guess I could filter-out
these specifically from the test output, but I was planning on working
on being able to set arbitrary config dir for dpkg after the release
that happened yesterday, so at that point this should stop being an
issue for this and a bunch of other stuff blocked on it.

Thanks,
Guillem


Reply to: