• Again help for autopkgtest needed: libsvn-web-perl

    From Andreas Tille@21:1/5 to All on Sat Feb 22 22:00:01 2025
    Hi,

    I intend to salvage libsvn-web-perl but it would be good to have
    autopkgtest working correctly. As you can see in Salsa CI[1] there
    is some trouble in finding

    Can't open perl script "/tmp/autopkgtest-lxc.se0edvl4/downtmp/autopkgtest_tmp/smokeX5zrig/bin/svnweb-install": No such file or directory
    YAML Error: Couldn't open /tmp/qHuCyVmLmK/config.yaml for input:
    No such file or directory

    I admit I'm (again) clueless about autopkgtest-pkg-perl and do not
    understand why it can't access the files available inside the source
    directory (bin/svnweb-install is in source dir).

    Any help would be welcome

    Andreas.


    [1] https://salsa.debian.org/perl-team/modules/packages/libsvn-web-perl/-/jobs/7139777#L920

    --
    https://fam-tille.de

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Niko Tyni@21:1/5 to Andreas Tille on Mon Feb 24 16:00:01 2025
    On Sat, Feb 22, 2025 at 09:59:29PM +0100, Andreas Tille wrote:

    I intend to salvage libsvn-web-perl but it would be good to have
    autopkgtest working correctly. As you can see in Salsa CI[1] there
    is some trouble in finding

    Can't open perl script "/tmp/autopkgtest-lxc.se0edvl4/downtmp/autopkgtest_tmp/smokeX5zrig/bin/svnweb-install": No such file or directory
    YAML Error: Couldn't open /tmp/qHuCyVmLmK/config.yaml for input:
    No such file or directory

    I admit I'm (again) clueless about autopkgtest-pkg-perl and do not
    understand why it can't access the files available inside the source directory (bin/svnweb-install is in source dir).

    Our documentation [1] has this on the 'smoke' test:

    This test re-uses the build time test suite present in most CPAN
    distributions to check that changes in the package's dependencies
    haven't introduced regressions in the package functionality.

    The package and its build dependencies are installed, the t/ directory
    and test.pl files are copied into a temporary directory, and the build
    time test suite is run against the installed modules. The temporary
    directory is used to make sure that the installed modules get used
    instead of the source tree.

    If the test suite needs files outside the t/ directory, those can be
    listed in the debian/tests/pkg-perl/smoke-files. [...]

    I hope this answers your question.

    [1] https://perl-team.pages.debian.net/autopkgtest.html

    --
    Niko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to Niko Tyni on Mon Feb 24 19:20:01 2025
    On Mon, 24 Feb 2025 14:36:55 +0000, Niko Tyni wrote:

    Can't open perl script "/tmp/autopkgtest-lxc.se0edvl4/downtmp/autopkgtest_tmp/smokeX5zrig/bin/svnweb-install": No such file or directory
    YAML Error: Couldn't open /tmp/qHuCyVmLmK/config.yaml for input:
    No such file or directory

    I admit I'm (again) clueless about autopkgtest-pkg-perl and do not understand why it can't access the files available inside the source directory (bin/svnweb-install is in source dir).

    Our documentation [1] has this on the 'smoke' test:

    If the test suite needs files outside the t/ directory, those can be
    listed in the debian/tests/pkg-perl/smoke-files. [...]

    I hope this answers your question.

    [1] https://perl-team.pages.debian.net/autopkgtest.html

    Ack, but that (or patching the test to use /usr/bin/svnweb-install
    under autopkgtest) is not enough, I still get failures and haven't
    found the right knob to turn.

    Maybe someone else has more patience …


    Cheers,
    gregor

    --
    .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
    : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
    `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
    `-

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAme8t61fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgakfg//WLlDYFK1qMHbKZwyxBfoVSxCvIS+juA39kCk3pyoMuS43Sc4K6d6pLCz Yq/XbjvzqP3Yn0dDUweRpzVpW1wolKP+KrFkiRmRsfVcwWOmdmptAVPywga+VcZv ftvsjOBAbpqV98yz9bbswD8FEQkWuZih4Z+zs31P3TOM/6jVKC2DjflX7AG5ebRO cSpFdDJ46pGtHTDAvYMsIIBov/n2hGwgFEMxv9s6HL3nBY/5rkExyb+x2RoZ2lTi 8Z06QJVeBNJfcoycNwqGpDcBB/RNpl3t3bBzwIQO9NgW6N8TbezGIK7Dc8aLtuu1 EUN+SPEDRj3BJjSFZdCzk0z9iZXMYVScAaHwASMHVhRh9YKRj1BIq4U8Kx/v3Bft 4WtbJTFTyNhA14R3r28NfwAnq9Kc7VIPnDasjuL4JBTkClKrRt9autaPjvhoaTv2 y6RMae/YuaDK3c/jwIlYZVQxoKjWMJZxcgvDcdkJb83nl/NsAvRsEh8Sww+D5pcX
    m7m3pE2h
  • From Niko Tyni@21:1/5 to gregor herrmann on Mon Feb 24 22:10:01 2025
    On Mon, Feb 24, 2025 at 07:17:07PM +0100, gregor herrmann wrote:
    On Mon, 24 Feb 2025 14:36:55 +0000, Niko Tyni wrote:

    Can't open perl script "/tmp/autopkgtest-lxc.se0edvl4/downtmp/autopkgtest_tmp/smokeX5zrig/bin/svnweb-install": No such file or directory
    YAML Error: Couldn't open /tmp/qHuCyVmLmK/config.yaml for input:
    No such file or directory

    Ack, but that (or patching the test to use /usr/bin/svnweb-install
    under autopkgtest) is not enough, I still get failures and haven't
    found the right knob to turn.

    Oh I see, it's installed into /usr/bin. Yeah better to patch the tests
    to call the installed version (when $ENV{AUTOPKGTEST_TMP} is set.)

    I got it to work with that, including templates/ via smoke-files,
    and skipping the syntax check for SVN/Web/Test.pm as it needs Test::WWW::Mechanize which is not a runtime dependency. It didn't
    seem to need LC_ALL=C.UTF-8 though that's in debian/rules.

    Not sure SVN::Web::Test should be shipped in the binary package
    at all but oh well.

    Apologies for not pushing; my hacks were quick and dirty. Guess I can
    clean them up later but not tonight.
    --
    Niko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gregor herrmann@21:1/5 to Niko Tyni on Mon Feb 24 23:00:01 2025
    On Mon, 24 Feb 2025 22:46:39 +0200, Niko Tyni wrote:

    Ack, but that (or patching the test to use /usr/bin/svnweb-install
    under autopkgtest) is not enough, I still get failures and haven't
    found the right knob to turn.
    Oh I see, it's installed into /usr/bin. Yeah better to patch the tests
    to call the installed version (when $ENV{AUTOPKGTEST_TMP} is set.)
    I got it to work with that, including templates/ via smoke-files,

    Ha, I guess that was the missing piece in my attempts :)
    Cool.


    Cheers,
    gregor

    --
    .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org
    : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
    `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
    `-

    -----BEGIN PGP SIGNATURE-----

    iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAme86xdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ qgY6eRAAxeY7WBJnYfH0sPhA5daiHL41lTTVG8cDTDC5T/HuiJUciNUZ3exBQSs/ yyDHIDO5un2aPnPigTj9v5ch/v2uRlgY0PkzUii6QwCnWBDwoHGmdlEvlDifQvGJ h3zrT4WDIA+5vsZJAiR7tX4+C5C2jBBUv/3qcn/HdK2IIiV/LjrUI98Gk5pdqlZx MtVprpeqh5GyXxOcrAX4dPuDM+G+FxHhYYxHk6BHVEC5Rz8pa+DWSTMKWZz8d+0H TWAw+GfSiVvjRz42w7X0fkIEPUMVJIODWyza10mgD/deUEP8ucbMiWLoOWgEx53W qYjeD1/vRjUdj262iADC+glJX4eWIKaxsHpiw0x4VP9ef6bIFlum2SOaL1IoGChA ZAZSl8TRk/fMQASkubYZ+qaVIrri2Lj9mkm50agNtYHdxG6rRC/WQnJzo7W3fJ3l 57ItwUh27o27TiBtQKW3BW8lkjyyAyxDcUQVv8Bp5XEkK1jeGIIVgohNsdVSIhYO ftf38MlnLy7kjpWjl/MaG5LY8EUoXRNXq/t1nVTVVn9Gt+7Hfq/ukQvEF2i4RsdE bpJfeTsllYngifmtXqQ4BCM5QL/igOWE5ndF4zRmSzIuJdL41qJZ99tzbWdPRgVB 6TS6cfGMTn12lLeduZiIBEtwFjg25XZaMIrCQjdCcUrBRMzFS7Y=
    =HpUt
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Niko Tyni@21:1/5 to Niko Tyni on Tue Feb 25 22:50:01 2025
    On Mon, Feb 24, 2025 at 10:46:39PM +0200, Niko Tyni wrote:

    I got it to work with that, including templates/ via smoke-files,
    and skipping the syntax check for SVN/Web/Test.pm as it needs Test::WWW::Mechanize which is not a runtime dependency. It didn't
    seem to need LC_ALL=C.UTF-8 though that's in debian/rules.

    Not sure SVN::Web::Test should be shipped in the binary package
    at all but oh well.

    Pushed now. I ended up removing SVN::Web::Test from the binary package
    as it was clearly always broken for runtime usage.
    --
    Niko

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)