Bug#935453: libconfig-model-tkui-perl breaks libconfig-model-itself-perl autopkgtest

Dominique Dumont dod38fr at gmail.com
Fri Aug 23 17:56:36 BST 2019


On jeudi 22 août 2019 20:31:52 CEST you wrote:
> Can you please investigate the situation and reassign the
> bug to the right package?

Sure.

The change done in libconfig-model-tkui-perl 1.370 did break libconfig-model-
itself-perl 2.016 (the API change are backward compatible, the class 
inheritance, less so :-( )

I've released libconfig-model-itself-perl 2.018 with a change that fixes the 
tests with libconfig-model-tkui-perl 1.370 (but probably break with 1.369).

The log from auotpkgtest [1] in  the setup that should work shows this error:

ok 3 - Read all models from wr_root/load_write_itself/lib/Config/Model/models
Configuration item 'application:fstab model' has a wrong value:
	reference type does not know 'Fstab'. Expected 'Itself::Application' or 
'Itself::CargoElement' or 'Itself::Class' or 'Itself::CommonElement' or 
'Itself::CommonElement::Assert' or 'Itself::CommonElement::WarnIfMatch' or 
'Itself::ComputedValue' or 'Itself::ConfigAccept' or 'Itself::ConfigReadWrite' 
or 'Itself::ConfigReadWrite::DefaultLayer' or 'Itself::Element' or 
'Itself::MigratedValue' or 'Itself::Model' or 'Itself::NonWarpableElement' or 
'Itself::WarpOnlyElement' or 'Itself::WarpValue' or 
'Itself::WarpableCargoElement' or 'Itself::WarpableElement'
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 3.
Dubious, test returned 2 (wstat 512, 0x200)

This looks like cme is able to find the file /usr/share/perl5/Config/Model/
system.d/fstab , but is not able to load /usr/share/perl5/Config/Model/models/
Fstab.pl. Even though both files are provided by libconfig-model-perl. 

Given that I cannot reproduce this issue on my system, I guess that the setup 
of perl library in autopkgtest is different than the default setup.  I need to 
check how these files are found.

In any case the root cause for the failure of libconfig-model-itself-perl 2.018 
with libconfig-model-tkui-perl 1.370  is not the regression brought by 
libconfig-model-tkui-perl 1.370


All the best

[1] https://ci.debian.net/data/autopkgtest/unstable/amd64/libc/libconfig-model-itself-perl/2796602/log.gz
> 
> More information about this bug and the reason for filing it can be found on
> https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
> 
> Paul
> 
> [1] https://qa.debian.org/excuses.php?package=libconfig-model-tkui-perl
> 
> https://ci.debian.net/data/autopkgtest/testing/amd64/libc/libconfig-model-it
> self-perl/2794069/log.gz
> 
> not ok 3 - edit is in test mode
> #   Failed test 'edit is in test mode'
> #   at t/cme-meta-edit.t line 34.
> #                   'Reading model from /usr/share/perl5/Config/Model
> # '
> #     doesn't match '(?^:Test mode: quit)'
> 1..3
> # Looks like you failed 1 test of 3.
> Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/3 subtests
> t/cme-meta-plugin.t ........
> Prototype mismatch: sub CORE::GLOBAL::exit: none vs (;$) at
> /usr/lib/x86_64-linux-gnu/perl5/5.28/Tk.pm line 415.
> ok 1 - compiled
> not ok 2 - threw no exceptions
> #   Failed test 'threw no exceptions'
> #   at t/cme-meta-plugin.t line 52.
> #          got: 'Can't call method "fetch_element" on an undefined value
> at /usr/share/perl5/Config/Model/Itself/TkEditUI.pm line 80.
> #  at /usr/lib/x86_64-linux-gnu/perl5/5.28/Tk/Widget.pm line 203.
> # '
> #     expected: undef
> ok 3 - edit plugin and quit
> not ok 4 - edit plugin is in test mode
> #   Failed test 'edit plugin is in test mode'
> #   at t/cme-meta-plugin.t line 57.
> #                   'Preparing plugin my-plugin for model Fstab found in
> /usr/share/perl5/Config/Model
> # Use -dev option to create a plugin for a local model (i.e. in
> wr_test/plugin-ui)
> # '
> #     doesn't match '(?^:Test mode: save and quit)'
> not ok 5 - check content of
> wr_test/plugin-ui/models/Fstab.d/my-plugin/Fstab/CommonOptions.pl
> #   Failed test 'check content of
> wr_test/plugin-ui/models/Fstab.d/my-plugin/Fstab/CommonOptions.pl'
> #   at t/cme-meta-plugin.t line 59.
> #     Could not open file
> wr_test/plugin-ui/models/Fstab.d/my-plugin/Fstab/CommonOptions.pl: No
> such file or directory
> 1..5
> # Looks like you failed 3 tests of 5.
> 
> [...]
> 
> Test Summary Report
> -------------------
> t/cme-meta-edit.t        (Wstat: 256 Tests: 3 Failed: 1)
>   Failed test:  3
>   Non-zero exit status: 1
> t/cme-meta-plugin.t      (Wstat: 768 Tests: 5 Failed: 3)
>   Failed tests:  2, 4-5
>   Non-zero exit status: 3
> t/itself-editor.t        (Wstat: 6400 Tests: 6 Failed: 0)
>   Non-zero exit status: 25
>   Parse errors: No plan found in TAP output
> Files=11, Tests=85, 162 wallclock secs ( 0.07 usr  0.02 sys + 158.99
> cusr  2.99 csys = 162.07 CPU)
> Result: FAIL
> autopkgtest [17:14:40]: test autodep8-perl-build-deps:
> -----------------------]


-- 



More information about the pkg-perl-maintainers mailing list