Bug#800381: libchi-perl: autopkgtest failure: File name too long

Niko Tyni ntyni at debian.org
Mon Sep 28 17:04:43 UTC 2015


Package: libchi-perl
Version: 0.60-2
User: debian-perl at lists.debian.org
Usertags: autopkgtest

This package fails its autopkgtest checks on ci.debian.net:

  http://ci.debian.net/packages/libc/libchi-perl/unstable/amd64/

This is because the checks are run on an AUFS mount (checked with
terceiro), which has a filename maximum length of 242 bytes. The
libchi-perl test suite limits CHI::Drive::File key length to 240, and
the files have the '.dat' suffix, bringing the length up to 244.

lib/CHI/t/Driver/Subcache.pm has

    # keys for file driver have max length of 255 or so
    # but on windows xp, the full pathname is limited to 255 chars as well
    $keys->{'large'} = scalar( 'ab' x ( $^O eq 'MSWin32' ? 64 : 120 ) );

Patching this to 118 on !MsWin32 should be enough to fix the issue.

>From the test log:

  # CHI::t::Driver::Subcache::l1_cache->test_clear
  not ok 18 - test_clear died (error during cache set for namespace='name', key='abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab', size=526, expires='never', cache='File': could not rename '/tmp/chi-driver-subcache-l1-FKiN/name/3/3/0x36105010e8f0456f905c076b0c0e25940009' to '/tmp/chi-driver-subcache-l1-FKiN/name/3/3/abababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab.dat': File name too long at /usr/share/perl5/CHI/Driver/File.pm line 109.
  #  at (eval 43) line 7.)
  
  [...]
  
  Test Summary Report
  -------------------
  t/smoke-Driver-Subcache-l1_cache.t    (Wstat: 2048 Tests: 418 Failed: 8)
    Failed tests:  18, 79, 128, 328, 335, 349, 358, 377
    Non-zero exit status: 8
  t/smoke-Driver-Subcache-mirror_cache.t (Wstat: 2048 Tests: 429 Failed: 8)
    Failed tests:  22, 83, 172, 332, 339, 353, 362, 391
    Non-zero exit status: 8
  Files=26, Tests=7397, 28 wallclock secs ( 1.14 usr  0.28 sys + 13.40 cusr  4.17 csys = 18.99 CPU)
  Result: FAIL

-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list