This queue is for tickets about the CHI-Driver-Memcached CPAN distribution.

Report information
The Basics
Id:
89697
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
zefram [...] fysh.org
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: fails with Cache::Memcached::libmemcached installed
Date: Tue, 22 Oct 2013 14:26:28 +0100
To: bug-CHI-Driver-Memcached@rt.cpan.org
From: Zefram <zefram@fysh.org>
If CHI-Driver-Memcached is built with Cache::Memcached::libmemcached not yet installed, it passes its tests, by skipping most of them: PERL_DL_NONLAZY=1 /opt/perl-5.18.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t # Testing CHI::Driver::Memcached 0.14, Perl 5.018001, /opt/perl-5.18.1/bin/perl t/00-load.t ...................... ok t/CHIDriverTests-Fast.t .......... skipped: one of required modules not installed: Cache::Memcached::Fast t/CHIDriverTests-libmemcached.t .. skipped: one of required modules not installed: Cache::Memcached::libmemcached t/CHIDriverTests-Memcached.t ..... skipped: one of required modules not installed: Cache::Memcached t/pod.t .......................... ok All tests successful. Files=5, Tests=14, 2 wallclock secs ( 0.04 usr 0.04 sys + 1.63 cusr 0.27 csys = 1.98 CPU) Result: PASS But if Cache::Memcached::libmemcached was installed first, CHI-Driver-Memcached fails many of its tests: PERL_DL_NONLAZY=1 /opt/perl-5.18.1/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ...................... 1/1 # Testing CHI::Driver::Memcached 0.14, Perl 5.018001, /opt/perl-5.18.1/bin/perl t/00-load.t ...................... ok t/CHIDriverTests-Fast.t .......... skipped: one of required modules not installed: Cache::Memcached::Fast t/CHIDriverTests-libmemcached.t .. 1/? # Failed test 'cache2 untouched by clear' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1179. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_clear) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test '5 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1503. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1507. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1503. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1507. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1503. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1507. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1503. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1507. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1503. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1507. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' t/CHIDriverTests-libmemcached.t .. 127/? # Failed test 'checking keys after set of key 'space'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: 'space' # Failed test 'checking keys after set of key 'newline'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: 'newline', 'space' # Failed test 'checking keys after set of key 'zero'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'newline', 'space' # Failed test 'checking keys after set of key 'arrayref'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'arrayref', 'newline', 'space' # Failed test 'checking keys after set of key 'medium'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after set of key 'one'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after set of key 'large'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after set of key 'binary'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'medium', 'newline', 'space' # Failed test 'checking keys after set of key 'mixed'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'medium', 'mixed', 'newline', 'space' # Failed test 'checking keys after set of key 'empty'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space' # Failed test 'checking keys after set of key 'utf8'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test 'checking keys after set of key 'char'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test 'checking keys after set of key 'hashref'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test 'checking keys after removal of key 'hashref'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test 'checking keys after removal of key 'char'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space', 'utf8' # Failed test 'checking keys after removal of key 'utf8'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'medium', 'mixed', 'newline', 'space' # Failed test 'checking keys after removal of key 'empty'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'medium', 'mixed', 'newline', 'space' # Failed test 'checking keys after removal of key 'mixed'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'medium', 'newline', 'space' # Failed test 'checking keys after removal of key 'binary'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after removal of key 'large'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', '1', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after removal of key 'one'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'arrayref', 'medium', 'newline', 'space' # Failed test 'checking keys after removal of key 'medium'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'arrayref', 'newline', 'space' # Failed test 'checking keys after removal of key 'arrayref'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: '0', 'newline', 'space' # Failed test 'checking keys after removal of key 'zero'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: 'newline', 'space' # Failed test 'checking keys after removal of key 'newline'' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 235. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # Comparing $data as a Set # Missing: 'space' # Failed test 'exactly one key' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 270. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # got: '0' # expected: '1' # Failed test 'test_key_types died (must specify key at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 271.)' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/Test/Class.pm line 27. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_key_types) # 120 is not between 60 and 99 # Failed test 'after iteration 0, size = 120' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 0, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 140 is not between 60 and 99 # Failed test 'after iteration 1, size = 140' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 1, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 140 is not between 60 and 99 # Failed test 'after iteration 2, size = 140' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 2, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 140 is not between 60 and 99 # Failed test 'after iteration 3, size = 140' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 3, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 140 is not between 60 and 99 # Failed test 'after iteration 4, size = 140' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 4, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 140 is not between 60 and 99 # Failed test 'after iteration 5, size = 140' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 5, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 160 is not between 60 and 99 # Failed test 'after iteration 6, size = 160' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 6, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 160 is not between 60 and 99 # Failed test 'after iteration 7, size = 160' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 7, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 180 is not between 60 and 99 # Failed test 'after iteration 8, size = 180' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 8, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 180 is not between 60 and 99 # Failed test 'after iteration 9, size = 180' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1432. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # 0 is not between 3 and 5 # Failed test 'after iteration 9, keys = 0' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 1434. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_max_size) # Failed test 'get_keys after set_multi' # at /opt/perl-5.18.1/lib/site_perl/5.18.1/CHI/t/Driver.pm line 764. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_multi) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' # Looks like you failed 59 tests of 752. t/CHIDriverTests-libmemcached.t .. Dubious, test returned 59 (wstat 15104, 0x3b00) Failed 59/752 subtests (less 37 skipped subtests: 656 okay) t/CHIDriverTests-Memcached.t ..... ok t/pod.t .......................... ok Test Summary Report ------------------- t/CHIDriverTests-libmemcached.t (Wstat: 15104 Tests: 752 Failed: 59) Failed tests: 52, 73-82, 140, 144, 148, 152, 156, 160 164, 168, 172, 176, 180, 184, 188, 191 193, 195, 197, 199, 201, 203, 205, 207 209, 211, 213, 217-218, 472-491, 688 Non-zero exit status: 59 Files=5, Tests=1516, 19 wallclock secs ( 0.28 usr 0.07 sys + 4.26 cusr 0.73 csys = 5.34 CPU) Result: FAIL -zefram
I've just hit this as well. Any news?
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Wed, 20 May 2015 06:25:39 -0700
To: bug-CHI-Driver-Memcached@rt.cpan.org
From: Jonathan Swartz <swartz@pobox.com>
I haven’t been in the Perl world for years, but I’m happy to release a patch / pull request.

