Bug 1710396 - perl-App-Cme-1.029-2.fc31 FTBFS: t/cme-command.t fails with Config-Model-2.134
Summary: perl-App-Cme-1.029-2.fc31 FTBFS: t/cme-command.t fails with Config-Model-2.134
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-App-Cme
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jitka Plesnikova
QA Contact: Fedora Extras Quality Assurance
URL: https://apps.fedoraproject.org/kosche...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-15 13:34 UTC by Petr Pisar
Modified: 2019-06-06 11:58 UTC (History)
2 users (show)

Fixed In Version: perl-App-Cme-1.029-3.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-06 11:58:42 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github dod38fr cme-perl issues 4 0 None None None 2019-05-15 13:47:54 UTC

Description Petr Pisar 2019-05-15 13:34:24 UTC
perl-App-Cme-1.029-2.fc31 fails to build in F31 because tests fail:

t/cme-command.t .. 1/?
    #   Failed test 'threw no exceptions'
    #   at t/cme-command.t line 257.
    #          got: 'Error in script wr_root/popcon1/my-script.cme: Attribute (start_node) does not pass the type constraint because: Validation failed for 'Config::Model::Node' with value undef at /usr/lib64/perl5/vendor_perl/Mouse/Util.pm line 395.
    #   Mouse::Util::throw_error(Mouse::Meta::Attribute=HASH(0x555d0a85b928), "Attribute (start_node) does not pass the type constraint beca"..., "data", undef, "depth", -1) called at /usr/share/perl5/vendor_perl/Config/Model/Instance.pm line 390
    #   Config::Model::Instance::load(Config::Model::Instance=HASH(0x555d0beb67f8), "step", "! MY_HOSTID=\$namefoobar3") called at /usr/share/perl5/vendor_perl/Config/Model/Instance.pm line 384
    #   Config::Model::Instance::modify(Config::Model::Instance=HASH(0x555d0beb67f8), "! MY_HOSTID=\$namefoobar3") called at (eval 257) line 3
    #   eval 'use Config::Model qw(cme);
    # my ($opt,$val,$name) = @ARGV;
    # cme(application => "popcon", root_dir => $val)->modify("! MY_HOSTID=\\$name$name");
    # ' called at /home/test/fedora/perl-App-Cme/App-Cme-1.029/lib/App/Cme/Command/run.pm line 121
    #   App::Cme::Command::run::execute(App::Cme::Command::run=HASH(0x555d0bec8490), Getopt::Long::Descriptive::Opts::__OPT__::32=HASH(0x555d0beecea8), ARRAY(0x555d0be9ded0)) called at /usr/share/perl5/vendor_perl/App/Cmd.pm line 468
    #   App::Cmd::execute_command(App::Cme=HASH(0x555d0bed1190), App::Cme::Command::run=HASH(0x555d0bec8490), Getopt::Long::Descriptive::Opts::__OPT__::32=HASH(0x555d0beecea8), "wr_root/popcon1/my-script.cme", "foobar3") called at /usr/share/perl5/vendor_perl/App/Cmd.pm line 321
    #   App::Cmd::run(App::Cme=HASH(0x555d0bed1190)) called at /usr/share/perl5/vendor_perl/App/Cmd/Tester.pm line 125
    #   eval {...} called at /usr/share/perl5/vendor_perl/App/Cmd/Tester.pm line 122
    #   App::Cmd::Tester::_run_with_capture("App::Cmd::Tester", App::Cme=HASH(0x555d0bed1190), ARRAY(0x555d0beb7230)) called at /usr/share/perl5/vendor_perl/App/Cmd/Tester.pm line 92
    #   App::Cmd::Tester::test_app("App::Cmd::Tester", "App::Cme", ARRAY(0x555d0beb7230)) called at /usr/share/perl5/vendor_perl/Sub/Exporter/Util.pm line 18
    #   Sub::Exporter::Util::__ANON__("App::Cme", ARRAY(0x555d0beb7230)) called at t/cme-command.t line 256
    #   main::__ANON__() called at /usr/share/perl5/vendor_perl/Test/Builder.pm line 334
    #   eval {...} called at /usr/share/perl5/vendor_perl/Test/Builder.pm line 334
    #   Test::Builder::subtest(Test::Builder=HASH(0x555d096f0408), "213: modification with a Perl script run by cme run with args", CODE(0x555d0ac33e70)) called at /usr/share/perl5/vendor_perl/Test/More.pm line 809
    #   Test::More::subtest("213: modification with a Perl script run by cme run with args", CODE(0x555d0ac33e70)) called at t/cme-command.t line 264
    #
    # '
    #     expected: undef

    #   Failed test 'all went well'
    #   at t/cme-command.t line 258.
    #          got: '-1'
    #     expected: '0'
    # Failed command: run wr_root/popcon1/my-script.cme -root-dir wr_root/popcon1 foobar3

    #   Failed test 'updated MY_HOSTID with script'
    #   at t/cme-command.t line 261.
    #     File wr_root/popcon1/etc/popularity-contest.conf contents do not match /(?^:"\$namefoobar3")/
    # Looks like you failed 3 tests of 5.

#   Failed test '213: modification with a Perl script run by cme run with args'
#   at t/cme-command.t line 264.

    #   Failed test 'run "223: modification with a script and var section which uses regexp and capture": stdout content'
    #   at t/cme-command.t line 263.
    #          got: '
    # Changes applied to popcon configuration:
    # - MY_HOSTID: '$namefoobar2' -> 'aaaaab'
    # - MY_HOSTID: 'aaaaab' -> 'aaaax4ab'
    #
    # '
    #     expected: '
    # Changes applied to popcon configuration:
    # - MY_HOSTID: '$namefoobar3' -> 'aaaaab'
    # - MY_HOSTID: 'aaaaab' -> 'aaaax4ab'
    #
    # '
    # Looks like you failed 1 test of 5.

#   Failed test '223: modification with a script and var section which uses regexp and capture'
#   at t/cme-command.t line 264.
# Looks like you failed 2 tests of 20.

A difference between passing and failing build root is at <https://apps.fedoraproject.org/koschei/build/6432106>.

This is triggered by upgrading perl-Config-Model from 2.133-2.fc30 to 2.134-1.fc31.

Comment 1 Jitka Plesnikova 2019-06-06 11:58:42 UTC
The failure was fixed by Config-Model-2.135.


Note You need to log in before you can comment on or make changes to this bug.