I did try to install libmemcached on my mac to test this, but ran into https://github.com/Homebrew/homebrew/issues/20635. I’ll see if that goes away when I upgrade to Yosemite.

On May 20, 2015, at 4:17 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote:

Show quoted text
      Queue: CHI-Driver-Memcached
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 >

I've just hit this as well. Any news?

The failures look like: t/CHIDriverTests-libmemcached.t .. 1/? # Failed test 'cache2 untouched by clear' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1178. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_clear) # Comparing $data as a Set # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' t/CHIDriverTests-libmemcached.t .. 71/? # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' # Failed test '1 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0' # Failed test '5 lowest' # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) # Comparing $data as a Set # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' ... Any clues as to the likely cause would be appreciated.
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Thu, 21 May 2015 09:46:40 -0700
To: bug-CHI-Driver-Memcached@rt.cpan.org
From: Jonathan Swartz <swartz@pobox.com>
Can you see if they pass for Cache::Memcached? On May 21, 2015, at 6:39 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote:
Show quoted text
> Queue: CHI-Driver-Memcached > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 > > > The failures look like: > > t/CHIDriverTests-libmemcached.t .. 1/? > # Failed test 'cache2 untouched by clear' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1178. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_clear) > # Comparing $data as a Set > # Missing: '0', '1', 'a', 'abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', 'arrayref', 'binary', 'empty', 'hashref', 'medium', 'mixed', 'newline', 'space', 'utf8' > t/CHIDriverTests-libmemcached.t .. 71/? > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > # Failed test '1 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0' > > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > # Failed test '1 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1506. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0' > > # Failed test '5 lowest' > # at /home/tim/trunk/cpan/cpan-5.010/lib/perl5/CHI/t/Driver.pm line 1502. > # (in CHI::Driver::Memcached::t::CHIDriverTests::libmemcached->test_custom_discard_policy) > # Comparing $data as a Set > # Missing: 'key0', 'key1', 'key2', 'key3', 'key4' > > ... > > Any clues as to the likely cause would be appreciated.
Sorry for the delay. I'd missed your reply. Yes, t/CHIDriverTests-Memcached.t and t/CHIDriverTests-Fast.t pass, but t/CHIDriverTests-libmemcached.t fails. Here's a full log: https://gist.github.com/timbunce/a6876a6aa0ec321655dd Given the way the tests are structure it does seem mostly likely that the bug is in Cache::Memcached::libmemcached and/or Memcached::libmemcached. What really puzzles me is that I can't find some combination of Cache::Memcached::libmemcached and Memcached::libmemcached that passes the test. So the first question is can you reproduce the problem? Also, can you confirm that you would have had Cache::Memcached::libmemcached installed and so would have tested CHI::Driver::Memcached with it before release? Any idea what versions you would have used? And finally, looking at the specific failures, could you guess at the likely cause? Thanks!
Subject: Re: [rt.cpan.org #89697] fails with Cache::Memcached::libmemcached installed
Date: Sat, 6 Jun 2015 16:53:57 -0700
To: bug-CHI-Driver-Memcached@rt.cpan.org
From: Jonathan Swartz <swartz@pobox.com>
I can’t even get libmemcached compiled on my mac, so no can’t reproduce the problem. :) I’d be surprised if these tests never passed and we never heard about it - they’ve been around for years - but I guess it’s possible… From the test failures it looks like it might have something to do with get_keys. This isn’t supported in memcached of course, but the test class defines a simulated get_keys for the purposes of testing. Looks like maybe this isn’t working for libmemcached. On Jun 2, 2015, at 6:21 AM, Tim_Bunce via RT <bug-CHI-Driver-Memcached@rt.cpan.org> wrote:
Show quoted text
> Queue: CHI-Driver-Memcached > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=89697 > > > Sorry for the delay. I'd missed your reply. > > Yes, t/CHIDriverTests-Memcached.t and t/CHIDriverTests-Fast.t pass, but t/CHIDriverTests-libmemcached.t fails. > Here's a full log: https://gist.github.com/timbunce/a6876a6aa0ec321655dd > > Given the way the tests are structure it does seem mostly likely that the bug is in Cache::Memcached::libmemcached and/or Memcached::libmemcached. > > What really puzzles me is that I can't find some combination of Cache::Memcached::libmemcached and Memcached::libmemcached that passes the test. > > So the first question is can you reproduce the problem? > > Also, can you confirm that you would have had Cache::Memcached::libmemcached installed and so would have tested CHI::Driver::Memcached with it before release? > > Any idea what versions you would have used? > > And finally, looking at the specific failures, could you guess at the likely cause? > > Thanks!
CHI-Driver-Memcached-0.16 installed ok with the old modules, so we know the failure isn't due to new/changed tests. CHI-Driver-Memcached-0.16 installed ok after upgrading to Cache-Memcached-libmemcached 0.03001 (not 0.04001 as that requires a recent Memcached-libmemcached version, though probably doesn't really _need_ it.) CHI-Driver-Memcached-0.16 tests failed after upgrading Memcached-libmemcached from 0.4406 to any later version I tried. Confirmed with perl 5.10.1 and perl 5.20.2.
So, in summary, this appears to be a bug in Memcached::libmemcached v1+ that's exposed by the torture test suite of CHI::Driver::Memcached.
From: wolfsage@gmail.com
On Wed Jun 24 09:56:39 2015, TIMB wrote:
Show quoted text
> So, in summary, this appears to be a bug in Memcached::libmemcached > v1+ that's exposed by the torture test suite of > CHI::Driver::Memcached.
I think I've finally got it: https://github.com/jonswar/perl-chi-driver-memcached/pull/2 Newer libmemcached doesn't like keys with no length. Previous versions of libmemcached would prepend the namespace to a zero length key before submitting it to memcached. Now it just returns an error, so don't attempt to call get_multi() with such keys. -- Matthew Horsfall (alh)


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.